Typo fixes

This commit is contained in:
Simon Sapin 2016-08-17 20:49:17 +02:00
parent ab846ab196
commit 31864954ed
2 changed files with 9 additions and 9 deletions

View file

@ -185,15 +185,15 @@ class PropertiesData(object):
if self.product not in products: if self.product not in products:
return return
longand = Longhand(self.current_style_struct, name, **kwargs) longhand = Longhand(self.current_style_struct, name, **kwargs)
self.current_style_struct.longhands.append(longand) self.current_style_struct.longhands.append(longhand)
self.longhands.append(longand) self.longhands.append(longhand)
self.longhands_by_name[name] = longand self.longhands_by_name[name] = longhand
for name in longand.derived_from: for name in longhand.derived_from:
self.derived_longhands.setdefault(name, []).append(longand) self.derived_longhands.setdefault(name, []).append(longhand)
return longand return longhand
def declare_shorthand(self, name, sub_properties, products="gecko servo", *args, **kwargs): def declare_shorthand(self, name, sub_properties, products="gecko servo", *args, **kwargs):
products = products.split() products = products.split()

View file

@ -525,10 +525,10 @@ impl Stylist {
/// Map that contains the CSS rules for a given origin. /// Map that contains the CSS rules for a given origin.
#[cfg_attr(feature = "servo", derive(HeapSizeOf))] #[cfg_attr(feature = "servo", derive(HeapSizeOf))]
struct PerOriginSelectorMap { struct PerOriginSelectorMap {
/// Rules that contains at least one property declararion with /// Rules that contains at least one property declaration with
/// normal importance. /// normal importance.
normal: SelectorMap<Vec<PropertyDeclaration>, TheSelectorImpl>, normal: SelectorMap<Vec<PropertyDeclaration>, TheSelectorImpl>,
/// Rules that contains at least one property declararion with /// Rules that contains at least one property declaration with
/// !important. /// !important.
important: SelectorMap<Vec<PropertyDeclaration>, TheSelectorImpl>, important: SelectorMap<Vec<PropertyDeclaration>, TheSelectorImpl>,
} }