mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
CSSRule -> CssRule
This commit is contained in:
parent
bfd4a0e5ff
commit
72c83c9394
5 changed files with 45 additions and 45 deletions
|
@ -22,7 +22,7 @@ use std::ascii::AsciiExt;
|
|||
use std::sync::Arc;
|
||||
use style::attr::AttrValue;
|
||||
use style::str::HTML_SPACE_CHARACTERS;
|
||||
use style::stylesheets::{Stylesheet, CSSRule, Origin};
|
||||
use style::stylesheets::{Stylesheet, CssRule, Origin};
|
||||
use style::viewport::ViewportRule;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -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)))],
|
||||
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