Changeset 120413 in webkit
- Timestamp:
- Jun 15, 2012, 12:13:35 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 deleted
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120412 r120413 1 2012-06-14 Kent Tamura <tkent@chromium.org> 2 3 Unreviewed, rolling out r110340. 4 http://trac.webkit.org/changeset/110340 5 https://bugs.webkit.org/show_bug.cgi?id=88749 6 7 * fast/dom/HTMLSelectElement/select-selectedOptions-expected.txt: Removed. 8 * fast/dom/HTMLSelectElement/select-selectedOptions.html: Removed. 9 1 10 2012-06-15 MORITA Hajime <morrita@google.com> 2 11 -
trunk/Source/WebCore/ChangeLog
r120411 r120413 1 2012-06-14 Kent Tamura <tkent@chromium.org> 2 3 Unreviewed, rolling out r110340. 4 http://trac.webkit.org/changeset/110340 5 https://bugs.webkit.org/show_bug.cgi?id=88749 6 7 r110340 added a broken implementation of 8 HTMLSelectElement::selectedOptions. This roll out removes 9 HTMLSelectElement::selectedOptions. 10 11 * html/CollectionType.h: 12 * html/HTMLCollection.cpp: 13 (WebCore::HTMLCollection::shouldIncludeChildren): 14 (WebCore::HTMLCollection::isAcceptableElement): 15 * html/HTMLSelectElement.cpp: 16 * html/HTMLSelectElement.h: 17 (HTMLSelectElement): 18 * html/HTMLSelectElement.idl: 19 1 20 2012-06-14 Keishi Hattori <keishi@webkit.org> 2 21 -
trunk/Source/WebCore/html/CollectionType.h
r116487 r120413 52 52 TRCells, // all cells in this row 53 53 SelectOptions, 54 SelectedOptions,55 54 DataListOptions, 56 55 MapAreas, -
trunk/Source/WebCore/html/HTMLCollection.cpp
r116487 r120413 62 62 case OtherCollection: 63 63 case SelectOptions: 64 case SelectedOptions:65 64 case DataListOptions: 66 65 case WindowNamedItems: … … 120 119 case SelectOptions: 121 120 return element->hasLocalName(optionTag); 122 case SelectedOptions:123 if (element->hasLocalName(optionTag)) {124 HTMLOptionElement* option = static_cast<HTMLOptionElement*>(element);125 if (option->selected())126 return true;127 }128 return false;129 121 case DataListOptions: 130 122 if (element->hasLocalName(optionTag)) { -
trunk/Source/WebCore/html/HTMLSelectElement.cpp
r120049 r120413 348 348 { 349 349 return childContext.isOnUpperEncapsulationBoundary() && HTMLFormControlElementWithState::childShouldCreateRenderer(childContext); 350 }351 352 HTMLCollection* HTMLSelectElement::selectedOptions()353 {354 if (!m_selectedOptionsCollection)355 m_selectedOptionsCollection = HTMLCollection::create(this, SelectedOptions);356 return m_selectedOptionsCollection.get();357 350 } 358 351 -
trunk/Source/WebCore/html/HTMLSelectElement.h
r118192 r120413 65 65 66 66 HTMLOptionsCollection* options(); 67 HTMLCollection* selectedOptions();68 67 69 68 void optionElementChildrenChanged(); … … 181 180 182 181 OwnPtr<HTMLOptionsCollection> m_optionsCollection; 183 OwnPtr<HTMLCollection> m_selectedOptionsCollection;184 182 185 183 // m_listItems contains HTMLOptionElement, HTMLOptGroupElement, and HTMLHRElement objects. -
trunk/Source/WebCore/html/HTMLSelectElement.idl
r120049 r120413 54 54 void remove(in long index); 55 55 #endif 56 readonly attribute HTMLCollection selectedOptions;57 56 attribute long selectedIndex; 58 57 attribute [TreatNullAs=NullString] DOMString value;
Note:
See TracChangeset
for help on using the changeset viewer.