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

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

Issue 10695128: Merge 120979 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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/DynamicNodeList.cpp ('k') | Source/WebCore/dom/NameNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/dom/MicroDataItemList.cpp
===================================================================
--- Source/WebCore/dom/MicroDataItemList.cpp (revision 122245)
+++ Source/WebCore/dom/MicroDataItemList.cpp (working copy)
@@ -32,6 +32,7 @@
#include "Document.h"
#include "HTMLElement.h"
#include "HTMLNames.h"
+#include "NodeRareData.h"
namespace WebCore {
@@ -46,7 +47,8 @@
MicroDataItemList::~MicroDataItemList()
{
- rootNode()->document()->removeCachedMicroDataItemList(this, m_originalTypeNames);
+ String localTypeNames = m_originalTypeNames.isNull() ? String("http://webkit.org/microdata/undefinedItemType") : m_originalTypeNames;
+ m_node->nodeLists()->removeCacheWithName(this, DynamicNodeList::MicroDataItemListType, localTypeNames);
}
bool MicroDataItemList::nodeMatches(Element* testNode) const
« no previous file with comments | « Source/WebCore/dom/DynamicNodeList.cpp ('k') | Source/WebCore/dom/NameNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698