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

Unified Diff: Source/WebCore/html/LabelsNodeList.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/html/LabelsNodeList.h ('k') | Source/WebCore/html/RadioNodeList.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/html/LabelsNodeList.cpp
===================================================================
--- Source/WebCore/html/LabelsNodeList.cpp (revision 122245)
+++ Source/WebCore/html/LabelsNodeList.cpp (working copy)
@@ -27,6 +27,7 @@
#include "Element.h"
#include "HTMLLabelElement.h"
#include "HTMLNames.h"
+#include "NodeRareData.h"
namespace WebCore {
@@ -34,20 +35,19 @@
LabelsNodeList::LabelsNodeList(Node* forNode)
: DynamicSubtreeNodeList(forNode, RootedAtDocument)
- , m_forNode(forNode)
{
- m_forNode->document()->registerDynamicSubtreeNodeList(this);
+ document()->registerDynamicSubtreeNodeList(this);
}
LabelsNodeList::~LabelsNodeList()
{
- m_forNode->removeCachedLabelsNodeList(this);
- m_forNode->document()->unregisterDynamicSubtreeNodeList(this);
+ m_node->nodeLists()->removeCacheWithAtomicName(this, DynamicNodeList::LabelsNodeListType, starAtom);
+ document()->unregisterDynamicSubtreeNodeList(this);
}
bool LabelsNodeList::nodeMatches(Element* testNode) const
{
- return testNode->hasTagName(labelTag) && static_cast<HTMLLabelElement*>(testNode)->control() == m_forNode;
+ return testNode->hasTagName(labelTag) && static_cast<HTMLLabelElement*>(testNode)->control() == m_node;
}
} // namespace WebCore
« no previous file with comments | « Source/WebCore/html/LabelsNodeList.h ('k') | Source/WebCore/html/RadioNodeList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698