mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Cleanup Node::summarize.
This commit is contained in:
parent
54c0601950
commit
1611b8d0a8
1 changed files with 3 additions and 5 deletions
|
@ -848,11 +848,9 @@ impl<'a> NodeHelpers<'a> for JSRef<'a, Node> {
|
||||||
publicId: "".to_string(),
|
publicId: "".to_string(),
|
||||||
systemId: "".to_string(),
|
systemId: "".to_string(),
|
||||||
|
|
||||||
attrs: if self.is_element() {
|
attrs: match ElementCast::to_ref(self) {
|
||||||
let elem: JSRef<Element> = ElementCast::to_ref(self).unwrap();
|
Some(element) => element.summarize(),
|
||||||
elem.summarize()
|
None => vec!(),
|
||||||
} else {
|
|
||||||
vec!()
|
|
||||||
},
|
},
|
||||||
|
|
||||||
isDocumentElement:
|
isDocumentElement:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue