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

Side by Side Diff: Source/platform/fonts/mac/MemoryActivatedFont.mm

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 * This file is part of the internal font implementation. 2 * This file is part of the internal font implementation.
3 * 3 *
4 * Copyright (c) 2010 Google Inc. All rights reserved. 4 * Copyright (c) 2010 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 18 matching lines...) Expand all
29 #import "config.h" 29 #import "config.h"
30 #import "platform/fonts/mac/MemoryActivatedFont.h" 30 #import "platform/fonts/mac/MemoryActivatedFont.h"
31 31
32 #import <AppKit/NSFont.h> 32 #import <AppKit/NSFont.h>
33 #import "platform/LinkHash.h" 33 #import "platform/LinkHash.h"
34 #import "platform/fonts/FontPlatformData.h" 34 #import "platform/fonts/FontPlatformData.h"
35 #import "public/platform/mac/WebSandboxSupport.h" 35 #import "public/platform/mac/WebSandboxSupport.h"
36 #import "public/platform/Platform.h" 36 #import "public/platform/Platform.h"
37 #import "wtf/HashMap.h" 37 #import "wtf/HashMap.h"
38 38
39 namespace WebCore { 39 namespace blink {
40 40
41 namespace { 41 namespace {
42 42
43 typedef HashMap<uint32, MemoryActivatedFont*> FontContainerRefMemoryFontHash; 43 typedef HashMap<uint32, MemoryActivatedFont*> FontContainerRefMemoryFontHash;
44 typedef HashMap<WTF::String, MemoryActivatedFont*> FontNameMemoryFontHash; 44 typedef HashMap<WTF::String, MemoryActivatedFont*> FontNameMemoryFontHash;
45 45
46 // Caching: 46 // Caching:
47 // 47 //
48 // Requesting a font from the browser process is expensive and so is 48 // Requesting a font from the browser process is expensive and so is
49 // "activating" said font. Caching of loaded fonts is complicated by the fact 49 // "activating" said font. Caching of loaded fonts is complicated by the fact
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Need to add an extra retain so output semantics of this function 197 // Need to add an extra retain so output semantics of this function
198 // are consistent. 198 // are consistent.
199 CFRetain(cgFont); 199 CFRetain(cgFont);
200 } else { 200 } else {
201 // If we still can't load the font, set |outNSFont| to null so that FontPlatformData won't be used. 201 // If we still can't load the font, set |outNSFont| to null so that FontPlatformData won't be used.
202 outNSFont = 0; 202 outNSFont = 0;
203 } 203 }
204 } 204 }
205 } 205 }
206 206
207 } // namespace WebCore 207 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/mac/MemoryActivatedFont.h ('k') | Source/platform/fonts/mac/SimpleFontDataCoreText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698