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

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

Issue 2795413003: Rewrite references to "wtf/" to "platform/wtf/" in platform/fonts. (Closed)
Patch Set: Created 3 years, 8 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 12 matching lines...) Expand all
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #import "platform/fonts/FontCache.h" 30 #import "platform/fonts/FontCache.h"
31 31
32 #import <AppKit/AppKit.h> 32 #import <AppKit/AppKit.h>
33 #include <memory>
33 #include "platform/LayoutTestSupport.h" 34 #include "platform/LayoutTestSupport.h"
34 #include "platform/RuntimeEnabledFeatures.h" 35 #include "platform/RuntimeEnabledFeatures.h"
35 #include "platform/WebTaskRunner.h" 36 #include "platform/WebTaskRunner.h"
36 #include "platform/fonts/FontDescription.h" 37 #include "platform/fonts/FontDescription.h"
37 #include "platform/fonts/FontFaceCreationParams.h" 38 #include "platform/fonts/FontFaceCreationParams.h"
38 #include "platform/fonts/FontPlatformData.h" 39 #include "platform/fonts/FontPlatformData.h"
39 #include "platform/fonts/SimpleFontData.h" 40 #include "platform/fonts/SimpleFontData.h"
40 #include "platform/fonts/mac/FontFamilyMatcherMac.h" 41 #include "platform/fonts/mac/FontFamilyMatcherMac.h"
42 #include "platform/wtf/Functional.h"
43 #include "platform/wtf/PtrUtil.h"
44 #include "platform/wtf/StdLibExtras.h"
41 #include "public/platform/Platform.h" 45 #include "public/platform/Platform.h"
42 #include "public/platform/WebTraceLocation.h" 46 #include "public/platform/WebTraceLocation.h"
43 #include "wtf/Functional.h"
44 #include "wtf/PtrUtil.h"
45 #include "wtf/StdLibExtras.h"
46 #include <memory>
47 47
48 // Forward declare Mac SPIs. 48 // Forward declare Mac SPIs.
49 // Request for public API: rdar://13803570 49 // Request for public API: rdar://13803570
50 @interface NSFont (WebKitSPI) 50 @interface NSFont (WebKitSPI)
51 + (NSFont*)findFontLike:(NSFont*)font 51 + (NSFont*)findFontLike:(NSFont*)font
52 forString:(NSString*)string 52 forString:(NSString*)string
53 withRange:(NSRange)range 53 withRange:(NSRange)range
54 inLanguage:(id)useNil; 54 inLanguage:(id)useNil;
55 + (NSFont*)findFontLike:(NSFont*)font 55 + (NSFont*)findFontLike:(NSFont*)font
56 forCharacter:(UniChar)uc 56 forCharacter:(UniChar)uc
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 WTF::makeUnique<FontPlatformData>( 289 WTF::makeUnique<FontPlatformData>(
290 platformFont, size, syntheticBold, syntheticItalic, 290 platformFont, size, syntheticBold, syntheticItalic,
291 fontDescription.orientation(), fontDescription.variationSettings()); 291 fontDescription.orientation(), fontDescription.variationSettings());
292 if (!platformData->typeface()) { 292 if (!platformData->typeface()) {
293 return nullptr; 293 return nullptr;
294 } 294 }
295 return platformData; 295 return platformData;
296 } 296 }
297 297
298 } // namespace blink 298 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698