mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Wrap in Arc<_> every object reflected in CSSOM.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1281962#c5
This commit is contained in:
parent
94d5b28fe9
commit
ef5977f059
4 changed files with 50 additions and 49 deletions
|
@ -79,7 +79,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(translated_rule)],
|
||||
rules: vec![CSSRule::Viewport(Arc::new(translated_rule))],
|
||||
origin: Origin::Author,
|
||||
media: None,
|
||||
// Viewport constraints are always recomputed on resize; they don't need to
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue