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

Unified Diff: Source/WebCore/dom/NodeRareData.h

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/Node.cpp ('k') | Source/WebCore/dom/NodeRareData.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/NodeRareData.h
diff --git a/Source/WebCore/dom/NodeRareData.h b/Source/WebCore/dom/NodeRareData.h
index c4f61869a73c6fbb9bf5df13bdd18285f18cd7a3..8dffb1b4ac4d3c59bd319a7c95f6d33db7154d40 100644
--- a/Source/WebCore/dom/NodeRareData.h
+++ b/Source/WebCore/dom/NodeRareData.h
@@ -40,12 +40,6 @@
#include <wtf/text/AtomicString.h>
#include <wtf/text/StringHash.h>
-#if ENABLE(MICRODATA)
-#include "HTMLPropertiesCollection.h"
-#include "MicroDataAttributeTokenList.h"
-#include "MicroDataItemList.h"
-#endif
-
namespace WebCore {
class LabelsNodeList;
@@ -256,42 +250,6 @@ private:
NodeMutationObserverData() { }
};
-#if ENABLE(MICRODATA)
-class NodeMicroDataTokenLists {
- WTF_MAKE_NONCOPYABLE(NodeMicroDataTokenLists); WTF_MAKE_FAST_ALLOCATED;
-public:
- static PassOwnPtr<NodeMicroDataTokenLists> create() { return adoptPtr(new NodeMicroDataTokenLists); }
-
- MicroDataAttributeTokenList* itemProp(Node* node) const
- {
- if (!m_itemProp)
- m_itemProp = MicroDataAttributeTokenList::create(toElement(node), HTMLNames::itempropAttr);
- return m_itemProp.get();
- }
-
- MicroDataAttributeTokenList* itemRef(Node* node) const
- {
- if (!m_itemRef)
- m_itemRef = MicroDataAttributeTokenList::create(toElement(node), HTMLNames::itemrefAttr);
- return m_itemRef.get();
- }
-
- MicroDataAttributeTokenList* itemType(Node* node) const
- {
- if (!m_itemType)
- m_itemType = MicroDataAttributeTokenList::create(toElement(node), HTMLNames::itemtypeAttr);
- return m_itemType.get();
- }
-
-private:
- NodeMicroDataTokenLists() { }
-
- mutable RefPtr<MicroDataAttributeTokenList> m_itemProp;
- mutable RefPtr<MicroDataAttributeTokenList> m_itemRef;
- mutable RefPtr<MicroDataAttributeTokenList> m_itemType;
-};
-#endif
-
class NodeRareData : public NodeRareDataBase {
WTF_MAKE_NONCOPYABLE(NodeRareData); WTF_MAKE_FAST_ALLOCATED;
public:
@@ -314,15 +272,6 @@ public:
return m_mutationObserverData.get();
}
-#if ENABLE(MICRODATA)
- NodeMicroDataTokenLists* ensureMicroDataTokenLists() const
- {
- if (!m_microDataTokenLists)
- m_microDataTokenLists = NodeMicroDataTokenLists::create();
- return m_microDataTokenLists.get();
- }
-#endif
-
unsigned connectedSubframeCount() const { return m_connectedFrameCount; }
void incrementConnectedSubframeCount(unsigned amount)
{
@@ -349,10 +298,6 @@ private:
OwnPtr<NodeListsNodeData> m_nodeLists;
OwnPtr<NodeMutationObserverData> m_mutationObserverData;
-
-#if ENABLE(MICRODATA)
- mutable OwnPtr<NodeMicroDataTokenLists> m_microDataTokenLists;
-#endif
};
inline bool NodeListsNodeData::deleteThisAndUpdateNodeRareDataIfAboutToRemoveLastList(Node* ownerNode)
« no previous file with comments | « Source/WebCore/dom/Node.cpp ('k') | Source/WebCore/dom/NodeRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698