| 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 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> | 3 * (C) 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 void CSSFontSelector::fontCacheInvalidated() | 149 void CSSFontSelector::fontCacheInvalidated() |
| 150 { | 150 { |
| 151 dispatchInvalidationCallbacks(); | 151 dispatchInvalidationCallbacks(); |
| 152 } | 152 } |
| 153 | 153 |
| 154 void CSSFontSelector::addFontFaceRule(const StyleRuleFontFace* fontFaceRule) | 154 void CSSFontSelector::addFontFaceRule(const StyleRuleFontFace* fontFaceRule) |
| 155 { | 155 { |
| 156 m_cssSegmentedFontFaceCache.addFontFaceRule(this, fontFaceRule); | 156 m_cssSegmentedFontFaceCache.addFontFaceRule(this, fontFaceRule); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void CSSFontSelector::removeFontFaceRule(const StyleRuleFontFace* fontFaceRule) |
| 160 { |
| 161 m_cssSegmentedFontFaceCache.removeFontFaceRule(fontFaceRule); |
| 162 } |
| 163 |
| 159 PassRefPtr<FontData> CSSFontSelector::getFontData(const FontDescription& fontDes
cription, const AtomicString& familyName) | 164 PassRefPtr<FontData> CSSFontSelector::getFontData(const FontDescription& fontDes
cription, const AtomicString& familyName) |
| 160 { | 165 { |
| 161 if (!m_document || !m_document->frame()) | 166 if (!m_document || !m_document->frame()) |
| 162 return 0; | 167 return 0; |
| 163 | 168 |
| 164 return m_cssSegmentedFontFaceCache.getFontData(m_document->frame()->settings
(), fontDescription, familyName); | 169 return m_cssSegmentedFontFaceCache.getFontData(m_document->frame()->settings
(), fontDescription, familyName); |
| 165 } | 170 } |
| 166 | 171 |
| 167 CSSSegmentedFontFace* CSSFontSelector::getFontFace(const FontDescription& fontDe
scription, const AtomicString& familyName) | 172 CSSSegmentedFontFace* CSSFontSelector::getFontFace(const FontDescription& fontDe
scription, const AtomicString& familyName) |
| 168 { | 173 { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 186 { | 191 { |
| 187 m_fontLoader.addFontToBeginLoading(font); | 192 m_fontLoader.addFontToBeginLoading(font); |
| 188 } | 193 } |
| 189 | 194 |
| 190 void CSSFontSelector::loadPendingFonts() | 195 void CSSFontSelector::loadPendingFonts() |
| 191 { | 196 { |
| 192 m_fontLoader.loadPendingFonts(); | 197 m_fontLoader.loadPendingFonts(); |
| 193 } | 198 } |
| 194 | 199 |
| 195 } | 200 } |
| OLD | NEW |