summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/LabelsNodeList.h
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
committerLorry Tar Creator <lorry-tar-importer@lorry>2017-06-27 06:07:23 +0000
commit1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch)
tree46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/html/LabelsNodeList.h
parent32761a6cee1d0dee366b885b7b9c777e67885688 (diff)
downloadWebKitGtk-tarball-master.tar.gz
Diffstat (limited to 'Source/WebCore/html/LabelsNodeList.h')
-rw-r--r--Source/WebCore/html/LabelsNodeList.h19
1 files changed, 8 insertions, 11 deletions
diff --git a/Source/WebCore/html/LabelsNodeList.h b/Source/WebCore/html/LabelsNodeList.h
index 5a1d40040..9156ce1e4 100644
--- a/Source/WebCore/html/LabelsNodeList.h
+++ b/Source/WebCore/html/LabelsNodeList.h
@@ -2,7 +2,7 @@
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
- * Copyright (C) 2004, 2007 Apple Inc. All rights reserved.
+ * Copyright (C) 2004, 2007, 2014 Apple Inc. All rights reserved.
* Copyright (C) 2010 Nokia Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or
@@ -22,29 +22,26 @@
*
*/
-#ifndef LabelsNodeList_h
-#define LabelsNodeList_h
+#pragma once
#include "LabelableElement.h"
#include "LiveNodeList.h"
namespace WebCore {
-class LabelsNodeList final : public LiveNodeList {
+class LabelsNodeList final : public CachedLiveNodeList<LabelsNodeList> {
public:
- static PassRef<LabelsNodeList> create(LabelableElement& forNode, Type type, const AtomicString&)
+ static Ref<LabelsNodeList> create(LabelableElement& forNode, const AtomicString&)
{
- ASSERT_UNUSED(type, type == LabelsNodeListType);
return adoptRef(*new LabelsNodeList(forNode));
}
~LabelsNodeList();
-protected:
- explicit LabelsNodeList(LabelableElement& forNode);
+ bool elementMatches(Element&) const override;
+ bool isRootedAtDocument() const override { return true; }
- virtual bool nodeMatches(Element*) const override;
+private:
+ explicit LabelsNodeList(LabelableElement& forNode);
};
} // namespace WebCore
-
-#endif // LabelsNodeList_h