Closed Bug 208870 Opened 22 years ago Closed 22 years ago

remove :before search in nsCSSFrameConstructor::FindFrameWithContent()

Categories

(Core :: Layout, defect, P2)

x86
Windows 2000
defect

Tracking

()

RESOLVED FIXED
mozilla1.5alpha

People

(Reporter: ian, Assigned: dbaron)

Details

(Whiteboard: [patch])

Attachments

(1 file, 1 obsolete file)

dbaron asked that i file a bug about removing the following from nsCSSFrameConstructor::FindFrameWithContent() ...: // Check if kidframe is the :before pseudo frame for aContent. If it // is, and aContent is an element, then aContent might be a // non-splittable-element, so the real primary frame could be the // next sibling. if (aContent->IsContentOfType(nsIContent::eELEMENT) && nsLayoutUtils::IsGeneratedContentFor(aContent, kidFrame, nsCSSPseudoElements::before)) { kidFrame->GetNextSibling(&kidFrame); #ifdef DEBUG NS_ASSERTION(kidFrame, ":before with no next sibling"); if (kidFrame) { nsCOMPtr<nsIContent> nextSiblingContent; kidFrame->GetContent(getter_AddRefs(nextSiblingContent)); // Make sure the content matches, and because I'm paranoid, // make sure it's not the :after pseudo frame. NS_ASSERTION(nextSiblingContent.get() == aContent && !nsLayoutUtils::IsGeneratedContentFor(aContent, kidFrame, nsCSSPseudoElements::after), ":before frame not followed by primary frame"); } #endif }
Taking.
Assignee: misc → dbaron
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.5alpha
Attached patch patchSplinter Review
Attachment #125267 - Attachment is obsolete: true
(This code is no longer needed due to the changes for bug 141054.)
Attachment #125268 - Flags: superreview?(bz-bugspam)
Attachment #125268 - Flags: review?(bz-bugspam)
Comment on attachment 125268 [details] [diff] [review] patch r+sr=me
Attachment #125268 - Flags: superreview?(bz-bugspam)
Attachment #125268 - Flags: superreview+
Attachment #125268 - Flags: review?(bz-bugspam)
Attachment #125268 - Flags: review+
Fix checked in to trunk, 2003-06-10 15:11 -0700.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: