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

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

Issue 846183002: Remove tracking of pending sheets. (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 ed17f6fe89fbb300e9abb0912acf2f8fec4f639e..dedc91eb742440a32754e2d2b96cf320e940c907 100644
--- a/sky/engine/core/dom/StyleEngine.h
+++ b/sky/engine/core/dom/StyleEngine.h
@@ -62,25 +62,7 @@ public:
// FIXME(sky): Remove this and ::first-line.
bool usesFirstLineRules() const { return false; }
- void appendActiveAuthorStyleSheets();
-
- StyleResolver* resolver() const
- {
- return m_resolver.get();
- }
-
- StyleResolver& ensureResolver()
- {
- if (!m_resolver) {
- createResolver();
- } else if (m_resolver->hasPendingAuthorStyleSheets()) {
- m_resolver->appendPendingAuthorStyleSheets();
- }
- return *m_resolver.get();
- }
-
- bool hasResolver() const { return m_resolver.get(); }
- void clearResolver();
+ StyleResolver& resolver() { return *m_resolver; }
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
void clearFontCache();
@@ -101,7 +83,6 @@ private:
explicit StyleEngine(Document&);
void updateActiveStyleSheets();
- void createResolver();
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