Closed Bug 788919 Opened 12 years ago Closed 12 years ago

"Assertion failure: IsElement()" changing markerStart on <svg:text>

Categories

(Core :: SVG, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla18
Tracking Status
firefox17 + verified
firefox18 + verified

People

(Reporter: jruderman, Assigned: jwatt)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(2 files)

###!!! ASSERTION: Shouldn't be trying to restyle non-elements directly: '!aContent || aContent->IsElement()', file ../../../layout/base/nsStyleChangeList.cpp, line 65

###!!! ASSERTION: aFrame's content should be an element: 'aFrame->GetContent()->IsElement()', file ../../../../../layout/svg/base/src/nsSVGEffects.cpp, line 480

Assertion failure: IsElement(), at ../../../../dist/include/mozilla/dom/Element.h:340
Attached file stacks
This is the same issue as bug 782888.

The problem is that markerStart inherits by default (why???) and in particular gets inherited into textframes.  So we're trying to restyle a textframe.

We really need to do _something_ here.  Bug 775304 caused us to violate some invariants.  We need to either stop doing that (either by backing out that bug or in some other way), or fix all the code that depended on those invariants.
Blocks: 775304
Depends on: 782888
Keywords: regression
Sounds like we should back it out, unless there's a big reason the optimization is important.
(And we should add comments pointing out that hints that result from inherited properties can't be non-inherited.)
backout of 775304 in bug 782888 is already approved for 17, but assigning this one to Jonathan anyway to make sure that the backout does what is intended for this bug.
Assignee: nobody → jwatt
Fixed by Cameron's patch in bug 782888
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Keywords: verifyme
Tested on:
Firefox 17.0 Beta Debug
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:17.0) Gecko/17.0 Firefox/17.0
Build ID: 20121020072533

I opened Firefox from Terminal and ran the testcase from comment 0. After running the testcase no assertion message was found and no crashes occurred.
Verified on
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:18.0) Gecko/20121130 Firefox/18.0 Beta Debug
Build ID:  20121130125945

I started Firefox Nightly Debug 18.0 Beta from Terminal and ran testcase from comment 0. No assertion found after running the testcase.
mass remove verifyme requests greater than 4 months old
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: