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

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

Issue 23851003: Have StyleSheetCollections constructor take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Have StyleSheetCollection constructor take a Document reference as well Created 7 years, 4 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/dom/StyleSheetCollection.cpp ('k') | Source/core/dom/StyleSheetCollections.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/StyleSheetCollections.h
diff --git a/Source/core/dom/StyleSheetCollections.h b/Source/core/dom/StyleSheetCollections.h
index e934e51f56efdaa6066049d458f283dbf8191c57..998cf05a06e03241f9bc3b406ac344dfd91508a1 100644
--- a/Source/core/dom/StyleSheetCollections.h
+++ b/Source/core/dom/StyleSheetCollections.h
@@ -51,7 +51,7 @@ class StyleSheetList;
class StyleSheetCollections {
WTF_MAKE_FAST_ALLOCATED;
public:
- static PassOwnPtr<StyleSheetCollections> create(Document* document) { return adoptPtr(new StyleSheetCollections(document)); }
+ static PassOwnPtr<StyleSheetCollections> create(Document& document) { return adoptPtr(new StyleSheetCollections(document)); }
~StyleSheetCollections();
@@ -112,9 +112,9 @@ public:
void getActiveAuthorStyleSheets(Vector<const Vector<RefPtr<CSSStyleSheet> >*>& activeAuthorStyleSheets) const;
private:
- StyleSheetCollections(Document*);
+ StyleSheetCollections(Document&);
- StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope*);
+ StyleSheetCollection* ensureStyleSheetCollectionFor(TreeScope&);
StyleSheetCollection* styleSheetCollectionFor(TreeScope*);
void activeStyleSheetsUpdatedForInspector();
bool shouldUpdateShadowTreeStyleSheetCollection(StyleResolverUpdateMode);
@@ -122,7 +122,7 @@ private:
typedef ListHashSet<TreeScope*, 16> TreeScopeSet;
static void insertTreeScopeInDocumentOrder(TreeScopeSet&, TreeScope*);
- Document* m_document;
+ Document& m_document;
// Track the number of currently loading top-level stylesheets needed for rendering.
// Sheets loaded using the @import directive are not included in this count.
« no previous file with comments | « Source/core/dom/StyleSheetCollection.cpp ('k') | Source/core/dom/StyleSheetCollections.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698