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

Side by Side Diff: Source/platform/fonts/win/FontFallbackWin.cpp

Issue 400543004: Rename WebCore namespace to blink in Platform (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 22 matching lines...) Expand all
33 33
34 #include "SkFontMgr.h" 34 #include "SkFontMgr.h"
35 #include "SkTypeface.h" 35 #include "SkTypeface.h"
36 #include "wtf/HashMap.h" 36 #include "wtf/HashMap.h"
37 #include "wtf/text/StringHash.h" 37 #include "wtf/text/StringHash.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 #include <limits> 39 #include <limits>
40 #include <unicode/locid.h> 40 #include <unicode/locid.h>
41 #include <unicode/uchar.h> 41 #include <unicode/uchar.h>
42 42
43 namespace WebCore { 43 namespace blink {
44 44
45 namespace { 45 namespace {
46 46
47 static inline bool isFontPresent(const UChar* fontName, SkFontMgr* fontManager) 47 static inline bool isFontPresent(const UChar* fontName, SkFontMgr* fontManager)
48 { 48 {
49 String family = fontName; 49 String family = fontName;
50 RefPtr<SkTypeface> tf = adoptRef(fontManager->legacyCreateTypeface(family.ut f8().data(), SkTypeface::kNormal)); 50 RefPtr<SkTypeface> tf = adoptRef(fontManager->legacyCreateTypeface(family.ut f8().data(), SkTypeface::kNormal));
51 if (!tf) 51 if (!tf)
52 return false; 52 return false;
53 53
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 default: 341 default:
342 family = L"lucida sans unicode"; 342 family = L"lucida sans unicode";
343 } 343 }
344 } 344 }
345 345
346 if (scriptChecked) 346 if (scriptChecked)
347 *scriptChecked = script; 347 *scriptChecked = script;
348 return family; 348 return family;
349 } 349 }
350 350
351 } // namespace WebCore 351 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/win/FontFallbackWin.h ('k') | Source/platform/fonts/win/FontPlatformDataWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698