Implement parsing of tree pseudo-elements.

This commit is contained in:
Xidorn Quan 2017-07-12 15:07:32 +10:00
parent 832c4c4079
commit a307653581
4 changed files with 94 additions and 21 deletions

View file

@ -103,6 +103,9 @@ class Atom:
def is_anon_box(self):
return self.type() == "nsICSSAnonBoxPseudo"
def is_tree_pseudo_element(self):
return self.value.startswith(":-moz-tree-")
def collect_atoms(objdir):
atoms = []