mirror of
https://github.com/servo/servo.git
synced 2025-08-01 19:50:30 +01:00
Make Stylesheet.dirty_on_viewport_size_change an AtomicBool
This commit is contained in:
parent
236c575c50
commit
cf7adcdca5
4 changed files with 27 additions and 6 deletions
|
@ -21,6 +21,7 @@ use html5ever_atoms::LocalName;
|
|||
use parking_lot::RwLock;
|
||||
use std::ascii::AsciiExt;
|
||||
use std::sync::Arc;
|
||||
use std::sync::atomic::AtomicBool;
|
||||
use style::attr::AttrValue;
|
||||
use style::str::HTML_SPACE_CHARACTERS;
|
||||
use style::stylesheets::{Stylesheet, CssRule, Origin};
|
||||
|
@ -101,7 +102,7 @@ impl HTMLMetaElement {
|
|||
media: Default::default(),
|
||||
// Viewport constraints are always recomputed on resize; they don't need to
|
||||
// force all styles to be recomputed.
|
||||
dirty_on_viewport_size_change: false,
|
||||
dirty_on_viewport_size_change: AtomicBool::new(false),
|
||||
}));
|
||||
let doc = document_from_node(self);
|
||||
doc.invalidate_stylesheets();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue