Added nsHTMLAtoms::wrappedFramePseudo and changed ConstructFrame() to use

it instead of nsHTMLAtoms::columnPseudo


git-svn-id: svn://10.0.0.236/trunk@15068 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
troy%netscape.com
1998-11-20 23:27:59 +00:00
parent d81bdb762d
commit 021ed0f162
11 changed files with 29 additions and 9 deletions

View File

@@ -1742,11 +1742,11 @@ HTMLStyleSheetImpl::ConstructFrame(nsIPresContext* aPresContext,
wrapperFrame->SetStyleContext(aPresContext, scrolledPseudoStyle);
// The wrapped frame also gets a pseudo style context, but it doesn't
// inherit any background properties
// XXX We should define something like :WRAPPED-FRAME in ua.css
// inherit any background properties. It does inherit the 'display'
// property (very important that it does)
nsIStyleContext* wrappedPseudoStyle;
wrappedPseudoStyle = aPresContext->ResolvePseudoStyleContextFor
(aContent, nsHTMLAtoms::columnPseudo,
(aContent, nsHTMLAtoms::wrappedFramePseudo,
scrolledPseudoStyle);
NS_RELEASE(scrolledPseudoStyle);
aParentFrame = wrapperFrame;