Closed
Bug 669932
Opened 13 years ago
Closed 13 years ago
munderover: incorrect computation of logical vertical metrics
Categories
(Core :: MathML, defect)
Core
MathML
Tracking
()
RESOLVED
FIXED
mozilla8
People
(Reporter: fredw, Assigned: fredw)
References
Details
(Whiteboard: [inbound])
Attachments
(7 files)
1.80 KB,
text/html
|
Details | |
2.21 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
2.04 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
3.23 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
74.03 KB,
text/plain
|
Details | |
1.91 KB,
patch
|
karlt
:
review+
|
Details | Diff | Splinter Review |
1.91 KB,
patch
|
Details | Diff | Splinter Review |
The testcase demonstrates several cases with munderover. The transparent green rects are the logical metrics of the script children, the transparent blue rects those of the base children and the red rect the one computed for the element.
The second and third lines show that the logical metrics of mover/munder are not the same as those of moverunder with a under/over script of size 0. ?Note that Jonathan's patches on bug 668204, are essentially re-implementing the former using the latter.
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → fred.wang
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•13 years ago
|
||
Attachment #544969 -
Flags: review?(karlt)
Assignee | ||
Comment 2•13 years ago
|
||
Attachment #544970 -
Flags: review?(karlt)
Assignee | ||
Comment 3•13 years ago
|
||
Attachment #544971 -
Flags: review?(karlt)
Assignee | ||
Updated•13 years ago
|
Summary: Incorrect computation of logical vertical metrics → munderover: incorrect computation of logical vertical metrics
Updated•13 years ago
|
Attachment #544970 -
Flags: review?(karlt) → review+
Updated•13 years ago
|
Attachment #544969 -
Flags: review?(karlt) → review+
Comment 4•13 years ago
|
||
Comment on attachment 544971 [details] [diff] [review]
Add a reftest to verify the equivalence between munderover with empty scripts and the corresponding mover/munder/mrow constructs.
Thanks!
Attachment #544971 -
Flags: review?(karlt) → review+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 5•13 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/593d94e9492e
http://hg.mozilla.org/mozilla-central/rev/98df4af3a858
http://hg.mozilla.org/mozilla-central/rev/1aad22c44bd0
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
Comment 6•13 years ago
|
||
Please run your tests before you request landing (or review, for that matter).
Backed out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to comment #6)
> Please run your tests before you request landing (or review, for that
> matter).
> Backed out.
I did, but I don't have this failure on my laptop.
@Karl: It seems that the munderover bounding box is sometimes 1px higher than the corresponding msup/msub/mrow contruct. Do you have any idea about how this difference may come from?
Comment 8•13 years ago
|
||
Comment 9•13 years ago
|
||
nsMathMLmunderoverFrame::Place is using under/overDelta2 in calculating logical bounds from ink bounds, even when there is no under/overFrame.
Comment 10•13 years ago
|
||
Usually we push changes to https://wiki.mozilla.org/Try before to the general repositories.
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to comment #9)
> nsMathMLmunderoverFrame::Place is using under/overDelta2 in calculating
> logical bounds from ink bounds, even when there is no under/overFrame.
under/over-Delta1 are set to 0 when the vertical ink metrics is zero. Should we do the same for under/over-Delta2?
Also, it seems that we should also set these Deltas to 0 when the horizontal ink metrics is zero?
Assignee | ||
Comment 12•13 years ago
|
||
Assignee | ||
Comment 13•13 years ago
|
||
Same patch as attachment 546513 [details] [diff] [review], to apply after bug 557476, bug 668204 and bug 669713.
Assignee | ||
Comment 14•13 years ago
|
||
> Same patch as attachment 546513 [details] [diff] [review] [review], to apply after bug
> 557476, bug 668204 and bug 669713.
Tryserver Result for the set of munderover patches:
http://tbpl.mozilla.org/?tree=Try&rev=e1f872ce1440
Comment 15•13 years ago
|
||
It would be nice to have a tryserver result without bug 668204, as I assume bug 668204 makes the reftests pass irrespective of what happens here.
Assignee | ||
Comment 16•13 years ago
|
||
Assignee | ||
Updated•13 years ago
|
Attachment #546513 -
Flags: review?(karlt)
Comment 17•13 years ago
|
||
Comment on attachment 546513 [details] [diff] [review]
munderover: do not add space above/below the over/under script when this one has its dimensions set to zero
(In reply to comment #11)
> under/over-Delta1 are set to 0 when the vertical ink metrics is zero. Should
> we do the same for under/over-Delta2?
This still leaves the possibility of increasing the logical ascent, even when there is no overscript, if the ink ascent is greater than the logical ascent, but that's an outlier case that is probably not important.
> Also, it seems that we should also set these Deltas to 0 when the horizontal
> ink metrics is zero?
Hopefully the ink width will be zero when the height is zero. I'm not sure, but let's look into that if/when a problem shows up.
Attachment #546513 -
Flags: review?(karlt) → review+
Assignee | ||
Comment 18•13 years ago
|
||
Assignee | ||
Comment 19•13 years ago
|
||
Do you prefer to take the patches for this bug now or wait that the fixes for other munderover bugs are ready and push all in one go (comment 13)?
Comment 20•13 years ago
|
||
This can land now. It's probably better that they land separately, but if it's also OK if they end up landing together.
Keywords: checkin-needed
Comment 21•13 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/a637f174ceab
http://hg.mozilla.org/integration/mozilla-inbound/rev/93bb936441c7
http://hg.mozilla.org/integration/mozilla-inbound/rev/5ea0f8810805
http://hg.mozilla.org/integration/mozilla-inbound/rev/8d5e0f4187bd
Whiteboard: [inbound]
Updated•13 years ago
|
Keywords: checkin-needed
http://hg.mozilla.org/mozilla-central/rev/a637f174ceab
http://hg.mozilla.org/mozilla-central/rev/93bb936441c7
http://hg.mozilla.org/mozilla-central/rev/5ea0f8810805
http://hg.mozilla.org/mozilla-central/rev/8d5e0f4187bd
Status: REOPENED → RESOLVED
Closed: 13 years ago → 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•