mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make Element::attrs a Vec.
This commit is contained in:
parent
7346992981
commit
25357434e1
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ impl AttrList {
|
|||
}
|
||||
|
||||
pub fn Item(&self, index: u32) -> Option<JS<Attr>> {
|
||||
self.owner.get().attrs.get(index as uint).map(|x| x.clone())
|
||||
self.owner.get().attrs.as_slice().get(index as uint).map(|x| x.clone())
|
||||
}
|
||||
|
||||
pub fn IndexedGetter(&self, index: u32, found: &mut bool) -> Option<JS<Attr>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue