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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/mac/FontCacheMac.mm

Issue 1362973004: Rename FROM_HERE to BLINK_FROM_HERE. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 @interface NSFont (WebKitSPI) 50 @interface NSFont (WebKitSPI)
51 + (NSFont*)findFontLike:(NSFont*)font forString:(NSString*)string withRange:(NSR ange)range inLanguage:(id)useNil; 51 + (NSFont*)findFontLike:(NSFont*)font forString:(NSString*)string withRange:(NSR ange)range inLanguage:(id)useNil;
52 + (NSFont*)findFontLike:(NSFont*)font forCharacter:(UniChar)uc inLanguage:(id)us eNil; 52 + (NSFont*)findFontLike:(NSFont*)font forCharacter:(UniChar)uc inLanguage:(id)us eNil;
53 @end 53 @end
54 54
55 namespace blink { 55 namespace blink {
56 56
57 static void invalidateFontCache() 57 static void invalidateFontCache()
58 { 58 {
59 if (!isMainThread()) { 59 if (!isMainThread()) {
60 Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, bin d(&invalidateFontCache)); 60 Platform::current()->mainThread()->taskRunner()->postTask(BLINK_FROM_HER E, bind(&invalidateFontCache));
61 return; 61 return;
62 } 62 }
63 FontCache::fontCache()->invalidate(); 63 FontCache::fontCache()->invalidate();
64 } 64 }
65 65
66 static void fontCacheRegisteredFontsChangedNotificationCallback(CFNotificationCe nterRef, void* observer, CFStringRef name, const void *, CFDictionaryRef) 66 static void fontCacheRegisteredFontsChangedNotificationCallback(CFNotificationCe nterRef, void* observer, CFStringRef name, const void *, CFDictionaryRef)
67 { 67 {
68 ASSERT_UNUSED(observer, observer == FontCache::fontCache()); 68 ASSERT_UNUSED(observer, observer == FontCache::fontCache());
69 ASSERT_UNUSED(name, CFEqual(name, kCTFontManagerRegisteredFontsChangedNotifi cation)); 69 ASSERT_UNUSED(name, CFEqual(name, kCTFontManagerRegisteredFontsChangedNotifi cation));
70 invalidateFontCache(); 70 invalidateFontCache();
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // When loading fails, we do not want to use the returned FontPlatformData s ince it will not have 210 // When loading fails, we do not want to use the returned FontPlatformData s ince it will not have
211 // a valid SkTypeface. 211 // a valid SkTypeface.
212 OwnPtr<FontPlatformData> platformData = adoptPtr(new FontPlatformData(platfo rmFont, size, syntheticBold, syntheticItalic, fontDescription.orientation())); 212 OwnPtr<FontPlatformData> platformData = adoptPtr(new FontPlatformData(platfo rmFont, size, syntheticBold, syntheticItalic, fontDescription.orientation()));
213 if (!platformData->typeface()) { 213 if (!platformData->typeface()) {
214 return nullptr; 214 return nullptr;
215 } 215 }
216 return platformData.leakPtr(); 216 return platformData.leakPtr();
217 } 217 }
218 218
219 } // namespace blink 219 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobRegistry.cpp ('k') | third_party/WebKit/Source/platform/graphics/BitmapImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698