Remove incorrect SetterThrows annotation.

This was copied from Gecko, which has an outdated throwing condition.
This commit is contained in:
Ms2ger 2015-02-08 16:09:08 +01:00
parent aa5fecec5b
commit 2992dbd41b
2 changed files with 3 additions and 5 deletions

View file

@ -11,7 +11,7 @@ use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilter;
// to move to the NodeFilter binding file (#3149). // to move to the NodeFilter binding file (#3149).
// For now, it is defined in this file. // For now, it is defined in this file.
// use dom::bindings::codegen::Bindings::NodeFilterBinding::NodeFilterConstants; // 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::global::GlobalRef;
use dom::bindings::js::{JS, JSRef, OptionalRootable, Temporary, MutHeap}; use dom::bindings::js::{JS, JSRef, OptionalRootable, Temporary, MutHeap};
use dom::bindings::utils::{Reflector, reflect_dom_object}; 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()) Temporary::new(self.current_node.get())
} }
fn SetCurrentNode(self, node: JSRef<Node>) -> ErrorResult { fn SetCurrentNode(self, node: JSRef<Node>) {
// XXX Future: check_same_origin(root_node, node) (throws)
self.current_node.set(JS::from_rooted(node)); self.current_node.set(JS::from_rooted(node));
Ok(())
} }
fn ParentNode(self) -> Fallible<Option<Temporary<Node>>> { fn ParentNode(self) -> Fallible<Option<Temporary<Node>>> {

View file

@ -14,7 +14,7 @@ interface TreeWalker {
readonly attribute unsigned long whatToShow; readonly attribute unsigned long whatToShow;
[Constant] [Constant]
readonly attribute NodeFilter? filter; readonly attribute NodeFilter? filter;
[Pure, SetterThrows] [Pure]
attribute Node currentNode; attribute Node currentNode;
[Throws] [Throws]