mirror of
https://github.com/servo/servo.git
synced 2025-08-04 05:00:08 +01:00
Move is_void() Element method together with the other struct methods,
it becomes part of ElementHelpers.
This commit is contained in:
parent
249638da8f
commit
7581335232
3 changed files with 18 additions and 19 deletions
|
@ -10,7 +10,7 @@ use dom::bindings::js::JSRef;
|
|||
use dom::characterdata::CharacterData;
|
||||
use dom::comment::Comment;
|
||||
use dom::documenttype::DocumentType;
|
||||
use dom::element::Element;
|
||||
use dom::element::{Element, ElementHelpers};
|
||||
use dom::node::{Node, NodeIterator};
|
||||
use dom::node::{DoctypeNodeTypeId, DocumentFragmentNodeTypeId, CommentNodeTypeId};
|
||||
use dom::node::{DocumentNodeTypeId, ElementNodeTypeId, ProcessingInstructionNodeTypeId};
|
||||
|
@ -131,7 +131,7 @@ fn serialize_elem(elem: JSRef<Element>, open_elements: &mut Vec<String>, html: &
|
|||
_ => {}
|
||||
}
|
||||
|
||||
if !elem.deref().is_void() {
|
||||
if !(elem.is_void()) {
|
||||
open_elements.push(elem.deref().local_name.as_slice().to_string());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue