mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Implement the width
and height
attributes for iframes per
HTML5 § 4.8.6. Improves Amazon and Ars Technica.
This commit is contained in:
parent
e52197d126
commit
1a3395e077
13 changed files with 154 additions and 290 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue