diff options
author | Naiem Shaik <snaiem@codeaurora.org> | 2012-07-19 10:45:56 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2013-01-20 18:38:33 -0800 |
commit | 0f5d4355d7a384679722338d55f65bbb92350cfc (patch) | |
tree | df4a638aa4e81152ee68f0d523ed706128a251ff /Source/WebCore/html/HTMLCollection.h | |
parent | 8f6cf525ead3381029545c1d292c8586ec45ddb0 (diff) | |
download | external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.zip external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.tar.gz external_webkit-0f5d4355d7a384679722338d55f65bbb92350cfc.tar.bz2 |
DOM Optimizations
DOM traversal optimizations
DOM Core optimizations
Prefetch optimization for DOM Tree Traversal
Conflicts:
Source/WebKit/android/jni/WebViewCore.cpp
Change-Id: Icbb8a7229ee9cff1a5401b57c8181f18b9a6d6e0
Diffstat (limited to 'Source/WebCore/html/HTMLCollection.h')
-rw-r--r-- | Source/WebCore/html/HTMLCollection.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLCollection.h b/Source/WebCore/html/HTMLCollection.h index 4359724..47449da 100644 --- a/Source/WebCore/html/HTMLCollection.h +++ b/Source/WebCore/html/HTMLCollection.h @@ -2,6 +2,7 @@ * Copyright (C) 1999 Lars Knoll (knoll@kde.org) * (C) 1999 Antti Koivisto (koivisto@kde.org) * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2012 The Linux Foundation 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 @@ -24,6 +25,7 @@ #define HTMLCollection_h #include "CollectionType.h" +#include "QualifiedName.h" #include <wtf/RefCounted.h> #include <wtf/Forward.h> #include <wtf/HashMap.h> @@ -72,11 +74,19 @@ private: virtual Element* itemAfter(Element*) const; virtual unsigned calcLength() const; virtual void updateNameCache() const; + void init(); + bool nodeMatchesDeep(Element*) const; + bool nodeMatchesShallow(Element*) const; bool checkForNameMatch(Element*, bool checkName, const AtomicString& name) const; + enum MatchType { MatchNone, MatchTag, MatchCustom, MatchAll }; + MatchType m_matchType; + QualifiedName m_matchTag; + RefPtr<Node> m_base; CollectionType m_type; + bool m_includeChildren; mutable CollectionCache* m_info; mutable bool m_ownsInfo; |