diff options
author | Mahdi Dibaiee <mdibaiee@aol.com> | 2015-08-20 00:53:46 +0430 |
---|---|---|
committer | Mahdi Dibaiee <mdibaiee@aol.com> | 2015-08-22 15:16:15 +0430 |
commit | b7d25159d3ab5b1a5a9bc93df522b755c18f95ff (patch) | |
tree | a8891ebc83e87c4467c4eeaf45813e3a3943fbc7 /components/script/dom/htmlelement.rs | |
parent | 70b9922eb021a41ebdd9f54a4db0e9ddfb17786a (diff) | |
download | servo-b7d25159d3ab5b1a5a9bc93df522b755c18f95ff.tar.gz servo-b7d25159d3ab5b1a5a9bc93df522b755c18f95ff.zip |
Fix #7268 - getComputedStyle should take `Element`, not `HTMLElement`
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r-- | components/script/dom/htmlelement.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs index e5f8f35221b..66b1bfc82fc 100644 --- a/components/script/dom/htmlelement.rs +++ b/components/script/dom/htmlelement.rs @@ -136,7 +136,7 @@ impl<'a> HTMLElementMethods for &'a HTMLElement { fn Style(self) -> Root<CSSStyleDeclaration> { self.style_decl.or_init(|| { let global = window_from_node(self); - CSSStyleDeclaration::new(global.r(), self, None, CSSModificationAccess::ReadWrite) + CSSStyleDeclaration::new(global.r(), ElementCast::from_ref(self), None, CSSModificationAccess::ReadWrite) }) } @@ -458,4 +458,3 @@ impl PartialEq for HTMLElementTypeId { } } } - |