Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Unified Diff: Source/core/html/RadioNodeList.h

Issue 119063002: Have HTMLFormElement's named getter return a RadioNodeList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add a RadioImgNodeListType CollectionType and use it + test improvements. Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/html/RadioNodeList.h
diff --git a/Source/core/html/RadioNodeList.h b/Source/core/html/RadioNodeList.h
index b735b0c337725375cb1987026805aa19baa527a4..1b71110c15cb974a46536f30ace6e64606e323a0 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;
+ bool m_onlyMatchImgElements;
};
-} // namepsace
+} // namespace
#endif

Powered by Google App Engine
This is Rietveld 408576698