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).
// 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>>> {

View file

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