mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Implement AttrHelpersForLayout for LayoutJS<Attr> rather than Attr itself.
This commit is contained in:
parent
fa45688191
commit
c019897a50
3 changed files with 21 additions and 24 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue