summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/dom/DynamicNodeList.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/DynamicNodeList.h')
-rw-r--r--Source/WebCore/dom/DynamicNodeList.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/dom/DynamicNodeList.h b/Source/WebCore/dom/DynamicNodeList.h
index 9c8f3cc..c8b6ca2 100644
--- a/Source/WebCore/dom/DynamicNodeList.h
+++ b/Source/WebCore/dom/DynamicNodeList.h
@@ -28,6 +28,12 @@
#include <wtf/RefCounted.h>
#include <wtf/Forward.h>
#include <wtf/RefPtr.h>
+#include <wtf/Vector.h>
+
+namespace WTF {
+ // Properties in Vector can be initialized with memset and moved using memcpy.
+ template<> struct VectorTraits<WebCore::Node*> : SimpleClassVectorTraits { };
+}
namespace WebCore {
@@ -42,9 +48,11 @@ namespace WebCore {
unsigned cachedLength;
Node* lastItem;
+ Node* lastDecendantOfRoot;
unsigned lastItemOffset;
bool isLengthCacheValid : 1;
bool isItemCacheValid : 1;
+ Vector<Node* > cachedNodes;
protected:
Caches();
};