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

Side by Side Diff: Source/core/html/HTMLFormControlsCollection.cpp

Issue 15724005: [Binding] Support primitive type for union member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: do not inherit getter. rename DoNotCheckJSProperty to OverrideBuiltins Created 7 years, 7 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
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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All r ights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2010, 2011, 2012 Apple Inc. All r ights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 if (!idAttrVal.isEmpty() && !foundInputElements.contains(idAttrVal.i mpl())) 154 if (!idAttrVal.isEmpty() && !foundInputElements.contains(idAttrVal.i mpl()))
155 appendIdCache(idAttrVal, element); 155 appendIdCache(idAttrVal, element);
156 if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal && !foundInpu tElements.contains(nameAttrVal.impl())) 156 if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal && !foundInpu tElements.contains(nameAttrVal.impl()))
157 appendNameCache(nameAttrVal, element); 157 appendNameCache(nameAttrVal, element);
158 } 158 }
159 } 159 }
160 160
161 setHasNameCache(); 161 setHasNameCache();
162 } 162 }
163 163
164 void HTMLFormControlsCollection::namedGetter(const AtomicString& name, RefPtr<Ra dioNodeList>& returnValue1, RefPtr<Node>& returnValue2) 164 void HTMLFormControlsCollection::namedGetter(const AtomicString& name, bool& ret urnValue0Enabled, RefPtr<RadioNodeList>& returnValue0, bool& returnValue1Enabled , RefPtr<Node>& returnValue1)
165 { 165 {
166 Vector<RefPtr<Node> > namedItems; 166 Vector<RefPtr<Node> > namedItems;
167 this->namedItems(name, namedItems); 167 this->namedItems(name, namedItems);
168 168
169 if (!namedItems.size()) 169 if (!namedItems.size())
170 return; 170 return;
171 171
172 if (namedItems.size() == 1) { 172 if (namedItems.size() == 1) {
173 returnValue2 = namedItems.at(0); 173 returnValue1Enabled = true;
174 returnValue1 = namedItems.at(0);
174 return; 175 return;
175 } 176 }
176 177
177 returnValue1 = this->ownerNode()->radioNodeList(name); 178 returnValue0Enabled = true;
179 returnValue0 = this->ownerNode()->radioNodeList(name);
178 } 180 }
179 181
180 } 182 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698