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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp

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/LayoutThemeDefault.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
index 9a622492cfc157481baff3498b3dc40efe69eff6..5f94aee152ddee4823f896e9534eb89c40921f37 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
@@ -51,9 +51,6 @@ static const float defaultControlFontPixelSize = 13;
static const float defaultCancelButtonSize = 9;
static const float minCancelButtonSize = 5;
static const float maxCancelButtonSize = 21;
-static const float defaultSearchFieldResultsDecorationSize = 13;
-static const float minSearchFieldResultsDecorationSize = 9;
-static const float maxSearchFieldResultsDecorationSize = 30;
static const int menuListArrowPaddingSize = 14;
static bool useMockTheme()
@@ -337,23 +334,6 @@ void LayoutThemeDefault::adjustSearchFieldCancelButtonStyle(ComputedStyle& style
style.setHeight(Length(cancelButtonSize, Fixed));
}
-void LayoutThemeDefault::adjustSearchFieldDecorationStyle(ComputedStyle& style) const
-{
- IntSize emptySize(1, 11);
- style.setWidth(Length(emptySize.width(), Fixed));
- style.setHeight(Length(emptySize.height(), Fixed));
-}
-
-void LayoutThemeDefault::adjustSearchFieldResultsDecorationStyle(ComputedStyle& style) const
-{
- // Scale the decoration size based on the font size
- float fontScale = style.fontSize() / defaultControlFontPixelSize;
- int magnifierSize = lroundf(std::min(std::max(minSearchFieldResultsDecorationSize, defaultSearchFieldResultsDecorationSize * fontScale),
- maxSearchFieldResultsDecorationSize));
- style.setWidth(Length(magnifierSize, Fixed));
- style.setHeight(Length(magnifierSize, Fixed));
-}
-
void LayoutThemeDefault::adjustMenuListStyle(ComputedStyle& style, Element*) const
{
// Height is locked to auto on all browsers.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutThemeDefault.h ('k') | third_party/WebKit/Source/core/layout/LayoutThemeMac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698