blob: fc9408707c164e00c76ff28ee784049f8b79d824 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef WindowNameCollection_h
#define WindowNameCollection_h
#include "core/html/HTMLNameCollection.h"
namespace WebCore {
class WindowNameCollection FINAL : public HTMLNameCollection {
public:
static PassRefPtrWillBeRawPtr<WindowNameCollection> create(ContainerNode& document, CollectionType type, const AtomicString& name)
{
ASSERT_UNUSED(type, type == WindowNamedItems);
return adoptRefWillBeNoop(new WindowNameCollection(document, name));
}
bool elementMatches(const Element&) const;
private:
WindowNameCollection(ContainerNode& document, const AtomicString& name);
};
DEFINE_TYPE_CASTS(WindowNameCollection, LiveNodeListBase, collection, collection->type() == WindowNamedItems, collection.type() == WindowNamedItems);
} // namespace WebCore
#endif // WindowNameCollection_h
|