OLD | NEW |
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 11 matching lines...) Expand all Loading... |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 "platform/fonts/FontDescription.h" |
33 #include "platform/win/HWndDC.h" | 33 #include "platform/win/HWndDC.h" |
34 #include "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 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |