Closed
Bug 993443
Opened 11 years ago
Closed 11 years ago
"Assertion failure: aSize > 0" in ConstrainToCoordValues
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
FIXED
mozilla31
People
(Reporter: jruderman, Assigned: jwatt)
References
Details
(Keywords: assertion, regression, testcase)
Attachments
(3 files, 1 obsolete file)
Assertion failure: aSize > 0, at layout/base/nsLayoutUtils.cpp:1812
This assertion is part of code added in
https://hg.mozilla.org/mozilla-central/rev/fe53a01dab3d
Reporter | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
The ScaleRoundOut() call in nsLayoutUtils::RoundGfxRectToAppRect results in the width of |scaledRect| being zero because of the way ScaleRoundOut is implemented (YMost includes the huge x value so the width is insignificant and adds nothing due to double not having enough precision).
ConstrainToCoordValues might as well assert MOZ_ASSERT(aSize >= 0) rather than MOZ_ASSERT(aSize > 0).
Assignee | ||
Comment 3•11 years ago
|
||
Assignee: nobody → jwatt
Attachment #8403368 -
Flags: review?(longsonr)
Assignee | ||
Comment 4•11 years ago
|
||
Attachment #8403368 -
Attachment is obsolete: true
Attachment #8403368 -
Flags: review?(longsonr)
Attachment #8403369 -
Flags: review?(longsonr)
Assignee | ||
Comment 5•11 years ago
|
||
I don't think it's worth special casing the rare zero width case, FWIW.
Comment 6•11 years ago
|
||
Comment on attachment 8403369 [details] [diff] [review]
patch
Don't forget to check in the testcase as a crashtest.
Attachment #8403369 -
Flags: review?(longsonr) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Comment 8•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla31
You need to log in
before you can comment on or make changes to this bug.
Description
•