| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 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 19 matching lines...) Expand all Loading... |
| 30 #include "core/css/CSSFontFaceSource.h" | 30 #include "core/css/CSSFontFaceSource.h" |
| 31 #include "core/css/CSSFontSelector.h" | 31 #include "core/css/CSSFontSelector.h" |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "RuntimeEnabledFeatures.h" | 33 #include "RuntimeEnabledFeatures.h" |
| 34 #include "core/platform/graphics/FontDescription.h" | 34 #include "core/platform/graphics/FontDescription.h" |
| 35 #include "core/platform/graphics/SegmentedFontData.h" | 35 #include "core/platform/graphics/SegmentedFontData.h" |
| 36 #include "core/platform/graphics/SimpleFontData.h" | 36 #include "core/platform/graphics/SimpleFontData.h" |
| 37 | 37 |
| 38 namespace WebCore { | 38 namespace WebCore { |
| 39 | 39 |
| 40 DEFINE_GC_TYPE_MARKER(CSSSegmentedFontFace); |
| 41 |
| 40 CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector) | 42 CSSSegmentedFontFace::CSSSegmentedFontFace(CSSFontSelector* fontSelector) |
| 41 : m_fontSelector(fontSelector) | 43 : m_fontSelector(fontSelector) |
| 42 { | 44 { |
| 43 } | 45 } |
| 44 | 46 |
| 45 CSSSegmentedFontFace::~CSSSegmentedFontFace() | 47 CSSSegmentedFontFace::~CSSSegmentedFontFace() |
| 46 { | 48 { |
| 47 pruneTable(); | 49 pruneTable(); |
| 48 unsigned size = m_fontFaces.size(); | 50 unsigned size = m_fontFaces.size(); |
| 49 for (unsigned i = 0; i < size; i++) | 51 for (unsigned i = 0; i < size; i++) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 if (isLoading()) | 177 if (isLoading()) |
| 176 m_callbacks.append(callback); | 178 m_callbacks.append(callback); |
| 177 else if (checkFont()) | 179 else if (checkFont()) |
| 178 callback->notifyLoaded(this); | 180 callback->notifyLoaded(this); |
| 179 else | 181 else |
| 180 callback->notifyError(this); | 182 callback->notifyError(this); |
| 181 } | 183 } |
| 182 } | 184 } |
| 183 | 185 |
| 184 } | 186 } |
| OLD | NEW |