Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Side by Side Diff: Source/core/css/CSSFontSelector.cpp

Issue 68933007: Add CSSFontSelector::removeFontFaceRule() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Avoid double hash lookups Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontSelector.h ('k') | Source/core/css/CSSSegmentedFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698