| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 public: | 47 public: |
| 48 static PassRefPtr<CSSSegmentedFontFace> create(CSSFontSelector* selector, Fo
ntTraits traits) | 48 static PassRefPtr<CSSSegmentedFontFace> create(CSSFontSelector* selector, Fo
ntTraits traits) |
| 49 { | 49 { |
| 50 return adoptRef(new CSSSegmentedFontFace(selector, traits)); | 50 return adoptRef(new CSSSegmentedFontFace(selector, traits)); |
| 51 } | 51 } |
| 52 ~CSSSegmentedFontFace(); | 52 ~CSSSegmentedFontFace(); |
| 53 | 53 |
| 54 CSSFontSelector* fontSelector() const { return m_fontSelector; } | 54 CSSFontSelector* fontSelector() const { return m_fontSelector; } |
| 55 FontTraits traits() const { return m_traits; } | 55 FontTraits traits() const { return m_traits; } |
| 56 | 56 |
| 57 void fontLoaded(CSSFontFace*); | |
| 58 void fontLoadWaitLimitExceeded(CSSFontFace*); | |
| 59 | |
| 60 void addFontFace(PassRefPtr<FontFace>, bool cssConnected); | 57 void addFontFace(PassRefPtr<FontFace>, bool cssConnected); |
| 61 void removeFontFace(PassRefPtr<FontFace>); | 58 void removeFontFace(PassRefPtr<FontFace>); |
| 62 bool isEmpty() const { return m_fontFaces.isEmpty(); } | 59 bool isEmpty() const { return m_fontFaces.isEmpty(); } |
| 63 | 60 |
| 64 PassRefPtr<FontData> getFontData(const FontDescription&); | 61 PassRefPtr<FontData> getFontData(const FontDescription&); |
| 65 | 62 |
| 66 bool checkFont(const String&) const; | 63 bool checkFont(const String&) const; |
| 67 void match(const String&, Vector<RefPtr<FontFace> >&) const; | 64 void match(const String&, Vector<RefPtr<FontFace> >&) const; |
| 68 void willUseFontData(const FontDescription&, UChar32); | 65 void willUseFontData(const FontDescription&, UChar32); |
| 69 | 66 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 81 FontTraits m_traits; | 78 FontTraits m_traits; |
| 82 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable; | 79 HashMap<unsigned, RefPtr<SegmentedFontData> > m_fontDataTable; |
| 83 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. | 80 // All non-CSS-connected FontFaces are stored after the CSS-connected ones. |
| 84 FontFaceList m_fontFaces; | 81 FontFaceList m_fontFaces; |
| 85 FontFaceList::iterator m_firstNonCssConnectedFace; | 82 FontFaceList::iterator m_firstNonCssConnectedFace; |
| 86 }; | 83 }; |
| 87 | 84 |
| 88 } // namespace blink | 85 } // namespace blink |
| 89 | 86 |
| 90 #endif // SKY_ENGINE_CORE_CSS_CSSSEGMENTEDFONTFACE_H_ | 87 #endif // SKY_ENGINE_CORE_CSS_CSSSEGMENTEDFONTFACE_H_ |
| OLD | NEW |