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

Unified Diff: Source/core/css/StyleSheetList.h

Issue 112953007: Make TreeScope::documentScope() return a reference and ensure m_documentScope is never NULL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « no previous file | Source/core/dom/Document.h » ('j') | Source/core/dom/StyleSheetCollection.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/StyleSheetList.h
diff --git a/Source/core/css/StyleSheetList.h b/Source/core/css/StyleSheetList.h
index c9c15404729e68479144745f625b23fecf873654..3a018ac3e0e32551ceb55b6a883916f5e042b155 100644
--- a/Source/core/css/StyleSheetList.h
+++ b/Source/core/css/StyleSheetList.h
@@ -43,7 +43,7 @@ public:
HTMLStyleElement* getNamedItem(const AtomicString&) const;
- Document* document() { return m_treeScope->documentScope(); }
+ Document* document() { return &m_treeScope->documentScope(); }
esprehn 2014/01/07 01:06:09 FIXME: should return a reference?
adamk 2014/01/07 01:11:12 Done.
void detachFromDocument();
CSSStyleSheet* anonymousNamedGetter(const AtomicString&);
« no previous file with comments | « no previous file | Source/core/dom/Document.h » ('j') | Source/core/dom/StyleSheetCollection.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698