Closed Bug 919164 Opened 11 years ago Closed 11 years ago

Rename TEXT_FORCE_TRIM_WHITESPACE to TEXT_IS_IN_TOKEN_MATHML

Categories

(Core :: MathML, defect)

x86_64
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla27

People

(Reporter: jkitch, Assigned: jkitch)

References

Details

Attachments

(1 file, 1 obsolete file)

No description provided.
Assignee: nobody → jkitch.bug
Attached patch rename (obsolete) (deleted) — Splinter Review
A simple find/replace in preparation for the changes in bug 114365 and bug 415413. There is also a minor comment typo in nsTextFrame.cpp that has been fixed.
Attachment #808271 - Flags: review?(fred.wang)
Attachment #808271 - Flags: review?(dbaron)
Comment on attachment 808271 [details] [diff] [review] rename Review of attachment 808271 [details] [diff] [review]: ----------------------------------------------------------------- Thanks, that looks good to me. The state bits are currently not correctly set, though. I'm not sure that was tested after Eshan's fix for whitespace trimming. Could you try to see if setting the state bit correctly makes the following reftest work: <table border="1"> <tr> <td> <mtext>x</mtext> </td> </tr> </table> <table border="1"> <tr> <td> <mtext> x </mtext> </td> </tr> </table> ::: layout/mathml/nsMathMLTokenFrame.cpp @@ +91,1 @@ > } The MathML token element has one single nsBlockFrame child and nsTextFrame grandchildren. Currently the code incorrectly sets the state bit on the nsBlockFrame child instead of the nsTextFrame grandchildren. Could you also fix that since it is needed for the two blocked bugs?
Attachment #808271 - Flags: review?(fred.wang) → feedback+
Forget the reftest for now. I have tests in bug 415413 that shows that the flag is not set correctly, but I'm not sure I can get one that does not involve bug 415413.
Attachment #808271 - Flags: review?(dbaron)
Attached patch rename (deleted) — Splinter Review
David: Your half of the patch (the first two files included) is a simple renaming and a minor typo correction. The state bit is only used by MathML frames and will take on additional meanings in future bugs. Fred: The additional code to select the correct frames has been imported from the experimental patch. No reftest has been included per comment 3, but the two cases looked indistinguishable to me.
Attachment #808271 - Attachment is obsolete: true
Attachment #808504 - Flags: review?(fred.wang)
Attachment #808504 - Flags: review?(dbaron)
Comment on attachment 808504 [details] [diff] [review] rename Review of attachment 808504 [details] [diff] [review]: ----------------------------------------------------------------- Looks good to me.
Attachment #808504 - Flags: review?(fred.wang) → review+
Comment on attachment 808504 [details] [diff] [review] rename Asking review to roc for the renaming part, in case David is busy.
Attachment #808504 - Flags: review?(roc)
Attachment #808504 - Flags: review?(dbaron)
No new tests since it's essentially some renaming and a trivial fix to nsMathMLTokenFrame::ForceTrimChildTextFrames.
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla27
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: