Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(772)

Unified Diff: third_party/WebKit/Source/core/paint/ThemePainterMac.mm

Issue 2005093002: Remove non-standard 'results' attribute of INPUT element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/paint/ThemePainterMac.mm
diff --git a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
index 401d6f6f345fd049b7e754a466052c0876e71a0d..46883542df01bcc607116f83283d710ac2587f49 100644
--- a/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
+++ b/third_party/WebKit/Source/core/paint/ThemePainterMac.mm
@@ -544,46 +544,4 @@ bool ThemePainterMac::paintSearchFieldCancelButton(const LayoutObject& o, const
return false;
}
-bool ThemePainterMac::paintSearchFieldDecoration(const LayoutObject&, const PaintInfo&, const IntRect&)
-{
- return false;
-}
-
-bool ThemePainterMac::paintSearchFieldResultsDecoration(const LayoutObject& o, const PaintInfo& paintInfo, const IntRect& r)
-{
- if (!o.node())
- return false;
- Node* input = o.node()->shadowHost();
- if (!input)
- input = o.node();
- if (!input->layoutObject()->isBox())
- return false;
-
- GraphicsContextStateSaver stateSaver(paintInfo.context);
-
- float zoomLevel = o.styleRef().effectiveZoom();
- FloatRect unzoomedRect(r);
- if (zoomLevel != 1) {
- unzoomedRect.setWidth(unzoomedRect.width() / zoomLevel);
- unzoomedRect.setHeight(unzoomedRect.height() / zoomLevel);
- paintInfo.context.translate(unzoomedRect.x(), unzoomedRect.y());
- paintInfo.context.scale(zoomLevel, zoomLevel);
- paintInfo.context.translate(-unzoomedRect.x(), -unzoomedRect.y());
- }
-
- LocalCurrentGraphicsContext localContext(paintInfo.context, r);
-
- NSSearchFieldCell* search = m_layoutTheme.search();
- m_layoutTheme.setSearchCellState(*input->layoutObject(), r);
- [search setControlSize:searchFieldControlSizeForFont(o.styleRef())];
- if ([search searchMenuTemplate] != nil)
- [search setSearchMenuTemplate:nil];
-
- m_layoutTheme.updateActiveState([search searchButtonCell], o);
-
- [[search searchButtonCell] drawWithFrame:unzoomedRect inView:m_layoutTheme.documentViewFor(o)];
- [[search searchButtonCell] setControlView:nil];
- return false;
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/ThemePainterMac.h ('k') | third_party/WebKit/Source/platform/ThemeTypes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698