Added new style interfaces. Implemented getStyle() on HTMLElement. Moved DOM fields into side struct for nsGenericHTMLElement. Implemented style declaration interface on proxy. Added new entry point to CSSParser and new methods to style declaration.

This commit is contained in:
vidur@netscape.com
1998-09-25 00:51:45 +00:00
parent c8e645cffd
commit 85ebec76c8
31 changed files with 4919 additions and 645 deletions

View File

@@ -478,6 +478,21 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIPresContext& aPresContext,
return NS_OK;
}
NS_IMETHODIMP
nsHTMLContainerFrame::AttributeChanged(nsIPresShell* aShell,
nsIPresContext* aPresContext,
nsIContent* aChild,
nsIAtom* aAttribute)
{
if (nsHTMLAtoms::style == aAttribute) {
ApplyStyleChangeToTree(*aPresContext, this);
ApplyReflowChangeToTree(*aPresContext, this);
ApplyRenderingChangeToTree(*aPresContext, this);
}
return NS_OK;
}
void
nsHTMLContainerFrame::ApplyStyleChangeToTree(nsIPresContext& aPresContext,
nsIFrame* aFrame)