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

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

Issue 304083003: Made StyleEngine CSSFontSelectorClient instead of StyleResolver. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months 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/css/resolver/StyleResolver.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 20118e6976d3218af49a947f6ca479e2fbef0d4e..2ba50625c4c94f0f25f361c9bc4deb618530fcbc 100644
--- a/Source/core/dom/StyleEngine.h
+++ b/Source/core/dom/StyleEngine.h
@@ -28,6 +28,7 @@
#ifndef StyleEngine_h
#define StyleEngine_h
+#include "core/css/CSSFontSelectorClient.h"
#include "core/css/resolver/StyleResolver.h"
#include "core/dom/Document.h"
#include "core/dom/DocumentOrderedList.h"
@@ -72,7 +73,7 @@ private:
bool m_needsStyleRecalc;
};
-class StyleEngine : public NoBaseWillBeGarbageCollectedFinalized<StyleEngine> {
+class StyleEngine FINAL : public CSSFontSelectorClient {
WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED;
public:
@@ -187,7 +188,11 @@ public:
PassRefPtrWillBeRawPtr<CSSStyleSheet> createSheet(Element*, const String& text, TextPosition startPosition, bool createdByParser);
void removeSheet(StyleSheetContents*);
- void trace(Visitor*);
+ virtual void trace(Visitor*) OVERRIDE;
+
+private:
+ // CSSFontSelectorClient implementation.
+ virtual void fontsNeedUpdate(CSSFontSelector*) OVERRIDE;
private:
StyleEngine(Document&);
« no previous file with comments | « Source/core/css/resolver/StyleResolver.cpp ('k') | Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698