Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(862)

Unified Diff: Source/core/dom/Traversal.cpp

Issue 16865007: Make createNodeIterator() and createTreeWalker() accept default arguments. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use type tags in tests. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Traversal.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Traversal.cpp
diff --git a/Source/core/dom/Traversal.cpp b/Source/core/dom/Traversal.cpp
index 207480c3ad164c06f99ff402d33a363563948d8a..a9262cc934d7d70b0c93f1e1834b5885f42120a6 100644
--- a/Source/core/dom/Traversal.cpp
+++ b/Source/core/dom/Traversal.cpp
@@ -30,18 +30,15 @@
namespace WebCore {
-Traversal::Traversal(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> nodeFilter, bool expandEntityReferences)
+Traversal::Traversal(PassRefPtr<Node> rootNode, unsigned whatToShow, PassRefPtr<NodeFilter> nodeFilter)
: m_root(rootNode)
, m_whatToShow(whatToShow)
, m_filter(nodeFilter)
- , m_expandEntityReferences(expandEntityReferences)
{
}
short Traversal::acceptNode(ScriptState* state, Node* node) const
{
- // FIXME: To handle XML properly we would have to check m_expandEntityReferences.
-
// The bit twiddling here is done to map DOM node types, which are given as integers from
// 1 through 14, to whatToShow bit masks.
if (!(((1 << (node->nodeType() - 1)) & m_whatToShow)))
« no previous file with comments | « Source/core/dom/Traversal.h ('k') | Source/core/dom/TreeWalker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698