summaryrefslogtreecommitdiffstats
path: root/WebCore/dom/DynamicNodeList.h
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/DynamicNodeList.h
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/DynamicNodeList.h')
-rw-r--r--WebCore/dom/DynamicNodeList.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/WebCore/dom/DynamicNodeList.h b/WebCore/dom/DynamicNodeList.h
index 58e50fd..ee9832d 100644
--- a/WebCore/dom/DynamicNodeList.h
+++ b/WebCore/dom/DynamicNodeList.h
@@ -32,6 +32,7 @@
namespace WebCore {
class AtomicString;
+ class Element;
class Node;
class DynamicNodeList : public NodeList {
@@ -45,13 +46,12 @@ namespace WebCore {
unsigned lastItemOffset;
bool isLengthCacheValid : 1;
bool isItemCacheValid : 1;
+ unsigned refCount;
};
- DynamicNodeList(PassRefPtr<Node> rootNode, bool needsNotifications);
- DynamicNodeList(PassRefPtr<Node> rootNode, Caches*, bool needsNotifications);
virtual ~DynamicNodeList();
- bool needsNotifications() const { return m_needsNotifications; }
+ bool hasOwnCaches() const { return m_ownsCaches; }
// DOM methods & attributes for NodeList
virtual unsigned length() const;
@@ -59,16 +59,17 @@ namespace WebCore {
virtual Node* itemWithName(const AtomicString&) const;
// Other methods (not part of DOM)
- virtual void rootNodeChildrenChanged();
- virtual void rootNodeAttributeChanged();
+ void invalidateCache();
protected:
- virtual bool nodeMatches(Node*) const = 0;
+ DynamicNodeList(PassRefPtr<Node> rootNode);
+ DynamicNodeList(PassRefPtr<Node> rootNode, Caches*);
+
+ virtual bool nodeMatches(Element*) const = 0;
RefPtr<Node> m_rootNode;
mutable Caches* m_caches;
bool m_ownsCaches;
- bool m_needsNotifications;
private:
Node* itemForwardsFromCurrent(Node* start, unsigned offset, int remainingOffset) const;