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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 if (callback) { | 187 if (callback) { |
188 if (isLoading()) | 188 if (isLoading()) |
189 m_callbacks.append(callback); | 189 m_callbacks.append(callback); |
190 else if (checkFont()) | 190 else if (checkFont()) |
191 callback->notifyLoaded(this); | 191 callback->notifyLoaded(this); |
192 else | 192 else |
193 callback->notifyError(this); | 193 callback->notifyError(this); |
194 } | 194 } |
195 } | 195 } |
196 | 196 |
| 197 Vector<RefPtr<FontFace> > CSSSegmentedFontFace::fontFaces() const |
| 198 { |
| 199 Vector<RefPtr<FontFace> > fontFaces; |
| 200 unsigned size = m_fontFaces.size(); |
| 201 for (unsigned i = 0; i < size; i++) { |
| 202 RefPtr<FontFace> face = m_fontFaces[i]->fontFace(); |
| 203 if (face) |
| 204 fontFaces.append(face); |
| 205 } |
| 206 return fontFaces; |
197 } | 207 } |
| 208 |
| 209 } |
OLD | NEW |