Changeset 13955 in webkit
- Timestamp:
- Apr 18, 2006 9:37:40 AM (18 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r13952 r13955 1 2006-04-18 Mitz Pettel <opendarwin.org@mitzpettel.com> 2 3 Reviewed by Darin. 4 5 - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=8437 6 iExploder(#293): Crash in StringImpl::hash() 7 8 * manual-tests/applet-param-no-name.html: Added. 9 * rendering/RenderApplet.cpp: 10 (WebCore::RenderApplet::createWidgetIfNecessary): Skip param elements with 11 empty name. 12 1 13 2006-04-18 Darin Adler <darin@apple.com> 2 14 -
trunk/WebCore/rendering/RenderApplet.cpp
r13867 r13955 77 77 if (child->hasTagName(paramTag)) { 78 78 HTMLParamElement* p = static_cast<HTMLParamElement*>(child); 79 m_args.set(p->name(), p->value()); 79 if (!p->name().isEmpty()) 80 m_args.set(p->name(), p->value()); 80 81 } 81 82 setWidget(new JavaAppletWidget(IntSize(width, height), node()->document()->frame(), m_args)); -
trunk/WebCore/rendering/render_form.cpp
r13859 r13955 668 668 else if (listItems[listIndex]->hasTagName(optionTag)) { 669 669 HTMLOptionElement *optionElement = static_cast<HTMLOptionElement*>(listItems[listIndex]); 670 DeprecatedString itemText ;671 if ( optionElement->hasAttribute(labelAttr))670 DeprecatedString itemText = optionElement->text().deprecatedString(); 671 if (itemText.isEmpty()) 672 672 itemText = optionElement->getAttribute(labelAttr).deprecatedString(); 673 else674 itemText = optionElement->text().deprecatedString();675 673 676 674 itemText.replace(QChar('\\'), backslashAsCurrencySymbol()); … … 678 676 // In WinIE, leading and trailing whitespace is ignored in options. We match this behavior. 679 677 itemText = itemText.stripWhiteSpace(); 680 // We want to collapse our whitespace too. 678 // We want to collapse our whitespace too. This will match other browsers. 681 679 itemText = itemText.simplifyWhiteSpace(); 682 680
Note: See TracChangeset
for help on using the changeset viewer.