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

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

Issue 813493003: Only the main document should have a StyleEngine. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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 | « 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 e59a50ca19b1ddbad04e78742ab3c160e1fac232..9be10a3fe4082125e91671493b8d0ebbbdf867a4 100644
--- a/sky/engine/core/dom/StyleEngine.h
+++ b/sky/engine/core/dom/StyleEngine.h
@@ -68,9 +68,7 @@ public:
~StyleEngine();
-#if !ENABLE(OILPAN)
void detachFromDocument();
-#endif
const Vector<RefPtr<CSSStyleSheet>>& activeAuthorStyleSheetsFor(TreeScope&);
@@ -105,7 +103,6 @@ public:
bool hasResolver() const { return m_resolver.get(); }
void clearResolver();
- void clearMasterResolver();
CSSFontSelector* fontSelector() { return m_fontSelector.get(); }
void removeFontFaceRules(const Vector<RawPtr<const StyleRuleFontFace> >&);
@@ -117,8 +114,6 @@ public:
void resolverChanged();
unsigned resolverAccessCount() const;
- void markDocumentDirty();
-
PassRefPtr<CSSStyleSheet> createSheet(Element*, const String& text);
void removeSheet(StyleSheetContents*);
@@ -139,10 +134,6 @@ private:
void markTreeScopeDirty(TreeScope&);
- bool isMaster() const { return m_isMaster; }
- Document* master();
- Document& document() const { return *m_document; }
-
typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
@@ -159,7 +150,6 @@ private:
}
RawPtr<Document> m_document;
- bool m_isMaster;
// TODO(esprehn): Remove special separate collection for document.
OwnPtr<StyleSheetCollection> m_documentStyleSheetCollection;
@@ -169,7 +159,6 @@ private:
typedef HashSet<RawPtr<const ScopedStyleResolver> > ScopedStyleResolverSet;
ScopedStyleResolverSet m_scopedStyleResolvers;
- bool m_documentScopeDirty;
TreeScopeSet m_dirtyTreeScopes;
TreeScopeSet m_activeTreeScopes;
« 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