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

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

Issue 87503003: Moving fontSelector from StyleResolver to StyleEngine. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index 365cbc0de9be8ec9eeb47ebc91e5d1288c58e5e6..36c4b9d4bbbd48f888c77488994011240bd60e8d 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -163,7 +163,9 @@ public:
void clearResolver();
void clearMasterResolver();
- CSSFontSelector* fontSelector();
+ CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
+ void resetFontSelector();
+
void didAttach();
void didDetach();
bool shouldClearResolver() const;
@@ -231,6 +233,8 @@ private:
unsigned m_lastResolverAccessCount;
Timer<StyleEngine> m_resolverThrowawayTimer;
OwnPtr<StyleResolver> m_resolver;
+
+ RefPtr<CSSFontSelector> m_fontSelector;
};
}
« no previous file with comments | « Source/core/dom/DocumentStyleSheetCollection.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698