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

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

Issue 140653013: Have DOMImplementation::document() return reference. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Binding test added for [SetWrapperReferenceFrom] extended attribute. Created 6 years, 10 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/css/StyleSheetList.h
diff --git a/Source/core/css/StyleSheetList.h b/Source/core/css/StyleSheetList.h
index 9750565e646be405ebd403569ceb4e3fc8dbc28d..cb91d87631e36e1943873d541ce001246dfd9ea5 100644
--- a/Source/core/css/StyleSheetList.h
+++ b/Source/core/css/StyleSheetList.h
@@ -43,8 +43,7 @@ public:
HTMLStyleElement* getNamedItem(const AtomicString&) const;
- // FIXME: Should return a reference.
- Document* document() { return &m_treeScope->document(); }
+ Document& document() { return m_treeScope->document(); }
void detachFromDocument();
CSSStyleSheet* anonymousNamedGetter(const AtomicString&);

Powered by Google App Engine
This is Rietveld 408576698