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

Side by Side Diff: Source/core/css/CSSFontFace.cpp

Issue 15387004: Remove some unused includes from core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: Created 7 years, 7 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
« no previous file with comments | « Source/core/css/CSSDefaultStyleSheets.cpp ('k') | Source/core/css/CSSFontFaceSource.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008, 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 14 matching lines...) Expand all
25 25
26 #include "config.h" 26 #include "config.h"
27 #include "core/css/CSSFontFace.h" 27 #include "core/css/CSSFontFace.h"
28 28
29 #include "core/css/CSSFontFaceSource.h" 29 #include "core/css/CSSFontFaceSource.h"
30 #include "core/css/CSSFontSelector.h" 30 #include "core/css/CSSFontSelector.h"
31 #include "core/css/CSSSegmentedFontFace.h" 31 #include "core/css/CSSSegmentedFontFace.h"
32 #include "core/css/FontLoader.h" 32 #include "core/css/FontLoader.h"
33 #include "core/dom/Document.h" 33 #include "core/dom/Document.h"
34 #include "RuntimeEnabledFeatures.h" 34 #include "RuntimeEnabledFeatures.h"
35 #include "core/platform/graphics/FontDescription.h"
36 #include "core/platform/graphics/SimpleFontData.h" 35 #include "core/platform/graphics/SimpleFontData.h"
37 36
38 namespace WebCore { 37 namespace WebCore {
39 38
40 bool CSSFontFace::isLoaded() const 39 bool CSSFontFace::isLoaded() const
41 { 40 {
42 size_t size = m_sources.size(); 41 size_t size = m_sources.size();
43 for (size_t i = 0; i < size; i++) { 42 for (size_t i = 0; i < size; i++) {
44 if (!m_sources[i]->isLoaded()) 43 if (!m_sources[i]->isLoaded())
45 return false; 44 return false;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 size_t size = m_sources.size(); 156 size_t size = m_sources.size();
158 for (size_t i = 0; i < size; i++) { 157 for (size_t i = 0; i < size; i++) {
159 if (m_sources[i]->isSVGFontFaceSource()) 158 if (m_sources[i]->isSVGFontFaceSource())
160 return true; 159 return true;
161 } 160 }
162 return false; 161 return false;
163 } 162 }
164 #endif 163 #endif
165 164
166 } 165 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSDefaultStyleSheets.cpp ('k') | Source/core/css/CSSFontFaceSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698