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

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: Reverted hasAnyFontFaceRule Created 7 years, 1 month 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/StyleEngine.h
diff --git a/Source/core/dom/StyleEngine.h b/Source/core/dom/StyleEngine.h
index d3b701ad41b3b8919c9de26a6d539db9f49f6649..ad949e74b0bca32435bf46876cb3297132c76c87 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -161,7 +161,9 @@ public:
bool hasResolver() const { return m_resolver.get(); }
void clearResolver();
- CSSFontSelector* fontSelector();
+ CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
+ void resetFontSelector();
+
void didAttach();
void didDetach();
bool shouldClearResolver() const;
@@ -218,6 +220,8 @@ private:
unsigned m_lastResolverAccessCount;
Timer<StyleEngine> m_resolverThrowawayTimer;
OwnPtr<StyleResolver> m_resolver;
+
+ RefPtr<CSSFontSelector> m_fontSelector;
};
}

Powered by Google App Engine
This is Rietveld 408576698