diff options
Diffstat (limited to 'Source/WebCore/html/LabelsNodeList.h')
-rw-r--r-- | Source/WebCore/html/LabelsNodeList.h | 19 |
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 |