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

Unified Diff: Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp

Issue 39693002: Introduce isWindowsVistaOrGreater() as replacement of windowsVersion() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 2013-10-28T12:54:24 Created 7 years, 2 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: Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp
diff --git a/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp b/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp
index c17695b96c75b05460a1e3fe56f8f8f6994acdc2..8458e0b11589c0bf8b9a0e7a6fcab967c5bb6498 100644
--- a/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp
+++ b/Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp
@@ -78,7 +78,7 @@ static float pointsToPixels(float points)
static void getNonClientMetrics(NONCLIENTMETRICS* metrics)
{
- static UINT size = (windowsVersion() >= WindowsVista) ?
+ static UINT size = isWindowsVistaOrGreater() ?
sizeof(NONCLIENTMETRICS) : NONCLIENTMETRICS_SIZE_PRE_VISTA;
metrics->cbSize = size;
bool success = !!SystemParametersInfo(SPI_GETNONCLIENTMETRICS, size, metrics, 0);
« no previous file with comments | « Source/core/platform/graphics/chromium/GlyphPageTreeNodeChromiumWin.cpp ('k') | Source/platform/win/SystemInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698