mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Make Element::attrs return a Ref<[_]>
This commit is contained in:
parent
03e04179ae
commit
2fcb908daa
1 changed files with 2 additions and 2 deletions
|
@ -718,8 +718,8 @@ impl Element {
|
|||
&self.prefix
|
||||
}
|
||||
|
||||
pub fn attrs(&self) -> Ref<Vec<JS<Attr>>> {
|
||||
self.attrs.borrow()
|
||||
pub fn attrs(&self) -> Ref<[JS<Attr>]> {
|
||||
Ref::map(self.attrs.borrow(), |attrs| &**attrs)
|
||||
}
|
||||
|
||||
pub fn style_attribute(&self) -> &DOMRefCell<Option<Arc<RwLock<PropertyDeclarationBlock>>>> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue