| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 CSSFontSelector* fontSelector() const { return m_fontSelector; } | 50 CSSFontSelector* fontSelector() const { return m_fontSelector; } |
| 51 FontTraitsMask traitsMask() const { return m_traitsMask; } | 51 FontTraitsMask traitsMask() const { return m_traitsMask; } |
| 52 bool isLocalFallback() const { return m_isLocalFallback; } | 52 bool isLocalFallback() const { return m_isLocalFallback; } |
| 53 | 53 |
| 54 void fontLoaded(CSSFontFace*); | 54 void fontLoaded(CSSFontFace*); |
| 55 | 55 |
| 56 void appendFontFace(PassRefPtr<CSSFontFace>); | 56 void appendFontFace(PassRefPtr<CSSFontFace>); |
| 57 | 57 |
| 58 PassRefPtr<FontData> getFontData(const FontDescription&); | 58 PassRefPtr<FontData> getFontData(const FontDescription&); |
| 59 | 59 |
| 60 #if ENABLE(SVG_FONTS) | |
| 61 bool hasSVGFontFaceSource() const; | |
| 62 #endif | |
| 63 | |
| 64 class LoadFontCallback : public RefCounted<LoadFontCallback> { | 60 class LoadFontCallback : public RefCounted<LoadFontCallback> { |
| 65 public: | 61 public: |
| 66 virtual ~LoadFontCallback() { } | 62 virtual ~LoadFontCallback() { } |
| 67 virtual void notifyLoaded(CSSSegmentedFontFace*) = 0; | 63 virtual void notifyLoaded(CSSSegmentedFontFace*) = 0; |
| 68 virtual void notifyError(CSSSegmentedFontFace*) = 0; | 64 virtual void notifyError(CSSSegmentedFontFace*) = 0; |
| 69 }; | 65 }; |
| 70 | 66 |
| 71 bool checkFont(const String&) const; | 67 bool checkFont(const String&) const; |
| 72 void loadFont(const FontDescription&, const String&, PassRefPtr<LoadFontCall
back>); | 68 void loadFont(const FontDescription&, const String&, PassRefPtr<LoadFontCall
back>); |
| 73 Vector<RefPtr<FontFace> > fontFaces(const String& text) const; | 69 Vector<RefPtr<FontFace> > fontFaces(const String& text) const; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 85 FontTraitsMask m_traitsMask; | 81 FontTraitsMask m_traitsMask; |
| 86 bool m_isLocalFallback; | 82 bool m_isLocalFallback; |
| 87 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable; | 83 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable; |
| 88 Vector<RefPtr<CSSFontFace>, 1> m_fontFaces; | 84 Vector<RefPtr<CSSFontFace>, 1> m_fontFaces; |
| 89 Vector<RefPtr<LoadFontCallback> > m_callbacks; | 85 Vector<RefPtr<LoadFontCallback> > m_callbacks; |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 } // namespace WebCore | 88 } // namespace WebCore |
| 93 | 89 |
| 94 #endif // CSSSegmentedFontFace_h | 90 #endif // CSSSegmentedFontFace_h |
| OLD | NEW |