aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/htmlelement.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2014-09-19 13:06:19 -0400
committerJosh Matthews <josh@joshmatthews.net>2014-12-18 12:54:02 -0500
commit505e1855a331c046c61417c750f45486363885c1 (patch)
treebdd88e16418df0fa51e3d235eddd1d1c0b23e0c2 /components/script/dom/htmlelement.rs
parent2e14b653bf3fd1e43d099fee6e404c2cc562ffac (diff)
downloadservo-505e1855a331c046c61417c750f45486363885c1.tar.gz
servo-505e1855a331c046c61417c750f45486363885c1.zip
Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements.
Diffstat (limited to 'components/script/dom/htmlelement.rs')
-rw-r--r--components/script/dom/htmlelement.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmlelement.rs b/components/script/dom/htmlelement.rs
index cf7915f3269..e37b37b3c55 100644
--- a/components/script/dom/htmlelement.rs
+++ b/components/script/dom/htmlelement.rs
@@ -73,8 +73,8 @@ impl<'a> PrivateHTMLElementHelpers for JSRef<'a, HTMLElement> {
impl<'a> HTMLElementMethods for JSRef<'a, HTMLElement> {
fn Style(self) -> Temporary<CSSStyleDeclaration> {
if self.style_decl.get().is_none() {
- let global = window_from_node(self);
- let style_props = CSS2Properties::new(&*global.root()).root();
+ let global = window_from_node(self).root();
+ let style_props = CSS2Properties::new(*global, self).root();
let style_decl: JSRef<CSSStyleDeclaration> = CSSStyleDeclarationCast::from_ref(*style_props);
self.style_decl.assign(Some(style_decl));
}