OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2010, 2011 Apple Inc. All rights reserved. |
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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 13 matching lines...) Expand all Loading... |
24 */ | 24 */ |
25 | 25 |
26 #include "config.h" | 26 #include "config.h" |
27 #include "core/css/CSSFontFaceSource.h" | 27 #include "core/css/CSSFontFaceSource.h" |
28 | 28 |
29 #include "RuntimeEnabledFeatures.h" | 29 #include "RuntimeEnabledFeatures.h" |
30 #include "core/css/CSSFontFace.h" | 30 #include "core/css/CSSFontFace.h" |
31 #include "core/css/CSSFontSelector.h" | 31 #include "core/css/CSSFontSelector.h" |
32 #include "core/fetch/FontResource.h" | 32 #include "core/fetch/FontResource.h" |
33 #include "core/platform/graphics/FontCache.h" | 33 #include "core/platform/graphics/FontCache.h" |
34 #include "core/platform/graphics/FontDescription.h" | |
35 #include "core/platform/graphics/SimpleFontData.h" | 34 #include "core/platform/graphics/SimpleFontData.h" |
| 35 #include "platform/fonts/FontDescription.h" |
36 #include "public/platform/Platform.h" | 36 #include "public/platform/Platform.h" |
37 #include "wtf/CurrentTime.h" | 37 #include "wtf/CurrentTime.h" |
38 | 38 |
39 #if ENABLE(SVG_FONTS) | 39 #if ENABLE(SVG_FONTS) |
40 #include "SVGNames.h" | 40 #include "SVGNames.h" |
41 #include "core/svg/SVGFontData.h" | 41 #include "core/svg/SVGFontData.h" |
42 #include "core/svg/SVGFontElement.h" | 42 #include "core/svg/SVGFontElement.h" |
43 #include "core/svg/SVGFontFaceElement.h" | 43 #include "core/svg/SVGFontFaceElement.h" |
44 #endif | 44 #endif |
45 | 45 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 if (size < 50 * 1024) | 311 if (size < 50 * 1024) |
312 return "WebFont.DownloadTime.1.10KBTo50KB"; | 312 return "WebFont.DownloadTime.1.10KBTo50KB"; |
313 if (size < 100 * 1024) | 313 if (size < 100 * 1024) |
314 return "WebFont.DownloadTime.2.50KBTo100KB"; | 314 return "WebFont.DownloadTime.2.50KBTo100KB"; |
315 if (size < 1024 * 1024) | 315 if (size < 1024 * 1024) |
316 return "WebFont.DownloadTime.3.100KBTo1MB"; | 316 return "WebFont.DownloadTime.3.100KBTo1MB"; |
317 return "WebFont.DownloadTime.4.Over1MB"; | 317 return "WebFont.DownloadTime.4.Over1MB"; |
318 } | 318 } |
319 | 319 |
320 } | 320 } |
OLD | NEW |