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

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

Issue 815653002: Remove global list map of TreeScope to StyleSheetCollection. (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/StyleEngine.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/dom/TreeScope.h
diff --git a/sky/engine/core/dom/TreeScope.h b/sky/engine/core/dom/TreeScope.h
index 93adc1b448b276be3bed1623b498ee8e6524bfdb..dc9a95cb7ad4f12e336ed61ba20b112929fcbcd4 100644
--- a/sky/engine/core/dom/TreeScope.h
+++ b/sky/engine/core/dom/TreeScope.h
@@ -40,6 +40,7 @@ class Element;
class HitTestResult;
class Node;
class ScopedStyleResolver;
+class StyleSheetCollection;
// A class which inherits both Node and TreeScope must call clearRareData() in its destructor
// so that the Node destructor no longer does problematic NodeList cache manipulation in
@@ -114,6 +115,7 @@ public:
Element* getElementByAccessKey(const String& key) const;
ScopedStyleResolver& scopedStyleResolver() const { return *m_scopedStyleResolver; }
+ StyleSheetCollection& styleSheets() const { return *m_styleSheets; }
protected:
TreeScope(ContainerNode&, Document&);
@@ -155,6 +157,7 @@ private:
RawPtr<TreeScope> m_parentTreeScope;
OwnPtr<ScopedStyleResolver> m_scopedStyleResolver;
+ OwnPtr<StyleSheetCollection> m_styleSheets;
OwnPtr<DocumentOrderedMap> m_elementsById;
OwnPtr<DocumentOrderedMap> m_imageMapsByName;
« no previous file with comments | « sky/engine/core/dom/StyleEngine.cpp ('k') | sky/engine/core/dom/TreeScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698