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

it instead of nsHTMLAtoms::columnPseudo
This commit is contained in:
troy%netscape.com 1998-11-20 23:27:59 +00:00
Родитель 81ab6c6336
Коммит 4893fa0a92
11 изменённых файлов: 29 добавлений и 9 удалений

Просмотреть файл

@ -242,6 +242,7 @@ nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::xmlRootPseudo;
nsIAtom* nsHTMLAtoms::zindex;
@ -473,6 +474,7 @@ void nsHTMLAtoms::AddrefAtoms()
wbr = NS_NewAtom("WBR");
width = NS_NewAtom("WIDTH");
wrap = NS_NewAtom("WRAP");
wrappedFramePseudo = NS_NewAtom(":WRAPPED-FRAME");
xmlRootPseudo = NS_NewAtom(":XML-ROOT");
zindex = NS_NewAtom("ZINDEX");
}
@ -695,6 +697,7 @@ void nsHTMLAtoms::ReleaseAtoms()
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(xmlRootPseudo);
NS_RELEASE(zindex);
}

Просмотреть файл

@ -280,6 +280,7 @@ public:
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* xmlRootPseudo;

Просмотреть файл

@ -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;

Просмотреть файл

@ -280,6 +280,7 @@ public:
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* xmlRootPseudo;

Просмотреть файл

@ -242,6 +242,7 @@ nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::xmlRootPseudo;
nsIAtom* nsHTMLAtoms::zindex;
@ -473,6 +474,7 @@ void nsHTMLAtoms::AddrefAtoms()
wbr = NS_NewAtom("WBR");
width = NS_NewAtom("WIDTH");
wrap = NS_NewAtom("WRAP");
wrappedFramePseudo = NS_NewAtom(":WRAPPED-FRAME");
xmlRootPseudo = NS_NewAtom(":XML-ROOT");
zindex = NS_NewAtom("ZINDEX");
}
@ -695,6 +697,7 @@ void nsHTMLAtoms::ReleaseAtoms()
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(xmlRootPseudo);
NS_RELEASE(zindex);
}

Просмотреть файл

@ -242,6 +242,7 @@ nsIAtom* nsHTMLAtoms::vspace;
nsIAtom* nsHTMLAtoms::wbr;
nsIAtom* nsHTMLAtoms::width;
nsIAtom* nsHTMLAtoms::wrap;
nsIAtom* nsHTMLAtoms::wrappedFramePseudo;
nsIAtom* nsHTMLAtoms::xmlRootPseudo;
nsIAtom* nsHTMLAtoms::zindex;
@ -473,6 +474,7 @@ void nsHTMLAtoms::AddrefAtoms()
wbr = NS_NewAtom("WBR");
width = NS_NewAtom("WIDTH");
wrap = NS_NewAtom("WRAP");
wrappedFramePseudo = NS_NewAtom(":WRAPPED-FRAME");
xmlRootPseudo = NS_NewAtom(":XML-ROOT");
zindex = NS_NewAtom("ZINDEX");
}
@ -695,6 +697,7 @@ void nsHTMLAtoms::ReleaseAtoms()
NS_RELEASE(wbr);
NS_RELEASE(width);
NS_RELEASE(wrap);
NS_RELEASE(wrappedFramePseudo);
NS_RELEASE(xmlRootPseudo);
NS_RELEASE(zindex);
}

Просмотреть файл

@ -280,6 +280,7 @@ public:
static nsIAtom* wbr;
static nsIAtom* width;
static nsIAtom* wrap;
static nsIAtom* wrappedFramePseudo;
static nsIAtom* xmlRootPseudo;

Просмотреть файл

@ -499,6 +499,10 @@ NOFRAMES {
display: inherit;
}
:WRAPPED-FRAME {
display: inherit;
}
:XML-ROOT {
background-color: inherit;
}

Просмотреть файл

@ -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;

Просмотреть файл

@ -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;

Просмотреть файл

@ -499,6 +499,10 @@ NOFRAMES {
display: inherit;
}
:WRAPPED-FRAME {
display: inherit;
}
:XML-ROOT {
background-color: inherit;
}