OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved. | 2 * Copyright (c) 2012 Motorola Mobility, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/dom/LiveNodeList.h" | 29 #include "core/dom/LiveNodeList.h" |
30 #include <wtf/PassRefPtr.h> | 30 #include <wtf/PassRefPtr.h> |
31 #include <wtf/RefPtr.h> | 31 #include <wtf/RefPtr.h> |
32 #include <wtf/text/AtomicString.h> | 32 #include <wtf/text/AtomicString.h> |
33 #include <wtf/Vector.h> | 33 #include <wtf/Vector.h> |
34 | 34 |
35 namespace WebCore { | 35 namespace WebCore { |
36 | 36 |
37 class RadioNodeList : public LiveNodeList { | 37 class RadioNodeList : public LiveNodeList { |
38 public: | 38 public: |
39 static PassRefPtr<RadioNodeList> create(Node* rootNode, CollectionType type,
const AtomicString& name) | 39 static PassRefPtr<RadioNodeList> create(const Handle<Node>& rootNode, Collec
tionType type, const AtomicString& name) |
40 { | 40 { |
41 ASSERT_UNUSED(type, type == RadioNodeListType); | 41 ASSERT_UNUSED(type, type == RadioNodeListType); |
42 return adoptRef(new RadioNodeList(rootNode, name)); | 42 return adoptRef(new RadioNodeList(rootNode, name)); |
43 } | 43 } |
44 | 44 |
45 ~RadioNodeList(); | 45 ~RadioNodeList(); |
46 | 46 |
47 String value() const; | 47 String value() const; |
48 void setValue(const String&); | 48 void setValue(const String&); |
49 | 49 |
50 protected: | 50 protected: |
51 virtual bool nodeMatches(const Handle<Element>&) const; | 51 virtual bool nodeMatches(const Handle<Element>&) const; |
52 | 52 |
53 private: | 53 private: |
54 RadioNodeList(Node*, const AtomicString& name); | 54 RadioNodeList(const Handle<Node>&, const AtomicString& name); |
55 bool checkElementMatchesRadioNodeListFilter(const Handle<Element>&) const; | 55 bool checkElementMatchesRadioNodeListFilter(const Handle<Element>&) const; |
56 | 56 |
57 AtomicString m_name; | 57 AtomicString m_name; |
58 }; | 58 }; |
59 | 59 |
60 } // namepsace | 60 } // namepsace |
61 | 61 |
62 #endif | 62 #endif |
63 | 63 |
OLD | NEW |