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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeMac.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/layout/LayoutThemeMac.mm
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
index c3b1ecce3e2797676d90f6c6e79f4a61bbacfd76..215df445964beb8547df90bbead6677dc5cd0151 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeMac.mm
@@ -888,30 +888,6 @@ void LayoutThemeMac::adjustSearchFieldCancelButtonStyle(ComputedStyle& style) co
style.setBoxShadow(nullptr);
}
-const IntSize* LayoutThemeMac::resultsButtonSizes() const
-{
- static const IntSize sizes[3] = { IntSize(15, 14), IntSize(16, 13), IntSize(14, 11) };
- return sizes;
-}
-
-void LayoutThemeMac::adjustSearchFieldDecorationStyle(ComputedStyle& style) const
-{
- NSControlSize controlSize = controlSizeForSystemFont(style);
- IntSize searchFieldSize = searchFieldSizes()[controlSize];
- int width = searchFieldSize.height() / 2 - searchFieldBorderWidth - searchFieldHorizontalPaddings()[controlSize];
- style.setWidth(Length(width, Fixed));
- style.setHeight(Length(0, Fixed));
- style.setBoxShadow(nullptr);
-}
-
-void LayoutThemeMac::adjustSearchFieldResultsDecorationStyle(ComputedStyle& style) const
-{
- IntSize size = sizeForSystemFont(style, resultsButtonSizes());
- style.setWidth(Length(size.width(), Fixed));
- style.setHeight(Length(size.height(), Fixed));
- style.setBoxShadow(nullptr);
-}
-
IntSize LayoutThemeMac::sliderTickSize() const
{
return IntSize(1, 3);
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeMac.h ('k') | third_party/WebKit/Source/core/paint/ThemePainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698