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

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

Issue 2351283003: Applies zoom factor to the spinner size (Closed)
Patch Set: Applies zoom factor to the spinner size Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 18b4856241a24adea6b7cdd41fab5121f948679c..b31738f5a20ccf8c6914cdd10dd7329a943ec17a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeDefault.cpp
@@ -234,8 +234,9 @@ void LayoutThemeDefault::adjustInnerSpinButtonStyle(ComputedStyle& style) const
{
IntSize size = Platform::current()->themeEngine()->getSize(WebThemeEngine::PartInnerSpinButton);
- style.setWidth(Length(size.width(), Fixed));
- style.setMinWidth(Length(size.width(), Fixed));
+ float zoomLevel = style.effectiveZoom();
+ style.setWidth(Length(size.width() * zoomLevel, Fixed));
+ style.setMinWidth(Length(size.width() * zoomLevel, Fixed));
}
bool LayoutThemeDefault::shouldOpenPickerWithF4Key() const
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698