script: Implement the width and height attributes for iframes per

HTML5 § 4.8.6.

Improves Amazon and Ars Technica.
This commit is contained in:
Patrick Walton 2015-04-07 10:47:19 -07:00
parent e52197d126
commit 1a3395e077
13 changed files with 154 additions and 290 deletions

View file

@ -311,6 +311,7 @@ pub trait AttrHelpersForLayout {
unsafe fn value_atom_forever(&self) -> Option<Atom>;
unsafe fn value_tokens_forever(&self) -> Option<&'static [Atom]>;
unsafe fn local_name_atom_forever(&self) -> Atom;
unsafe fn value(&self) -> &AttrValue;
}
#[allow(unsafe_code)]
@ -351,4 +352,9 @@ impl AttrHelpersForLayout for Attr {
unsafe fn local_name_atom_forever(&self) -> Atom {
self.local_name.clone()
}
#[inline]
unsafe fn value(&self) -> &AttrValue {
self.value.borrow_for_layout()
}
}