Remove |aForceUnique| parameter from style context resolving methods, and corresponding flag from nsStyleContext, since the only caller was ReResolveStyleContext (on the assumption that other callers used it). Allow ReResolveStyleContext to benefit from FindChildWithRules and allow it to re-resolve to the same tree even when called on the root style context. b=133821 r=attinasi sr=hyatt a=asa
This commit is contained in:
@@ -349,12 +349,10 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext* aPresContext)
|
||||
|
||||
// style for the inner such as a dotted line (Windows)
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusInnerPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mInnerFocusStyle));
|
||||
|
||||
// style for outer focus like a ridged border (MAC).
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusOuterPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mOuterFocusStyle));
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user