Return ErrorStatus from webdriver_handlers

This commit is contained in:
George Roman 2019-08-12 00:51:25 +03:00
parent 6a637ceffb
commit d7b9fede99
12 changed files with 482 additions and 438 deletions

View file

@ -1654,7 +1654,7 @@ impl Node {
#[allow(unrooted_must_root)]
fn new_(flags: NodeFlags, doc: Option<&Document>) -> Node {
Node {
let node = Node {
eventtarget: EventTarget::new_inherited(),
parent_node: Default::default(),
@ -1673,7 +1673,11 @@ impl Node {
style_and_layout_data: Cell::new(None),
unique_id: UniqueId::new(),
}
};
ScriptThread::save_node_id(node.unique_id());
node
}
// https://dom.spec.whatwg.org/#concept-node-adopt