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

Unified Diff: Source/core/dom/StyleSheetCollection.h

Issue 82583005: Use removeFontFace to avoid resetting fontSelector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added 2 layout tests Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/dom/StyleSheetCollection.h
diff --git a/Source/core/dom/StyleSheetCollection.h b/Source/core/dom/StyleSheetCollection.h
index 9c9023355ab0cefdf9a7596df7b225c655ea92e7..6571b7b63b692a78b6fe760d9bdc8722a8038f22 100644
--- a/Source/core/dom/StyleSheetCollection.h
+++ b/Source/core/dom/StyleSheetCollection.h
@@ -48,6 +48,7 @@ class Node;
class StyleSheet;
class StyleSheetContents;
class StyleSheetList;
+class StyleRuleFontFace;
// FIXME: Should be in separate file and be renamed like:
// - StyleSheetCollectionBase -> StyleSheetCollection
@@ -98,13 +99,13 @@ protected:
enum StyleResolverUpdateType {
Reconstruct,
Reset,
- Additive,
- ResetStyleResolverAndFontSelector
+ Additive
};
struct StyleSheetChange {
StyleResolverUpdateType styleResolverUpdateType;
bool requiresFullStyleRecalc;
+ Vector<const StyleRuleFontFace*> fontFaceRulesToRemove;
StyleSheetChange()
: styleResolverUpdateType(Reconstruct)

Powered by Google App Engine
This is Rietveld 408576698