aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/cssgroupingrule.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2016-11-16 17:31:37 -0800
committerManish Goregaokar <manishsmail@gmail.com>2016-11-23 09:32:40 -0800
commit53c99662bce82d9975c1a91e66cfdf1197ff53a2 (patch)
tree6cd50acdb6edc9da4d7b43e4e7c5547536e88082 /components/script/dom/cssgroupingrule.rs
parent52a3a71be3d025f080bb5fe4603f517a5523aa5d (diff)
downloadservo-53c99662bce82d9975c1a91e66cfdf1197ff53a2.tar.gz
servo-53c99662bce82d9975c1a91e66cfdf1197ff53a2.zip
Make parent stylesheet optional for CSSRules
Diffstat (limited to 'components/script/dom/cssgroupingrule.rs')
-rw-r--r--components/script/dom/cssgroupingrule.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/cssgroupingrule.rs b/components/script/dom/cssgroupingrule.rs
index 3558686ea74..34d7a9d15b6 100644
--- a/components/script/dom/cssgroupingrule.rs
+++ b/components/script/dom/cssgroupingrule.rs
@@ -15,14 +15,14 @@ pub struct CSSGroupingRule {
}
impl CSSGroupingRule {
- pub fn new_inherited(parent: &CSSStyleSheet) -> CSSGroupingRule {
+ pub fn new_inherited(parent: Option<&CSSStyleSheet>) -> CSSGroupingRule {
CSSGroupingRule {
cssrule: CSSRule::new_inherited(parent),
}
}
#[allow(unrooted_must_root)]
- pub fn new(window: &Window, parent: &CSSStyleSheet) -> Root<CSSGroupingRule> {
+ pub fn new(window: &Window, parent: Option<&CSSStyleSheet>) -> Root<CSSGroupingRule> {
reflect_dom_object(box CSSGroupingRule::new_inherited(parent),
window,
CSSGroupingRuleBinding::Wrap)