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

Unified Diff: sky/engine/core/dom/StyleEngine.h

Issue 816423004: Remove some dead code. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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 | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/StyleEngine.h
diff --git a/sky/engine/core/dom/StyleEngine.h b/sky/engine/core/dom/StyleEngine.h
index dedc91eb742440a32754e2d2b96cf320e940c907..7410a247362a3e5b6718ef7e3c94c551c0c3994f 100644
--- a/sky/engine/core/dom/StyleEngine.h
+++ b/sky/engine/core/dom/StyleEngine.h
@@ -50,12 +50,13 @@ class StyleSheetContents;
class StyleEngine final : public CSSFontSelectorClient {
WTF_MAKE_FAST_ALLOCATED;
public:
- static PassOwnPtr<StyleEngine> create(Document& document) { return adoptPtr(new StyleEngine(document)); }
+ static PassOwnPtr<StyleEngine> create(Document& document)
+ {
+ return adoptPtr(new StyleEngine(document));
+ }
~StyleEngine();
- void detachFromDocument();
-
void addTreeScope(TreeScope&);
void removeTreeScope(TreeScope&);
@@ -65,12 +66,10 @@ public:
StyleResolver& resolver() { return *m_resolver; }
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
- void clearFontCache();
- // updateGenericFontFamilySettings is used from WebSettingsImpl.
+
void updateGenericFontFamilySettings();
void resolverChanged();
- unsigned resolverAccessCount() const;
PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text);
void removeSheet(StyleSheetContents*);
@@ -82,6 +81,9 @@ private:
private:
explicit StyleEngine(Document&);
+ // TODO(esprehn): Need to call this after @font-face rules load.
+ void clearFontCache();
+
void updateActiveStyleSheets();
RawPtr<Document> m_document;
« no previous file with comments | « sky/engine/core/dom/Document.cpp ('k') | sky/engine/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698