Index: Source/core/dom/StyleSheetCollection.h |
diff --git a/Source/core/dom/StyleSheetCollection.h b/Source/core/dom/StyleSheetCollection.h |
index 6519617fb72a75a9580d9372c9b90afac3ab5812..fe5afd2ecb895ac60139ef6795e909bf7ca08742 100644 |
--- a/Source/core/dom/StyleSheetCollection.h |
+++ b/Source/core/dom/StyleSheetCollection.h |
@@ -75,9 +75,20 @@ protected: |
enum StyleResolverUpdateType { |
Reconstruct, |
Reset, |
- Additive |
+ Additive, |
+ ResetStyleResolverAndFontSelector |
}; |
- void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CSSStyleSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets, StyleResolverUpdateType&, bool& requiresFullStyleRecalc); |
+ |
+ struct StyleSheetChange { |
+ StyleResolverUpdateType styleResolverUpdateType; |
+ bool requiresFullStyleRecalc; |
+ |
+ StyleSheetChange() |
+ : styleResolverUpdateType(Reconstruct) |
+ , requiresFullStyleRecalc(true) { } |
+ }; |
+ |
+ void analyzeStyleSheetChange(StyleResolverUpdateMode, const Vector<RefPtr<CSSStyleSheet> >& oldStyleSheets, const Vector<RefPtr<CSSStyleSheet> >& newStylesheets, StyleSheetChange&); |
void resetAllRuleSetsInTreeScope(StyleResolver*); |
void updateUsesRemUnits(); |