Reviewed by kocienda
* khtml/html/html_formimpl.cpp:
(DOM::HTMLInputElementImpl::HTMLInputElementImpl):
(DOM::HTMLInputElementImpl::parseHTMLAttribute):
* kwq/KWQLineEdit.mm:
(QLineEdit::setMaxResults):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8465
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2005-01-27 David Hyatt <hyatt@apple.com>
+
+ Fix for 3875199, search field needs to be able to show a magnifying glass without a dropdown menu.
+
+ Reviewed by kocienda
+
+ * khtml/html/html_formimpl.cpp:
+ (DOM::HTMLInputElementImpl::HTMLInputElementImpl):
+ (DOM::HTMLInputElementImpl::parseHTMLAttribute):
+ * kwq/KWQLineEdit.mm:
+ (QLineEdit::setMaxResults):
+
2005-01-27 Ken Kocienda <kocienda@apple.com>
Reviewed by Maciej
yPos = 0;
#if APPLE_CHANGES
- m_maxResults = 0;
+ m_maxResults = -1;
#endif
if ( m_form )
getDocument()->createHTMLEventListener(attr->value().string()));
break;
case ATTR_RESULTS:
- m_maxResults = !attr->isNull() ? attr->value().toInt() : 0;
+ m_maxResults = !attr->isNull() ? attr->value().toInt() : -1;
/* Fall through */
case ATTR_AUTOSAVE:
case ATTR_INCREMENTAL:
NSSearchField *searchField = (NSSearchField *)getView();
id searchCell = [searchField cell];
- if (!maxResults) {
+ if (maxResults == -1) {
[searchCell setSearchButtonCell:nil];
[searchCell setSearchMenuTemplate:nil];
}
NSButtonCell* buttonCell = [searchCell searchButtonCell];
if (!buttonCell)
[searchCell resetSearchButtonCell];
- if (!cellMenu)
+ if (!cellMenu && maxResults > 0)
[searchCell setSearchMenuTemplate:[[WebCoreViewFactory sharedFactory] cellMenuForSearchField]];
}