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

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: Added FIXMEs 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') | no next file with comments »
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..d4e8108464e7e9b92f6809171d9b8b118adb0d21 100644
--- a/Source/core/css/StyleSheetList.h
+++ b/Source/core/css/StyleSheetList.h
@@ -43,7 +43,8 @@ public:
HTMLStyleElement* getNamedItem(const AtomicString&) const;
- Document* document() { return m_treeScope->documentScope(); }
+ // FIXME: Should return a reference.
+ Document* document() { return &m_treeScope->documentScope(); }
void detachFromDocument();
CSSStyleSheet* anonymousNamedGetter(const AtomicString&);
« no previous file with comments | « no previous file | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698