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

git-svn-id: svn://10.0.0.236/trunk@134006 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dbaron%fas.harvard.edu
2002-11-17 15:37:56 +00:00
parent 02ec7d08b8
commit 307f43b5a1
76 changed files with 1678 additions and 613 deletions

View File

@@ -43,6 +43,7 @@
#include "nsFormControlFrame.h"
#include "nsIHTMLContent.h"
#include "nsHTMLAtoms.h"
#include "nsCSSAnonBoxes.h"
#include "nsHTMLParts.h"
#include "nsIFormControl.h"
#include "nsINameSpaceManager.h"
@@ -2169,7 +2170,7 @@ nsComboboxControlFrame::CreateDisplayFrame(nsIPresContext* aPresContext)
// create the style context for the anonymous frame
nsCOMPtr<nsIStyleContext> styleContext;
rv = aPresContext->ResolvePseudoStyleContextFor(mContent,
nsHTMLAtoms::mozDisplayComboboxControlFrame,
nsCSSAnonBoxes::mozDisplayComboboxControlFrame,
mStyleContext,
getter_AddRefs(styleContext));
if (NS_FAILED(rv)) { return rv; }
@@ -2309,7 +2310,7 @@ nsComboboxControlFrame::CreateFrameFor(nsIPresContext* aPresContext,
// create the style context for the anonymous block frame
nsCOMPtr<nsIStyleContext> styleContext;
rv = aPresContext->ResolvePseudoStyleContextFor(mContent,
nsHTMLAtoms::mozDisplayComboboxControlFrame,
nsCSSAnonBoxes::mozDisplayComboboxControlFrame,
mStyleContext,
getter_AddRefs(styleContext));
if (NS_FAILED(rv)) { return rv; }