diff options
Diffstat (limited to 'WebCore/bindings/js/JSNodeFilterCustom.cpp')
-rw-r--r-- | WebCore/bindings/js/JSNodeFilterCustom.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/WebCore/bindings/js/JSNodeFilterCustom.cpp b/WebCore/bindings/js/JSNodeFilterCustom.cpp index 413abf9..258059c 100644 --- a/WebCore/bindings/js/JSNodeFilterCustom.cpp +++ b/WebCore/bindings/js/JSNodeFilterCustom.cpp @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2007 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -29,9 +29,6 @@ #include "JSNodeFilterCondition.h" #include "NodeFilter.h" #include "kjs_binding.h" -#include "kjs_dom.h" - -using namespace KJS; namespace WebCore { @@ -41,15 +38,6 @@ void JSNodeFilter::mark() DOMObject::mark(); } -JSValue* JSNodeFilter::acceptNode(ExecState* exec, const List& args) -{ - JSValue* exception = 0; - short result = impl()->acceptNode(toNode(args[0]), exception); - if (exception) - exec->setException(exception); - return jsNumber(result); -} - NodeFilter* toNodeFilter(KJS::JSValue* val) { if (!val || !val->isObject()) |