Closed
Bug 503936
Opened 16 years ago
Closed 15 years ago
"ASSERTION: frame must have content (unless at the top of the tree)" with floating first-letter, range operations
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: jruderman, Unassigned)
References
Details
(Keywords: assertion, testcase)
Attachments
(1 file)
486 bytes,
text/html
|
Details |
###!!! ASSERTION: SetMayHaveFrame failed?: 'mContent->MayHaveFrame()', file /Users/jruderman/central/layout/generic/nsFrame.cpp, line 369
###!!! ASSERTION: frame must have content (unless at the top of the tree): 'aFrame->GetContent() || !aParentContent || !aParentContent->GetParent()', file /Users/jruderman/central/layout/base/nsFrameManager.cpp, line 1096
Also, the 'F' remains on the screen, and I think it shouldn't.
Related to bug 483346? (See bug 483346 comment 2.)
Comment 1•16 years ago
|
||
> ###!!! ASSERTION: SetMayHaveFrame failed?: 'mContent->MayHaveFrame()', file
> /Users/jruderman/central/layout/generic/nsFrame.cpp, line 369
This means mContent is a text node with a null parent.
> ###!!! ASSERTION: frame must have content (unless at the top of the tree):
This would be a first-letter frame with a null mContent. Not sure how it got there.
Comment 2•16 years ago
|
||
Ah, it happens because we init the first-letter frame with letterContent, which is gotten like so:
nsIContent* letterContent = aTextContent->GetParent();
So the real issue is that aTextContent isn't actually in the tree anymore...
Reporter | ||
Comment 4•15 years ago
|
||
Yep, seems fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 5•15 years ago
|
||
tn added this as a crashtest:
http://hg.mozilla.org/mozilla-central/rev/790386742994
Flags: in-testsuite+
Comment 6•15 years ago
|
||
And also on 1.9.2
http://hg.mozilla.org/releases/mozilla-1.9.2/rev/e64520854382
You need to log in
before you can comment on or make changes to this bug.
Description
•