mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Auto merge of #23951 - georgeroman:return_errorstatus_from_webdriverhandlers, r=jdm
Return ErrorStatus from webdriver_handlers <!-- Please describe your changes on the following line: --> With `webdriver 0.40`, `ErrorStatus` implements `Deserialize`. Now we can accommodate for multiple errors occuring in `webdriver_handlers`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Either: --> <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23951) <!-- Reviewable:end -->
This commit is contained in:
commit
00a9f30773
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