Changeset 65074 in webkit
- Timestamp:
- Aug 10, 2010 9:43:37 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r65073 r65074 1 2010-08-10 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk> 2 3 Reviewed by Xan Lopez. 4 5 [GTK] Inputs of type 'search' have weird looking checkboxes instead of search/clear icons 6 https://bugs.webkit.org/show_bug.cgi?id=43760 7 8 Draw appropriate GTK+ stock images for search/clear icons in search entries. 9 10 * platform/gtk/RenderThemeGtk.cpp: 11 (WebCore::RenderThemeGtk::paintSearchFieldResultsButton): 12 (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration): 13 (WebCore::RenderThemeGtk::paintSearchFieldCancelButton): 14 1 15 2010-08-10 Pavel Feldman <pfeldman@chromium.org> 2 16 -
trunk/WebCore/platform/gtk/RenderThemeGtk.cpp
r63214 r65074 486 486 bool RenderThemeGtk::paintSearchFieldResultsButton(RenderObject* o, const PaintInfo& i, const IntRect& rect) 487 487 { 488 return paint MozillaGtkWidget(this, MOZ_GTK_DROPDOWN_ARROW,o, i, rect);488 return paintSearchFieldResultsDecoration(o, i, rect); 489 489 } 490 490 … … 502 502 bool RenderThemeGtk::paintSearchFieldResultsDecoration(RenderObject* o, const PaintInfo& i, const IntRect& rect) 503 503 { 504 return paintMozillaGtkWidget(this, MOZ_GTK_CHECKMENUITEM, o, i, rect); 504 GraphicsContext* context = i.context; 505 506 static Image* searchImage = Image::loadPlatformThemeIcon(GTK_STOCK_FIND, rect.width()).releaseRef(); 507 context->drawImage(searchImage, DeviceColorSpace, rect); 508 509 return false; 505 510 } 506 511 … … 518 523 bool RenderThemeGtk::paintSearchFieldCancelButton(RenderObject* o, const PaintInfo& i, const IntRect& rect) 519 524 { 520 return paintMozillaGtkWidget(this, MOZ_GTK_CHECKMENUITEM, o, i, rect); 525 GraphicsContext* context = i.context; 526 527 // TODO: Brightening up the image on hover is desirable here, I believe. 528 static Image* cancelImage = Image::loadPlatformThemeIcon(GTK_STOCK_CLEAR, rect.width()).releaseRef(); 529 context->drawImage(cancelImage, DeviceColorSpace, rect); 530 531 return false; 521 532 } 522 533
Note: See TracChangeset
for help on using the changeset viewer.