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

Unified Diff: Source/WebCore/html/LabelableElement.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/TagNodeList.cpp ('k') | Source/WebCore/html/LabelsNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/LabelableElement.cpp
===================================================================
--- Source/WebCore/html/LabelableElement.cpp (revision 122245)
+++ Source/WebCore/html/LabelableElement.cpp (working copy)
@@ -47,13 +47,7 @@
if (!document())
return 0;
- NodeListsNodeData* nodeLists = Node::ensureRareData()->ensureNodeLists(this);
- if (nodeLists->m_labelsNodeListCache)
- return nodeLists->m_labelsNodeListCache;
-
- RefPtr<LabelsNodeList> list = LabelsNodeList::create(this);
- nodeLists->m_labelsNodeListCache = list.get();
- return list.release();
+ return Node::ensureRareData()->ensureNodeLists(this)->addCacheWithAtomicName<LabelsNodeList>(this, DynamicNodeList::LabelsNodeListType, starAtom);
}
} // namespace Webcore
« no previous file with comments | « Source/WebCore/dom/TagNodeList.cpp ('k') | Source/WebCore/html/LabelsNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698