| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |