mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Don't re-create atom over and over. r=hyatt
This commit is contained in:
parent
649881fcba
commit
8d89aefd28
@ -340,14 +340,12 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext* aPresContext)
|
||||
|
||||
|
||||
// style for the inner such as a dotted line (Windows)
|
||||
nsCOMPtr<nsIAtom> atom = getter_AddRefs(NS_NewAtom(":-moz-focus-inner"));
|
||||
aPresContext->ProbePseudoStyleContextFor(content, atom, context,
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusInnerPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mInnerFocusStyle));
|
||||
|
||||
// style for outer focus like a ridged border (MAC).
|
||||
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-outer"));
|
||||
aPresContext->ProbePseudoStyleContextFor(content, atom, context,
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusOuterPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mOuterFocusStyle));
|
||||
|
||||
|
@ -340,14 +340,12 @@ nsButtonFrameRenderer::ReResolveStyles(nsIPresContext* aPresContext)
|
||||
|
||||
|
||||
// style for the inner such as a dotted line (Windows)
|
||||
nsCOMPtr<nsIAtom> atom = getter_AddRefs(NS_NewAtom(":-moz-focus-inner"));
|
||||
aPresContext->ProbePseudoStyleContextFor(content, atom, context,
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusInnerPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mInnerFocusStyle));
|
||||
|
||||
// style for outer focus like a ridged border (MAC).
|
||||
atom = getter_AddRefs(NS_NewAtom(":-moz-focus-outer"));
|
||||
aPresContext->ProbePseudoStyleContextFor(content, atom, context,
|
||||
aPresContext->ProbePseudoStyleContextFor(content, nsHTMLAtoms::mozFocusOuterPseudo, context,
|
||||
PR_FALSE,
|
||||
getter_AddRefs(mOuterFocusStyle));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user