mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
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:
parent
de9440a990
commit
4e176ff90e
@ -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;
|
||||
|
||||
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user