Index: Source/WebCore/dom/LiveNodeList.cpp |
diff --git a/Source/WebCore/dom/LiveNodeList.cpp b/Source/WebCore/dom/LiveNodeList.cpp |
index 9897e5c5c704a67abdc9d377f802a90512e15f55..f2e33b535bca9512c16583f477c6776715d6deaa 100644 |
--- a/Source/WebCore/dom/LiveNodeList.cpp |
+++ b/Source/WebCore/dom/LiveNodeList.cpp |
@@ -26,8 +26,6 @@ |
#include "Document.h" |
#include "Element.h" |
#include "HTMLCollection.h" |
-#include "HTMLPropertiesCollection.h" |
-#include "PropertyNodeList.h" |
#include "WebCoreMemoryInstrumentation.h" |
namespace WebCore { |
@@ -36,19 +34,6 @@ Node* LiveNodeListBase::rootNode() const |
{ |
if (isRootedAtDocument() && m_ownerNode->inDocument()) |
return m_ownerNode->document(); |
- |
-#if ENABLE(MICRODATA) |
- if (m_rootType == NodeListIsRootedAtDocumentIfOwnerHasItemrefAttr && toElement(ownerNode())->fastHasAttribute(HTMLNames::itemrefAttr)) { |
- if (m_ownerNode->inDocument()) |
- return m_ownerNode->document(); |
- |
- Node* root = m_ownerNode.get(); |
- while (Node* parent = root->parentNode()) |
- root = parent; |
- return root; |
- } |
-#endif |
- |
return m_ownerNode.get(); |
} |
@@ -74,12 +59,6 @@ void LiveNodeListBase::invalidateCache() const |
cacheBase->m_idCache.clear(); |
cacheBase->m_nameCache.clear(); |
cacheBase->m_cachedElementsArrayOffset = 0; |
- |
-#if ENABLE(MICRODATA) |
- // FIXME: There should be more generic mechanism to clear caches in subclasses. |
- if (type() == ItemProperties) |
- static_cast<const HTMLPropertiesCollection*>(this)->invalidateCache(); |
-#endif |
} |
void LiveNodeListBase::invalidateIdNameCacheMaps() const |
@@ -103,11 +82,6 @@ Node* LiveNodeList::namedItem(const AtomicString& elementId) const |
Node* rootNode = this->rootNode(); |
if (rootNode->inDocument()) { |
-#if ENABLE(MICRODATA) |
- if (type() == PropertyNodeListType) |
- static_cast<const PropertyNodeList*>(this)->updateRefElements(); |
-#endif |
- |
Element* element = rootNode->treeScope()->getElementById(elementId); |
if (element && nodeMatches(element) && element->isDescendantOf(rootNode)) |
return element; |