mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Remove incorrect SetterThrows annotation.
This was copied from Gecko, which has an outdated throwing condition.
This commit is contained in:
parent
aa5fecec5b
commit
2992dbd41b
2 changed files with 3 additions and 5 deletions
|
@ -11,7 +11,7 @@ use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilter;
|
|||
// to move to the NodeFilter binding file (#3149).
|
||||
// For now, it is defined in this file.
|
||||
// use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilterConstants;
|
||||
use dom::bindings::error::{ErrorResult, Fallible};
|
||||
use dom::bindings::error::Fallible;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{JS, JSRef, OptionalRootable, Temporary, MutHeap};
|
||||
use dom::bindings::utils::{Reflector, reflect_dom_object};
|
||||
|
@ -84,10 +84,8 @@ impl<'a> TreeWalkerMethods for JSRef<'a, TreeWalker> {
|
|||
Temporary::new(self.current_node.get())
|
||||
}
|
||||
|
||||
fn SetCurrentNode(self, node: JSRef<Node>) -> ErrorResult {
|
||||
// XXX Future: check_same_origin(root_node, node) (throws)
|
||||
fn SetCurrentNode(self, node: JSRef<Node>) {
|
||||
self.current_node.set(JS::from_rooted(node));
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn ParentNode(self) -> Fallible<Option<Temporary<Node>>> {
|
||||
|
|
|
@ -14,7 +14,7 @@ interface TreeWalker {
|
|||
readonly attribute unsigned long whatToShow;
|
||||
[Constant]
|
||||
readonly attribute NodeFilter? filter;
|
||||
[Pure, SetterThrows]
|
||||
[Pure]
|
||||
attribute Node currentNode;
|
||||
|
||||
[Throws]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue