diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-24 17:03:20 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-07-24 17:03:20 +0200 |
commit | 08d4a74d56ca431877819fc4566e27eafe150342 (patch) | |
tree | ebd8530838ab390c015c6b7e659a22852c1663ae /Source/WebCore/html/HTMLCollection.cpp | |
parent | 1de6cd4794bbd5a52189384189a2b8df1848b39b (diff) | |
download | qtwebkit-08d4a74d56ca431877819fc4566e27eafe150342.tar.gz |
Imported WebKit commit 0fbd41c4e13f5a190faf160bf993eee614e6e18e (http://svn.webkit.org/repository/webkit/trunk@123477)
New snapshot that adapts to latest Qt API changes
Diffstat (limited to 'Source/WebCore/html/HTMLCollection.cpp')
-rw-r--r-- | Source/WebCore/html/HTMLCollection.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/WebCore/html/HTMLCollection.cpp b/Source/WebCore/html/HTMLCollection.cpp index 57953ac98..91e18a3fb 100644 --- a/Source/WebCore/html/HTMLCollection.cpp +++ b/Source/WebCore/html/HTMLCollection.cpp @@ -32,6 +32,7 @@ #if ENABLE(MICRODATA) #include "HTMLPropertiesCollection.h" +#include "PropertyNodeList.h" #endif #include <utility> @@ -288,7 +289,7 @@ Node* DynamicNodeListCacheBase::itemBeforeOrAfter(Node* previous) const if (LIKELY(!!previous)) // Without this LIKELY, length() and item() can be 10% slower. current = nextNode<forward>(rootNode(), previous, shouldOnlyIncludeDirectChildren()); else - current = firstNode(forward, rootNode(), previous); + current = firstNode(forward, rootNode(), shouldOnlyIncludeDirectChildren()); if (type() == NodeListCollectionType && shouldOnlyIncludeDirectChildren()) // ChildNodeList return current; @@ -368,6 +369,8 @@ Node* DynamicNodeListCacheBase::itemCommon(unsigned offset) const #if ENABLE(MICRODATA) if (type() == ItemProperties) static_cast<const HTMLPropertiesCollection*>(this)->updateRefElements(); + if (type() == NodeListCollectionType && rootType() == NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr) + static_cast<const PropertyNodeList*>(this)->updateRefElements(); #endif if (isLengthCacheValid() && !overridesItemAfter() && isLastItemCloserThanLastOrCachedItem(offset)) { |