Consolidate all CSS pseudos and split them into three atom lists to distinguish between pseudo-classes, pseudo-elements, and fake-pseudo-elements used for anonymous boxes. b=147887 r,sr=roc,bz
This commit is contained in:
@@ -52,6 +52,7 @@
|
||||
#include "nsCSSRendering.h"
|
||||
#include "nsISupports.h"
|
||||
#include "nsHTMLAtoms.h"
|
||||
#include "nsCSSAnonBoxes.h"
|
||||
#include "nsIImage.h"
|
||||
#include "nsStyleConsts.h"
|
||||
#include "nsIHTMLContent.h"
|
||||
@@ -146,7 +147,8 @@ nsHTMLButtonControlFrame::Init(nsIPresContext* aPresContext,
|
||||
|
||||
// Resolve style and initialize the frame
|
||||
nsIStyleContext* styleContext;
|
||||
aPresContext->ResolvePseudoStyleContextFor(mContent, nsHTMLAtoms::buttonContentPseudo,
|
||||
aPresContext->ResolvePseudoStyleContextFor(mContent,
|
||||
nsCSSAnonBoxes::buttonContent,
|
||||
mStyleContext,
|
||||
&styleContext);
|
||||
mFrames.FirstChild()->Init(aPresContext, mContent, this, styleContext, nsnull);
|
||||
|
||||
Reference in New Issue
Block a user