mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Arc all Vec<CSSRule>s, put in CSSRules type
This commit is contained in:
parent
ef74d8da3b
commit
2220fcdc0b
3 changed files with 18 additions and 10 deletions
|
@ -81,7 +81,7 @@ impl HTMLMetaElement {
|
|||
if !content.is_empty() {
|
||||
if let Some(translated_rule) = ViewportRule::from_meta(&**content) {
|
||||
*self.stylesheet.borrow_mut() = Some(Arc::new(Stylesheet {
|
||||
rules: vec![CssRule::Viewport(Arc::new(RwLock::new(translated_rule)))],
|
||||
rules: vec![CssRule::Viewport(Arc::new(RwLock::new(translated_rule)))].into(),
|
||||
origin: Origin::Author,
|
||||
media: Default::default(),
|
||||
// Viewport constraints are always recomputed on resize; they don't need to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue