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

Unified Diff: Source/core/dom/StyleSheetCollection.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
Index: Source/core/dom/StyleSheetCollection.h
diff --git a/Source/core/dom/StyleSheetCollection.h b/Source/core/dom/StyleSheetCollection.h
index 9c9023355ab0cefdf9a7596df7b225c655ea92e7..a8d6efca72d54484c0e03c5f24d95afceff18482 100644
--- a/Source/core/dom/StyleSheetCollection.h
+++ b/Source/core/dom/StyleSheetCollection.h
@@ -93,7 +93,7 @@ public:
protected:
explicit StyleSheetCollection(TreeScope&);
- 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.
enum StyleResolverUpdateType {
Reconstruct,

Powered by Google App Engine
This is Rietveld 408576698