Closed Bug 537141 Opened 15 years ago Closed 15 years ago

"ASSERTION: Text node has a frame and NS_CREATE_FRAME_IF_NON_WHITESPACE" with XBL, MathML, SVG

Categories

(Core :: Layout, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Assigned: bzbarsky)

References

Details

(Keywords: assertion, testcase)

Attachments

(2 files)

###!!! ASSERTION: Text node has a frame and NS_CREATE_FRAME_IF_NON_WHITESPACE: '!content->GetPrimaryFrame()', file /Users/jruderman/central/layout/base/nsCSSFrameConstructor.cpp, line 6080

I have a note that says this might be related to bug 396367, but I don't remember why I wrote that.
Attached file testcase
What happens here is that we end up creating an incorrect textframe (one with a wrong frametree parent) for a content node (for reasons much like those of bug 536623).  Then we go to try to construct the "right" textframe, discover it's not needed, and add the NS_CREATE_FRAME_IF_NON_WHITESPACE bit to a node that already has a textframe.  Then later we hit the assert this bug is about.

The proposed fix for bug 536623 should fix this.  We might want to add an assert at the callsite that adds NS_CREATE_FRAME_IF_NON_WHITESPACE that the content object doesn't have a frame already, though.
Blocks: 495385
Depends on: 536623
Assignee: nobody → bzbarsky
Fixed by fix for bug 536623 (and the assert mentioned in comment 2 added).
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: