fixed re-resolve style contexts to handle local pseudo elements

and capture style change information


git-svn-id: svn://10.0.0.236/trunk@35705 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterl%netscape.com
1999-06-16 06:17:21 +00:00
parent 5770b2f9a6
commit a86f4802a3
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;