Skip to content

Commit

Permalink
Stylo's atom generation needs to deal with wrapper anon boxes.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky committed Aug 11, 2017
1 parent 62dfee5 commit e84cb45
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions components/style/gecko/regen_atoms.py
Expand Up @@ -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"
Expand Down Expand Up @@ -110,7 +110,8 @@ def is_non_inheriting_anon_box(self):
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-")
Expand Down

0 comments on commit e84cb45

Please sign in to comment.