Skip to content
Permalink
Browse files

Stylo's atom generation needs to deal with wrapper anon boxes.

  • Loading branch information
bzbarsky committed Aug 11, 2017
1 parent 62dfee5 commit e84cb45078c27d67c27b4ef93c584afd8f6aa883
Showing with 3 additions and 2 deletions.
  1. +3 −2 components/style/gecko/regen_atoms.py
@@ -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 @@ 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-")

0 comments on commit e84cb45

Please sign in to comment.
You can’t perform that action at this time.