aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlmetaelement.rs
diff options
context:
space:
mode:
authorXidorn Quan <me@upsuper.org>2016-11-10 15:32:16 +1100
committerXidorn Quan <me@upsuper.org>2016-11-10 17:42:16 +1100
commit5dfcb07f6a8c86f61ecf78fb628939e0b484ea68 (patch)
treeefe3e33a03a85c1efcf2f4262a624b410e53280d /components/script/dom/htmlmetaelement.rs
parenta91f48ee05933784630fdf918fc4b66037dba9f1 (diff)
downloadservo-5dfcb07f6a8c86f61ecf78fb628939e0b484ea68.tar.gz
servo-5dfcb07f6a8c86f61ecf78fb628939e0b484ea68.zip
Allow empty media query list
And make empty list the default value of MediaList. This commit also removes Option wrapper of Stylesheet.media because a stylesheet should always have an associated media query list.
Diffstat (limited to 'components/script/dom/htmlmetaelement.rs')
-rw-r--r--components/script/dom/htmlmetaelement.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs
index 14f9cd78555..7ddca9f2f8a 100644
--- a/components/script/dom/htmlmetaelement.rs
+++ b/components/script/dom/htmlmetaelement.rs
@@ -83,7 +83,7 @@ impl HTMLMetaElement {
*self.stylesheet.borrow_mut() = Some(Arc::new(Stylesheet {
rules: vec![CSSRule::Viewport(Arc::new(RwLock::new(translated_rule)))],
origin: Origin::Author,
- media: None,
+ 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,