summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/LabelsNodeList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/LabelsNodeList.cpp')
-rw-r--r--Source/WebCore/html/LabelsNodeList.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/WebCore/html/LabelsNodeList.cpp b/Source/WebCore/html/LabelsNodeList.cpp
index 89f0baf7c..d3a4ba162 100644
--- a/Source/WebCore/html/LabelsNodeList.cpp
+++ b/Source/WebCore/html/LabelsNodeList.cpp
@@ -34,15 +34,13 @@ namespace WebCore {
using namespace HTMLNames;
LabelsNodeList::LabelsNodeList(Node* forNode)
- : DynamicSubtreeNodeList(forNode, RootedAtDocument)
+ : DynamicSubtreeNodeList(forNode, InvalidateOnForAttrChange, NodeListIsRootedAtDocument)
{
- document()->registerDynamicSubtreeNodeList(this);
}
LabelsNodeList::~LabelsNodeList()
{
ownerNode()->nodeLists()->removeCacheWithAtomicName(this, DynamicNodeList::LabelsNodeListType, starAtom);
- document()->unregisterDynamicSubtreeNodeList(this);
}
bool LabelsNodeList::nodeMatches(Element* testNode) const