diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-28 11:21:14 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-08-28 12:05:22 +0200 |
commit | 15e71c5670244b77d3141db2c7e9aac3e5bffcb2 (patch) | |
tree | c9c39a20168f506840a2bb755e2816ba187ae456 /components/script/stylesheet_loader.rs | |
parent | 97338d0e841f6a7e98fd3040add5b870e47dff9f (diff) | |
download | servo-15e71c5670244b77d3141db2c7e9aac3e5bffcb2.tar.gz servo-15e71c5670244b77d3141db2c7e9aac3e5bffcb2.zip |
style: Don't look for viewport units in stylesheets.
Use whether we've computed any viewport unit instead.
This is more accurate (we avoid restyling unnecessarily if we've found anything
ever on the stylesheet, but that hasn't matched).
This has the benefit of also matching Gecko, and simplify some code and
fishyness around, and also hopefully speeding up stylesheet parsing.
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r-- | components/script/stylesheet_loader.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index 2271a8bba0a..1e6b2470e5c 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -289,7 +289,6 @@ impl<'a> StyleStylesheetLoader for StylesheetLoader<'a> { rules: CssRules::new(Vec::new(), lock), origin: context.stylesheet_origin, url_data: RwLock::new(context.url_data.clone()), - dirty_on_viewport_size_change: AtomicBool::new(false), quirks_mode: context.quirks_mode, namespaces: RwLock::new(Namespaces::default()), source_map_url: RwLock::new(None), |