mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Return ErrorStatus from webdriver_handlers
This commit is contained in:
parent
6a637ceffb
commit
d7b9fede99
12 changed files with 482 additions and 438 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue