mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Privatize Element
This commit is contained in:
parent
cd9de05088
commit
cbe50f1f14
8 changed files with 72 additions and 41 deletions
|
@ -35,11 +35,11 @@ impl NamedNodeMap {
|
|||
|
||||
impl<'a> NamedNodeMapMethods for JSRef<'a, NamedNodeMap> {
|
||||
fn Length(self) -> u32 {
|
||||
self.owner.root().attrs.borrow().len() as u32
|
||||
self.owner.root().attrs().len() as u32
|
||||
}
|
||||
|
||||
fn Item(self, index: u32) -> Option<Temporary<Attr>> {
|
||||
self.owner.root().attrs.borrow().as_slice().get(index as uint).map(|x| Temporary::new(x.clone()))
|
||||
self.owner.root().attrs().as_slice().get(index as uint).map(|x| Temporary::new(x.clone()))
|
||||
}
|
||||
|
||||
fn IndexedGetter(self, index: u32, found: &mut bool) -> Option<Temporary<Attr>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue