Remove dead StyleEngine::removeFontFaceRules.

This existed to support the incremental stylesheet updates
(AnalyzedStyleUpdate) that sky doesn't support.

R=eseidel@google.com

Review URL: https://codereview.chromium.org/793933004
This commit is contained in:
Elliott Sprehn 2014-12-17 21:54:32 -08:00
parent de9440a990
commit 4e176ff90e
2 changed files with 0 additions and 10 deletions

View File

@ -171,15 +171,6 @@ void StyleEngine::updateGenericFontFamilySettings()
m_resolver->invalidateMatchedPropertiesCache();
}
void StyleEngine::removeFontFaceRules(const Vector<RawPtr<const StyleRuleFontFace> >& fontFaceRules)
{
FontFaceCache* cache = m_fontSelector->fontFaceCache();
for (unsigned i = 0; i < fontFaceRules.size(); ++i)
cache->remove(fontFaceRules[i]);
if (m_resolver)
m_resolver->invalidateMatchedPropertiesCache();
}
PassRefPtr<CSSStyleSheet> StyleEngine::createSheet(Element* e, const String& text)
{
RefPtr<CSSStyleSheet> styleSheet;

View File

@ -98,7 +98,6 @@ public:
void clearResolver();
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
void removeFontFaceRules(const Vector<RawPtr<const StyleRuleFontFace> >&);
void clearFontCache();
// updateGenericFontFamilySettings is used from WebSettingsImpl.
void updateGenericFontFamilySettings();