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

Side by Side Diff: Source/core/html/HTMLFormElement.h

Issue 119063002: Have HTMLFormElement's named getter return a RadioNodeList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Test style adjustments + const'ify new RadioNodeList field. 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 unified diff | Download patch
« no previous file with comments | « Source/core/html/HTMLCollection.cpp ('k') | Source/core/html/HTMLFormElement.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete); 112 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocomplete);
113 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocompleteerror); 113 DEFINE_ATTRIBUTE_EVENT_LISTENER(autocompleteerror);
114 114
115 CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; } 115 CheckedRadioButtons& checkedRadioButtons() { return m_checkedRadioButtons; }
116 116
117 const Vector<FormAssociatedElement*>& associatedElements() const { return m_ associatedElements; } 117 const Vector<FormAssociatedElement*>& associatedElements() const { return m_ associatedElements; }
118 const Vector<HTMLImageElement*>& imageElements() const { return m_imageEleme nts; } 118 const Vector<HTMLImageElement*>& imageElements() const { return m_imageEleme nts; }
119 119
120 void getTextFieldValues(StringPairVector& fieldNamesAndValues) const; 120 void getTextFieldValues(StringPairVector& fieldNamesAndValues) const;
121 void anonymousNamedGetter(const AtomicString& name, bool&, RefPtr<NodeList>& , bool&, RefPtr<Node>&); 121 void anonymousNamedGetter(const AtomicString& name, bool&, RefPtr<RadioNodeL ist>&, bool&, RefPtr<Node>&);
122 122
123 private: 123 private:
124 explicit HTMLFormElement(Document&); 124 explicit HTMLFormElement(Document&);
125 125
126 virtual bool rendererIsNeeded(const RenderStyle&); 126 virtual bool rendererIsNeeded(const RenderStyle&);
127 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE; 127 virtual InsertionNotificationRequest insertedInto(ContainerNode*) OVERRIDE;
128 virtual void removedFrom(ContainerNode*) OVERRIDE; 128 virtual void removedFrom(ContainerNode*) OVERRIDE;
129 virtual void finishParsingChildren() OVERRIDE; 129 virtual void finishParsingChildren() OVERRIDE;
130 130
131 virtual void handleLocalEvents(Event*); 131 virtual void handleLocalEvents(Event*);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 Vector<RefPtr<Event> > m_pendingAutocompleteEvents; 182 Vector<RefPtr<Event> > m_pendingAutocompleteEvents;
183 Timer<HTMLFormElement> m_requestAutocompleteTimer; 183 Timer<HTMLFormElement> m_requestAutocompleteTimer;
184 }; 184 };
185 185
186 DEFINE_NODE_TYPE_CASTS(HTMLFormElement, hasTagName(HTMLNames::formTag)); 186 DEFINE_NODE_TYPE_CASTS(HTMLFormElement, hasTagName(HTMLNames::formTag));
187 187
188 } // namespace WebCore 188 } // namespace WebCore
189 189
190 #endif // HTMLFormElement_h 190 #endif // HTMLFormElement_h
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCollection.cpp ('k') | Source/core/html/HTMLFormElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698