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

Side by Side Diff: Source/core/rendering/RenderThemeChromiumFontProviderWin.cpp

Issue 26113005: Remove core/platform/win (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 12 matching lines...) Expand all
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/rendering/RenderThemeChromiumFontProvider.h" 27 #include "core/rendering/RenderThemeChromiumFontProvider.h"
28 28
29 #include <windows.h> 29 #include <windows.h>
30 30
31 #include "CSSValueKeywords.h" 31 #include "CSSValueKeywords.h"
32 #include "core/platform/graphics/FontDescription.h" 32 #include "core/platform/graphics/FontDescription.h"
33 #include "core/platform/win/HWndDC.h" 33 #include "platform/win/HWndDC.h"
34 #include "core/platform/win/SystemInfo.h" 34 #include "platform/win/SystemInfo.h"
35 #include "wtf/text/WTFString.h" 35 #include "wtf/text/WTFString.h"
36 36
37 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(structName, member) \ 37 #define SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(structName, member) \
38 offsetof(structName, member) + \ 38 offsetof(structName, member) + \
39 (sizeof static_cast<structName*>(0)->member) 39 (sizeof static_cast<structName*>(0)->member)
40 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \ 40 #define NONCLIENTMETRICS_SIZE_PRE_VISTA \
41 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont) 41 SIZEOF_STRUCT_WITH_SPECIFIED_LAST_MEMBER(NONCLIENTMETRICS, lfMessageFont)
42 42
43 namespace WebCore { 43 namespace WebCore {
44 44
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 // static 183 // static
184 void RenderThemeChromiumFontProvider::setDefaultFontSize(int fontSize) 184 void RenderThemeChromiumFontProvider::setDefaultFontSize(int fontSize)
185 { 185 {
186 s_defaultFontSize = static_cast<float>(fontSize); 186 s_defaultFontSize = static_cast<float>(fontSize);
187 187
188 // Reset cached fonts. 188 // Reset cached fonts.
189 smallSystemFont() = menuFont() = labelFont() = FontDescription(); 189 smallSystemFont() = menuFont() = labelFont() = FontDescription();
190 } 190 }
191 191
192 } // namespace WebCore 192 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/win/SystemInfo.cpp ('k') | Source/core/rendering/RenderThemeChromiumWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698