OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2011, 2012 Apple Computer, Inc. | 2 * Copyright (C) 2006, 2011, 2012 Apple Computer, Inc. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 void HTMLOptionsCollection::setSelectedIndex(int index) | 83 void HTMLOptionsCollection::setSelectedIndex(int index) |
84 { | 84 { |
85 toHTMLSelectElement(ownerNode())->setSelectedIndex(index); | 85 toHTMLSelectElement(ownerNode())->setSelectedIndex(index); |
86 } | 86 } |
87 | 87 |
88 void HTMLOptionsCollection::setLength(unsigned length, ExceptionCode& ec) | 88 void HTMLOptionsCollection::setLength(unsigned length, ExceptionCode& ec) |
89 { | 89 { |
90 toHTMLSelectElement(ownerNode())->setLength(length, ec); | 90 toHTMLSelectElement(ownerNode())->setLength(length, ec); |
91 } | 91 } |
92 | 92 |
93 void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, RefPt
r<NodeList>& returnValue1, RefPtr<Node>& returnValue2) | 93 void HTMLOptionsCollection::anonymousNamedGetter(const AtomicString& name, bool&
returnValue0Enabled, RefPtr<NodeList>& returnValue0, bool& returnValue1Enabled,
RefPtr<Node>& returnValue1) |
94 { | 94 { |
95 Vector<RefPtr<Node> > namedItems; | 95 Vector<RefPtr<Node> > namedItems; |
96 this->namedItems(name, namedItems); | 96 this->namedItems(name, namedItems); |
97 | 97 |
98 if (!namedItems.size()) | 98 if (!namedItems.size()) |
99 return; | 99 return; |
100 | 100 |
101 if (namedItems.size() == 1) { | 101 if (namedItems.size() == 1) { |
102 returnValue2 = namedItems.at(0); | 102 returnValue1Enabled = true; |
| 103 returnValue1 = namedItems.at(0); |
103 return; | 104 return; |
104 } | 105 } |
105 | 106 |
106 returnValue1 = NamedNodesCollection::create(namedItems); | 107 returnValue0Enabled = true; |
| 108 returnValue0 = NamedNodesCollection::create(namedItems); |
107 } | 109 } |
108 | 110 |
109 } //namespace | 111 } //namespace |
OLD | NEW |