Closed
Bug 208870
Opened 22 years ago
Closed 22 years ago
remove :before search in nsCSSFrameConstructor::FindFrameWithContent()
Categories
(Core :: Layout, defect, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.5alpha
People
(Reporter: ian, Assigned: dbaron)
Details
(Whiteboard: [patch])
Attachments
(1 file, 1 obsolete file)
|
3.33 KB,
patch
|
bzbarsky
:
review+
bzbarsky
:
superreview+
|
Details | Diff | Splinter Review |
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
}
| Assignee | ||
Comment 1•22 years ago
|
||
| Assignee | ||
Comment 2•22 years ago
|
||
Taking.
Assignee: misc → dbaron
Priority: -- → P2
Whiteboard: [patch]
Target Milestone: --- → mozilla1.5alpha
| Assignee | ||
Comment 3•22 years ago
|
||
Attachment #125267 -
Attachment is obsolete: true
| Assignee | ||
Comment 4•22 years ago
|
||
(This code is no longer needed due to the changes for bug 141054.)
| Assignee | ||
Updated•22 years ago
|
Attachment #125268 -
Flags: superreview?(bz-bugspam)
Attachment #125268 -
Flags: review?(bz-bugspam)
Comment 5•22 years ago
|
||
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+
| Assignee | ||
Comment 6•22 years ago
|
||
Fix checked in to trunk, 2003-06-10 15:11 -0700.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
Updated•7 years ago
|
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.
Description
•