Index: Source/core/html/RadioNodeList.h |
diff --git a/Source/core/html/RadioNodeList.h b/Source/core/html/RadioNodeList.h |
index b735b0c337725375cb1987026805aa19baa527a4..8a034a0df3ca3214c6ff791ce70d0b7580b2754b 100644 |
--- a/Source/core/html/RadioNodeList.h |
+++ b/Source/core/html/RadioNodeList.h |
@@ -36,8 +36,8 @@ class RadioNodeList FINAL : public LiveNodeList { |
public: |
static PassRefPtr<RadioNodeList> create(Node* ownerNode, CollectionType type, const AtomicString& name) |
{ |
- ASSERT_UNUSED(type, type == RadioNodeListType); |
- return adoptRef(new RadioNodeList(ownerNode, name)); |
+ ASSERT_UNUSED(type, type == RadioNodeListType || type == RadioImgNodeListType); |
+ return adoptRef(new RadioNodeList(ownerNode, name, type)); |
} |
virtual ~RadioNodeList(); |
@@ -46,15 +46,17 @@ public: |
void setValue(const String&); |
private: |
- RadioNodeList(Node*, const AtomicString& name); |
+ RadioNodeList(Node*, const AtomicString& name, CollectionType); |
+ |
bool checkElementMatchesRadioNodeListFilter(Element*) const; |
virtual bool nodeMatches(Element*) const OVERRIDE; |
AtomicString m_name; |
+ const bool m_onlyMatchImgElements; |
}; |
-} // namepsace |
+} // namespace |
#endif |