Changeset 93295 in webkit
- Timestamp:
- Aug 18, 2011 4:05:53 AM (13 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r93292 r93295 1 2011-08-18 Jing Zhao <jingzhao@chromium.org> 2 3 When changing the size of a menulist from x (x>1) to 1, the first item should be selected. 4 https://bugs.webkit.org/show_bug.cgi?id=66282 5 6 Reviewed by Kent Tamura. 7 8 No new tests since it only changes the behavior in Android Browser. 9 10 * html/HTMLSelectElement.cpp: 11 (WebCore::HTMLSelectElement::parseMappedAttribute): 12 1 13 2011-08-18 Adam Klein <adamk@chromium.org> 2 14 -
trunk/Source/WebCore/html/HTMLSelectElement.cpp
r93276 r93295 245 245 } 246 246 247 void HTMLSelectElement::parseMappedAttribute(Attribute* attr) 248 { 249 bool oldUsesMenuList = m_data.usesMenuList(); 247 void HTMLSelectElement::parseMappedAttribute(Attribute* attr) 248 { 250 249 if (attr->name() == sizeAttr) { 251 250 int oldSize = m_data.size(); … … 264 263 m_data.setSize(size); 265 264 setNeedsValidityCheck(); 266 if ( (oldUsesMenuList != m_data.usesMenuList() || (!oldUsesMenuList && m_data.size() != oldSize))&& attached()) {265 if (m_data.size() != oldSize && attached()) { 267 266 reattach(); 268 267 setRecalcListItems();
Note: See TracChangeset
for help on using the changeset viewer.