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

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

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.cpp
diff --git a/Source/core/css/StyleSheetList.cpp b/Source/core/css/StyleSheetList.cpp
index 10f5905ba4e8c1901c991d69e8419a337541515c..068c822f487fc3833aa69f0558101089abc016a0 100644
--- a/Source/core/css/StyleSheetList.cpp
+++ b/Source/core/css/StyleSheetList.cpp
@@ -44,12 +44,12 @@ inline const Vector<RefPtr<StyleSheet> >& StyleSheetList::styleSheets()
{
if (!m_treeScope)
return m_detachedStyleSheets;
- return document()->styleEngine()->styleSheetsForStyleSheetList(*m_treeScope);
+ return document().styleEngine()->styleSheetsForStyleSheetList(*m_treeScope);
}
void StyleSheetList::detachFromDocument()
{
- m_detachedStyleSheets = document()->styleEngine()->styleSheetsForStyleSheetList(*m_treeScope);
+ m_detachedStyleSheets = document().styleEngine()->styleSheetsForStyleSheetList(*m_treeScope);
m_treeScope = 0;
}

Powered by Google App Engine
This is Rietveld 408576698