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

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

Issue 2587283002: Windows: Fix the default font size for form controls in non-1.0 device scale factor. (Closed)
Patch Set: Created 4 years 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/LayoutThemeFontProviderWin.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutThemeFontProviderWin.cpp b/third_party/WebKit/Source/core/layout/LayoutThemeFontProviderWin.cpp
index 33a5651a1406857522ee0ab3f999961e0a639fdb..d44861c1e02c8752bff3a02ac7db987b702b0e1c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutThemeFontProviderWin.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutThemeFontProviderWin.cpp
@@ -34,8 +34,8 @@ namespace blink {
// Converts |points| to pixels. One point is 1/72 of an inch.
static float pointsToPixels(float points) {
- float pixelsPerInch = 96.0f * FontCache::deviceScaleFactor();
- static const float pointsPerInch = 72.0f;
+ const float pixelsPerInch = 96.0f;
+ const float pointsPerInch = 72.0f;
return points / pointsPerInch * pixelsPerInch;
}
« no previous file with comments | « third_party/WebKit/LayoutTests/platform/win/virtual/scalefactor200withzoom/fast/hidpi/static/popup-menu-appearance-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698