mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Stylo's atom generation needs to deal with wrapper anon boxes.
This commit is contained in:
parent
62dfee5e03
commit
e84cb45078
1 changed files with 3 additions and 2 deletions
|
@ -55,7 +55,7 @@ class CSSPseudoElementsAtomSource:
|
|||
|
||||
|
||||
class CSSAnonBoxesAtomSource:
|
||||
PATTERN = re.compile('^(CSS_ANON_BOX|CSS_NON_INHERITING_ANON_BOX)\((.+),\s*"(.*)"\)')
|
||||
PATTERN = re.compile('^(CSS_ANON_BOX|CSS_NON_INHERITING_ANON_BOX|CSS_WRAPPER_ANON_BOX)\((.+),\s*"(.*)"\)')
|
||||
FILE = "include/nsCSSAnonBoxList.h"
|
||||
CLASS = "nsCSSAnonBoxes"
|
||||
TYPE = "nsICSSAnonBoxPseudo"
|
||||
|
@ -110,7 +110,8 @@ class Atom:
|
|||
return self.macro == "CSS_NON_INHERITING_ANON_BOX"
|
||||
|
||||
def is_inheriting_anon_box(self):
|
||||
return self.macro == "CSS_ANON_BOX"
|
||||
return (self.macro == "CSS_ANON_BOX" or
|
||||
self.macro == "CSS_WRAPPER_ANON_BOX")
|
||||
|
||||
def is_tree_pseudo_element(self):
|
||||
return self.value.startswith(":-moz-tree-")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue