mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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(),
|
||||
systemId: "".to_string(),
|
||||
|
||||
attrs: if self.is_element() {
|
||||
let elem: JSRef<Element> = ElementCast::to_ref(self).unwrap();
|
||||
elem.summarize()
|
||||
} else {
|
||||
vec!()
|
||||
attrs: match ElementCast::to_ref(self) {
|
||||
Some(element) => element.summarize(),
|
||||
None => vec!(),
|
||||
},
|
||||
|
||||
isDocumentElement:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue