diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-08-28 08:48:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-28 08:48:47 -0500 |
commit | 96b4e064a1f0b0fc1ee2811d0c1b528f85a718c6 (patch) | |
tree | b7df4c7c270dd6493eb5ad92e646bc413ba522f5 /components/script/dom | |
parent | 94c870726f0f549ab011451d0bafb4fe6a60e2c1 (diff) | |
parent | 15e71c5670244b77d3141db2c7e9aac3e5bffcb2 (diff) | |
download | servo-96b4e064a1f0b0fc1ee2811d0c1b528f85a718c6.tar.gz servo-96b4e064a1f0b0fc1ee2811d0c1b528f85a718c6.zip |
Auto merge of #18267 - emilio:dirty-on-viewport-size-change, r=SimonSapin
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.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18267)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/htmlmetaelement.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs index d2cb332e7e4..5e2d9c1c0b4 100644 --- a/components/script/dom/htmlmetaelement.rs +++ b/components/script/dom/htmlmetaelement.rs @@ -109,10 +109,6 @@ impl HTMLMetaElement { namespaces: Default::default(), quirks_mode: document.quirks_mode(), url_data: RwLock::new(window_from_node(self).get_url()), - // Viewport constraints are always recomputed on - // resize; they don't need to force all styles to be - // recomputed. - dirty_on_viewport_size_change: AtomicBool::new(false), source_map_url: RwLock::new(None), }, media: Arc::new(shared_lock.wrap(MediaList::empty())), |