aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-08-17 20:49:17 +0200
committerSimon Sapin <simon.sapin@exyr.org>2016-08-21 03:40:26 +0200
commit31864954ed32c51a0bd6e024c0031ceb96b10e93 (patch)
tree1e0030358d4402667792e91fd53f7f36a22c9a6e
parentab846ab196f2a9f891a5189c8e5e2501ead7a6a3 (diff)
downloadservo-31864954ed32c51a0bd6e024c0031ceb96b10e93.tar.gz
servo-31864954ed32c51a0bd6e024c0031ceb96b10e93.zip
Typo fixes
-rw-r--r--components/style/properties/data.py14
-rw-r--r--components/style/selector_matching.rs4
2 files changed, 9 insertions, 9 deletions
diff --git a/components/style/properties/data.py b/components/style/properties/data.py
index 4ae14a11177..32b37063867 100644
--- a/components/style/properties/data.py
+++ b/components/style/properties/data.py
@@ -185,15 +185,15 @@ class PropertiesData(object):
if self.product not in products:
return
- longand = Longhand(self.current_style_struct, name, **kwargs)
- self.current_style_struct.longhands.append(longand)
- self.longhands.append(longand)
- self.longhands_by_name[name] = longand
+ longhand = Longhand(self.current_style_struct, name, **kwargs)
+ self.current_style_struct.longhands.append(longhand)
+ self.longhands.append(longhand)
+ self.longhands_by_name[name] = longhand
- for name in longand.derived_from:
- self.derived_longhands.setdefault(name, []).append(longand)
+ for name in longhand.derived_from:
+ self.derived_longhands.setdefault(name, []).append(longhand)
- return longand
+ return longhand
def declare_shorthand(self, name, sub_properties, products="gecko servo", *args, **kwargs):
products = products.split()
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs
index 76e30c70d82..a793fec1ff4 100644
--- a/components/style/selector_matching.rs
+++ b/components/style/selector_matching.rs
@@ -525,10 +525,10 @@ impl Stylist {
/// Map that contains the CSS rules for a given origin.
#[cfg_attr(feature = "servo", derive(HeapSizeOf))]
struct PerOriginSelectorMap {
- /// Rules that contains at least one property declararion with
+ /// Rules that contains at least one property declaration with
/// normal importance.
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: SelectorMap<Vec<PropertyDeclaration>, TheSelectorImpl>,
}