class RuleFeatureSet;
class ShadowTreeStyleSheetCollection;
class StyleResolver;
+class StyleRuleFontFace;
class StyleSheet;
class StyleSheetCollection;
class StyleSheetContents;
void clearMasterResolver();
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
- void resetFontSelector();
+ void removeFontFaceRules(const Vector<const StyleRuleFontFace*>&);
+ void clearFontCache();
+ // updateGenericFontFamilySettings is used from WebSettingsImpl.
+ void updateGenericFontFamilySettings();
- void didAttach();
void didDetach();
bool shouldClearResolver() const;
StyleResolverChange resolverChanged(RecalcStyleTime, StyleResolverUpdateMode);
private:
StyleEngine(Document&);
- StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
- StyleSheetCollection* styleSheetCollectionFor(TreeScope&);
+ TreeScopeStyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
+ TreeScopeStyleSheetCollection* styleSheetCollectionFor(TreeScope&);
bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
- void resolverThrowawayTimerFired(Timer<StyleEngine>*);
void markTreeScopeDirty(TreeScope&);
Vector<RefPtr<CSSStyleSheet> > m_authorStyleSheets;
DocumentStyleSheetCollection m_documentStyleSheetCollection;
- HashMap<TreeScope*, OwnPtr<StyleSheetCollection> > m_styleSheetCollectionMap;
+ HashMap<TreeScope*, OwnPtr<TreeScopeStyleSheetCollection> > m_styleSheetCollectionMap;
bool m_documentScopeDirty;
TreeScopeSet m_dirtyTreeScopes;
bool m_ignorePendingStylesheets;
bool m_didCalculateResolver;
- unsigned m_lastResolverAccessCount;
- Timer<StyleEngine> m_resolverThrowawayTimer;
OwnPtr<StyleResolver> m_resolver;
RefPtr<CSSFontSelector> m_fontSelector;