Recompute viewport-dependent styles on viewport size change

Fixes #8754.
This commit is contained in:
Matt Brubeck 2016-03-04 11:02:45 -08:00
parent 4df7975ed3
commit 25c1bce9f6
9 changed files with 71 additions and 57 deletions

View file

@ -73,6 +73,9 @@ impl HTMLMetaElement {
rules: vec![CSSRule::Viewport(translated_rule)],
origin: Origin::Author,
media: None,
// Viewport constraints are always recomputed on resize; they don't need to
// force all styles to be recomputed.
dirty_on_viewport_size_change: false,
}));
let doc = document_from_node(self);
doc.invalidate_stylesheets();