summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/NodeFilter.cpp
diff options
context:
space:
mode:
authorThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
committerThe Android Open Source Project <initial-contribution@android.com>2008-12-17 18:05:15 -0800
commit1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353 (patch)
tree4457a7306ea5acb43fe05bfe0973b1f7faf97ba2 /WebCore/dom/NodeFilter.cpp
parent9364f22aed35e1a1e9d07c121510f80be3ab0502 (diff)
downloadexternal_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.zip
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.gz
external_webkit-1cbdecfa9fc428ac2d8aca0fa91c9580b3d57353.tar.bz2
Code drop from //branches/cupcake/...@124589
Diffstat (limited to 'WebCore/dom/NodeFilter.cpp')
-rw-r--r--WebCore/dom/NodeFilter.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/WebCore/dom/NodeFilter.cpp b/WebCore/dom/NodeFilter.cpp
index ff5ad92..9e0c43a 100644
--- a/WebCore/dom/NodeFilter.cpp
+++ b/WebCore/dom/NodeFilter.cpp
@@ -1,11 +1,9 @@
-/**
- * This file is part of the DOM implementation for KDE.
- *
+/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* Copyright (C) 2000 Frederik Holljen (frederik.holljen@hig.no)
* Copyright (C) 2001 Peter Kelly (pmk@post.com)
* Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
- * Copyright (C) 2004 Apple Computer, Inc.
+ * Copyright (C) 2004, 2008 Apple Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
@@ -27,17 +25,17 @@
#include "config.h"
#include "NodeFilter.h"
-namespace WebCore {
+#include "Node.h"
+#include <runtime/ExecState.h>
-NodeFilter::NodeFilter(NodeFilterCondition* condition)
- : m_condition(condition)
-{
-}
+using namespace JSC;
+
+namespace WebCore {
-short NodeFilter::acceptNode(Node* node) const
+short NodeFilter::acceptNode(ExecState* exec, Node* node) const
{
// cast to short silences "enumeral and non-enumeral types in return" warning
- return m_condition ? m_condition->acceptNode(node) : static_cast<short>(FILTER_ACCEPT);
+ return m_condition ? m_condition->acceptNode(exec, node) : static_cast<short>(FILTER_ACCEPT);
}
} // namespace WebCore