Closed Bug 1110056 Opened 10 years ago Closed 9 years ago

Merge nsMathMLmphantomFrame into nsMathMLmrowFrame

Categories

(Core :: MathML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla38
Tracking Status
firefox38 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

Details

Attachments

(1 file, 1 obsolete file)

See discussion on bug 1108378.
Assignee: nobody → fred.wang
Attached patch Patch (obsolete) — Splinter Review
So the difference with this approach is that authors can now use CSS to override the visibility of the <mphantom> or of one of its descendants. I don't think the MathML spec says anything against that and actually saying that <mphantom>=<mrow>+visibility:hidden makes the behavior clear to authors.

https://treeherder.mozilla.org/#/jobs?repo=try&revision=caf4ca9488c7
Attachment #8560883 - Flags: review?(jkitch.bug)
Comment on attachment 8560883 [details] [diff] [review]
Patch

Review of attachment 8560883 [details] [diff] [review]:
-----------------------------------------------------------------

This is helpful for overflow=linebreak support as it allows intra-frame linebreaks in mphantom without additional effort.

A comment in nsMathMLmrowFrame.h indicating that it doubles for mphantom (and mstyle for that matter) would be nice.

::: layout/reftests/mathml/reftest.list
@@ +19,5 @@
>  != mirror-op-3.html mirror-op-3-ref.html
>  != mirror-op-4.html mirror-op-4-ref.html
>  == dynamic-mi.xhtml dynamic-mi-ref.xhtml
> +== mphantom-1.html mphantom-1-ref.html 
> +== mphantom-2.html mphantom-2-ref.html 

Nit: trailing whitespace
Attachment #8560883 - Flags: review?(jkitch.bug) → review+
(In reply to James Kitchener (:jkitch) from comment #2)
> A comment in nsMathMLmrowFrame.h indicating that it doubles for mphantom
> (and mstyle for that matter) would be nice.

Sorry, what do you mean by "it doubles"? You mean adding that the class is also used for mstyle/mphantom?
Flags: needinfo?(jkitch.bug)
Yes, in the same way that nsMathMLmmultiscriptsFrame.h mentions that it gets used for msup, msub and msubsup.
Flags: needinfo?(jkitch.bug)
Attached patch Patch V2Splinter Review
Attachment #8560883 - Attachment is obsolete: true
https://hg.mozilla.org/mozilla-central/rev/cd37bba635eb
Status: NEW → RESOLVED
Closed: 9 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: