diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-06-20 18:51:25 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-06-20 18:51:25 +0200 |
commit | c019897a508289930e08cbfe342c4e52090173cb (patch) | |
tree | 0b48cc7ce13ba0f3e5cacab9f8ee1f837e4ef007 /components/script/dom/htmliframeelement.rs | |
parent | fa45688191221bf32a7a20188d5a8817c4ab61f2 (diff) | |
download | servo-c019897a508289930e08cbfe342c4e52090173cb.tar.gz servo-c019897a508289930e08cbfe342c4e52090173cb.zip |
Implement AttrHelpersForLayout for LayoutJS<Attr> rather than Attr itself.
Diffstat (limited to 'components/script/dom/htmliframeelement.rs')
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index cf1c07b69f5..c6c5ca85f0b 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -180,7 +180,7 @@ impl RawHTMLIFrameElementHelpers for HTMLIFrameElement { element::get_attr_for_layout(ElementCast::from_actual(&*self), &ns!(""), &atom!("width")).map(|attribute| { - str::parse_length(&**(*attribute.unsafe_get()).value_for_layout()) + str::parse_length(&**attribute.value_for_layout()) }).unwrap_or(LengthOrPercentageOrAuto::Auto) } } @@ -191,7 +191,7 @@ impl RawHTMLIFrameElementHelpers for HTMLIFrameElement { element::get_attr_for_layout(ElementCast::from_actual(&*self), &ns!(""), &atom!("height")).map(|attribute| { - str::parse_length(&**(*attribute.unsafe_get()).value_for_layout()) + str::parse_length(&**attribute.value_for_layout()) }).unwrap_or(LengthOrPercentageOrAuto::Auto) } } |