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

Side by Side Diff: sky/engine/core/css/RemoteFontFaceSource.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « sky/engine/core/css/RemoteFontFaceSource.h ('k') | sky/engine/core/css/RuleFeature.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "sky/engine/config.h"
6 #include "core/css/RemoteFontFaceSource.h" 6 #include "sky/engine/core/css/RemoteFontFaceSource.h"
7 7
8 #include "core/css/CSSCustomFontData.h" 8 #include "sky/engine/core/css/CSSCustomFontData.h"
9 #include "core/css/CSSFontFace.h" 9 #include "sky/engine/core/css/CSSFontFace.h"
10 #include "core/css/FontLoader.h" 10 #include "sky/engine/core/css/FontLoader.h"
11 #include "platform/fonts/FontCache.h" 11 #include "sky/engine/platform/fonts/FontCache.h"
12 #include "platform/fonts/FontDescription.h" 12 #include "sky/engine/platform/fonts/FontDescription.h"
13 #include "platform/fonts/SimpleFontData.h" 13 #include "sky/engine/platform/fonts/SimpleFontData.h"
14 #include "public/platform/Platform.h" 14 #include "sky/engine/public/platform/Platform.h"
15 #include "wtf/CurrentTime.h" 15 #include "sky/engine/wtf/CurrentTime.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 RemoteFontFaceSource::RemoteFontFaceSource(FontResource* font, PassRefPtr<FontLo ader> fontLoader) 19 RemoteFontFaceSource::RemoteFontFaceSource(FontResource* font, PassRefPtr<FontLo ader> fontLoader)
20 : m_font(font) 20 : m_font(font)
21 , m_fontLoader(fontLoader) 21 , m_fontLoader(fontLoader)
22 { 22 {
23 m_font->addClient(this); 23 m_font->addClient(this);
24 } 24 }
25 25
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (size < 50 * 1024) 182 if (size < 50 * 1024)
183 return "WebFont.DownloadTime.1.10KBTo50KB"; 183 return "WebFont.DownloadTime.1.10KBTo50KB";
184 if (size < 100 * 1024) 184 if (size < 100 * 1024)
185 return "WebFont.DownloadTime.2.50KBTo100KB"; 185 return "WebFont.DownloadTime.2.50KBTo100KB";
186 if (size < 1024 * 1024) 186 if (size < 1024 * 1024)
187 return "WebFont.DownloadTime.3.100KBTo1MB"; 187 return "WebFont.DownloadTime.3.100KBTo1MB";
188 return "WebFont.DownloadTime.4.Over1MB"; 188 return "WebFont.DownloadTime.4.Over1MB";
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/RemoteFontFaceSource.h ('k') | sky/engine/core/css/RuleFeature.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698