Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(141)

Unified Diff: Source/WebCore/dom/LiveNodeList.cpp

Issue 14028014: Remove MicroData implementation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Also delete all the tests Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/dom/LiveNodeList.h ('k') | Source/WebCore/dom/MicroDataItemList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « Source/WebCore/dom/LiveNodeList.h ('k') | Source/WebCore/dom/MicroDataItemList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698