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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jruderman, Unassigned)

References

Details

(Keywords: assertion, testcase)

Attachments

(1 file)

Attached file testcase
###!!! 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.)
> ###!!! 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.
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...
The patch in bug 457514 fixes this.
Depends on: 457514
Yep, seems fixed.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: