Closed
Bug 1365831
Opened 8 years ago
Closed 8 years ago
dynamic layout change that resizes conditionally processed outer SVG triggers "expected aContainer to be NS_FRAME_IS_DIRTY" assertion
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla55
Tracking | Status | |
---|---|---|
firefox55 | --- | fixed |
People
(Reporter: dbaron, Assigned: dbaron)
References
Details
Attachments
(1 file)
No description provided.
Assignee | ||
Comment 1•8 years ago
|
||
The primary patch in bug 1308876 causes frames to be reflowed less often
with NS_FRAME_IS_DIRTY, particularly when multiple passes of reflow are
required for the frame or one of its ancestors (which is generally the
case for a document that ends up not having scrollbars). This change
causes this assert to fire on various SVG tests such as
layout/reftests/svg/svg-integration/conditions-outer-svg-01.xhtml .
This happens because the outer SVG with conditional processing (in this
test, systemLanguage="x") is reflowed due to its parent resizing,
without NS_FRAME_IS_DIRTY set. This is a relatively normal thing to
happen during reflow; we just didn't have any tests that exercise it.
This patch adds a crashtest that triggers the assertion through the same
mechanism, but with a dynamic change, rather than depending on the
non-dirty reflow triggered by bug 1308876. (I confirmed locally that
this test does trigger the assertion without this patch, when run in the
crashtest harness.)
I think fundamentally the assertion isn't valid, and we should instead
be testing the condition that it asserts. (But I'm a little concerned
that maybe we need resize reflows to be propagated through?)
MozReview-Commit-ID: D8hjAbjKyuL
Attachment #8868844 -
Flags: review?(cam)
Assignee | ||
Comment 2•8 years ago
|
||
(In reply to David Baron :dbaron: ⌚️UTC-7 from comment #1)
> I think fundamentally the assertion isn't valid, and we should instead
> be testing the condition that it asserts. (But I'm a little concerned
> that maybe we need resize reflows to be propagated through?)
To clarify this: I think the two obvious options are:
(1) remove the assertion, and replace it with the test, as this patch does
(2) remove the assertion, and replace it with nothing
Comment 3•8 years ago
|
||
Comment on attachment 8868844 [details] [diff] [review]
Replace assertion that non-display SVG containers are only reflowed with NS_FRAME_IS_DIRTY with a real test of the condition
Review of attachment 8868844 [details] [diff] [review]:
-----------------------------------------------------------------
Thanks for the explanation, which makes sense to me.
Attachment #8868844 -
Flags: review?(cam) → review+
Assignee | ||
Comment 4•8 years ago
|
||
Assignee | ||
Comment 5•8 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/4808d8fe4ea887a468fc8f1083ee51ef20f4d6ce
Bug 1365831 - Replace assertion that non-display SVG containers are only reflowed with NS_FRAME_IS_DIRTY with a real test of the condition. r=heycam
Comment 6•8 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
status-firefox55:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
Updated•8 years ago
|
status-firefox57:
affected → ---
Assignee | ||
Updated•6 years ago
|
Type: enhancement → defect
You need to log in
before you can comment on or make changes to this bug.
Description
•