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

Side by Side Diff: Source/core/platform/graphics/chromium/FontUtilsChromiumWin.cpp

Issue 19762007: core/platform: Include wtf files using "wtf/foo.h" form. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 years, 5 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) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights reser ved. 2 * Copyright (c) 2006, 2007, 2008, 2009, 2010, 2012 Google Inc. All rights reser ved.
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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 19 matching lines...) Expand all
30 30
31 #include "config.h" 31 #include "config.h"
32 #include "core/platform/graphics/chromium/FontUtilsChromiumWin.h" 32 #include "core/platform/graphics/chromium/FontUtilsChromiumWin.h"
33 33
34 #include <limits> 34 #include <limits>
35 35
36 #include <unicode/locid.h> 36 #include <unicode/locid.h>
37 #include <unicode/uchar.h> 37 #include <unicode/uchar.h>
38 #include "core/platform/graphics/chromium/UniscribeHelper.h" 38 #include "core/platform/graphics/chromium/UniscribeHelper.h"
39 #include "core/platform/win/HWndDC.h" 39 #include "core/platform/win/HWndDC.h"
40 #include <wtf/HashMap.h> 40 #include "wtf/HashMap.h"
41 #include <wtf/text/StringHash.h> 41 #include "wtf/text/StringHash.h"
42 #include <wtf/text/WTFString.h> 42 #include "wtf/text/WTFString.h"
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 namespace { 46 namespace {
47 47
48 bool isFontPresent(const UChar* fontName) 48 bool isFontPresent(const UChar* fontName)
49 { 49 {
50 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50 HFONT hfont = CreateFont(12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
51 fontName); 51 fontName);
52 if (!hfont) 52 if (!hfont)
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 if (!logfont) { 448 if (!logfont) {
449 ASSERT_NOT_REACHED(); 449 ASSERT_NOT_REACHED();
450 return FontStyleNormal; 450 return FontStyleNormal;
451 } 451 }
452 return (logfont->lfItalic ? FontStyleItalic : FontStyleNormal) | 452 return (logfont->lfItalic ? FontStyleItalic : FontStyleNormal) |
453 (logfont->lfUnderline ? FontStyleUnderlined : FontStyleNormal) | 453 (logfont->lfUnderline ? FontStyleUnderlined : FontStyleNormal) |
454 (logfont->lfWeight >= 700 ? FontStyleBold : FontStyleNormal); 454 (logfont->lfWeight >= 700 ? FontStyleBold : FontStyleNormal);
455 } 455 }
456 456
457 } // namespace WebCore 457 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698