fixed re-resolve style contexts to handle local pseudo elements
and capture style change information
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user