Implement CSSKeyframeRule.style

This commit is contained in:
Keith Yeung 2016-12-23 11:58:29 -08:00
parent 6d4ccab2b7
commit 18567ce7a8
6 changed files with 79 additions and 13 deletions

View file

@ -58,7 +58,7 @@ impl CSSStyleRuleMethods for CSSStyleRule {
fn Style(&self) -> Root<CSSStyleDeclaration> {
self.style_decl.or_init(|| {
CSSStyleDeclaration::new(self.global().as_window(),
CSSStyleOwner::CSSStyleRule(JS::from_ref(self.global().as_window()),
CSSStyleOwner::CSSRule(JS::from_ref(self.global().as_window()),
self.stylerule.read().block.clone()),
None,
CSSModificationAccess::ReadWrite)