Issue #3024 - First pass support for :host and :host-context

This commit is contained in:
Matt A. Tobin 2021-12-05 20:16:02 -05:00 • committed by roytam1
commit 4cc56c2cb6
12 changed files with 358 additions and 34 deletions

View file

@ -151,6 +151,8 @@ public:
nsCSSSelector* Clone() const { return Clone(true, true); }
void Reset(void);
bool HasFeatureSelectors();
void SetHasExplicitUniversal();
void SetNameSpace(int32_t aNameSpace);
void SetTag(const nsString& aTag);
void AddID(const nsString& aID);
@ -231,9 +233,10 @@ public:
// the argument to functional pseudos
nsAttrSelector* mAttrList;
nsCSSSelector* mNegations;
nsCSSSelector* mNext;
bool mExplicitUniversal; // True if universal selector explicitly
nsCSSSelector* mNext; // appears in the selector
int32_t mNameSpace;
char16_t mOperator;
char mOperator;
private:
// The underlying type of CSSPseudoElementType is uint8_t and
// it packs well with mOperator. (char16_t + uint8_t is less than 32bits.)