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

Side by Side Diff: Source/WebCore/html/RadioNodeList.h

Issue 10695128: Merge 120979 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 months 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 unified diff | Download patch
« no previous file with comments | « Source/WebCore/html/LabelsNodeList.cpp ('k') | Source/WebCore/html/RadioNodeList.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
29 #include "DynamicNodeList.h" 29 #include "DynamicNodeList.h"
30 #include <wtf/PassRefPtr.h> 30 #include <wtf/PassRefPtr.h>
31 #include <wtf/RefPtr.h> 31 #include <wtf/RefPtr.h>
32 #include <wtf/Vector.h> 32 #include <wtf/Vector.h>
33 #include <wtf/text/AtomicString.h> 33 #include <wtf/text/AtomicString.h>
34 34
35 namespace WebCore { 35 namespace WebCore {
36 36
37 class RadioNodeList : public DynamicSubtreeNodeList { 37 class RadioNodeList : public DynamicSubtreeNodeList {
38 public: 38 public:
39 static PassRefPtr<RadioNodeList> create(Element* baseElement, const AtomicSt ring& name) 39 static PassRefPtr<RadioNodeList> create(Node* rootNode, const AtomicString& name)
40 { 40 {
41 return adoptRef(new RadioNodeList(baseElement, name)); 41 return adoptRef(new RadioNodeList(rootNode, name));
42 } 42 }
43 43
44 ~RadioNodeList(); 44 ~RadioNodeList();
45 45
46 String value() const; 46 String value() const;
47 void setValue(const String&); 47 void setValue(const String&);
48 48
49 protected: 49 protected:
50 virtual bool nodeMatches(Element*) const; 50 virtual bool nodeMatches(Element*) const;
51 51
52 private: 52 private:
53 RadioNodeList(Element*, const AtomicString& name); 53 RadioNodeList(Node*, const AtomicString& name);
54 bool checkElementMatchesRadioNodeListFilter(Element*) const; 54 bool checkElementMatchesRadioNodeListFilter(Element*) const;
55 55
56 AtomicString m_name; 56 AtomicString m_name;
57 RefPtr<Element> m_baseElement;
58 }; 57 };
59 58
60 } // namepsace 59 } // namepsace
61 60
62 #endif 61 #endif
63 62
OLDNEW
« no previous file with comments | « Source/WebCore/html/LabelsNodeList.cpp ('k') | Source/WebCore/html/RadioNodeList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698