fixed re-resolve style contexts to handle local pseudo elements

and capture style change information
This commit is contained in:
peterl@netscape.com
1999-06-16 06:17:21 +00:00
parent 61b9f1c00a
commit 1d2345b394
8 changed files with 72 additions and 28 deletions

View File

@@ -589,9 +589,12 @@ nsHTMLButtonControlFrame::ReResolveStyleContext ( nsIPresContext* aPresContext,
return rv;
}
if (NS_COMFALSE != rv) {
mRenderer.ReResolveStyles(*aPresContext);
if (NS_COMFALSE != rv) { // frame style changed
if (aLocalChange) {
aParentChange = *aLocalChange; // tell children about or change
}
}
mRenderer.ReResolveStyles(*aPresContext, aParentChange, aChangeList, aLocalChange);
return rv;