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

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

Issue 15841004: [Binding] Support primitive type for union member (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: 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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 if (!idAttrVal.isEmpty() && !foundInputElements.contains(idAttrVal.i mpl())) 153 if (!idAttrVal.isEmpty() && !foundInputElements.contains(idAttrVal.i mpl()))
154 appendIdCache(idAttrVal, element); 154 appendIdCache(idAttrVal, element);
155 if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal && !foundInpu tElements.contains(nameAttrVal.impl())) 155 if (!nameAttrVal.isEmpty() && idAttrVal != nameAttrVal && !foundInpu tElements.contains(nameAttrVal.impl()))
156 appendNameCache(nameAttrVal, element); 156 appendNameCache(nameAttrVal, element);
157 } 157 }
158 } 158 }
159 159
160 setHasNameCache(); 160 setHasNameCache();
161 } 161 }
162 162
163 void HTMLFormControlsCollection::namedGetter(const AtomicString& name, RefPtr<Ra dioNodeList>& returnValue1, RefPtr<Node>& returnValue2) 163 void HTMLFormControlsCollection::namedGetter(const AtomicString& name, bool& ret urnValue0Enabled, RefPtr<RadioNodeList>& returnValue0, bool& returnValue1Enabled , RefPtr<Node>& returnValue1)
164 { 164 {
165 Vector<RefPtr<Node> > namedItems; 165 Vector<RefPtr<Node> > namedItems;
166 this->namedItems(name, namedItems); 166 this->namedItems(name, namedItems);
167 167
168 if (!namedItems.size()) 168 if (!namedItems.size())
169 return; 169 return;
170 170
171 if (namedItems.size() == 1) { 171 if (namedItems.size() == 1) {
172 returnValue2 = namedItems.at(0); 172 returnValue1Enabled = true;
173 returnValue1 = namedItems.at(0);
173 return; 174 return;
174 } 175 }
175 176
176 returnValue1 = this->ownerNode()->radioNodeList(name); 177 returnValue0Enabled = true;
178 returnValue0 = this->ownerNode()->radioNodeList(name);
177 } 179 }
178 180
179 } 181 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698