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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2354773003: Make stylesheet owner node a reference instead of pointer. (Closed)
Patch Set: const Created 4 years, 3 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: third_party/WebKit/Source/core/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 6be3a6b8ba5951190e39416a9049464853dfb749..81b7506aacb69374c484d96cf99ae1178d816a94 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2979,7 +2979,7 @@ void Document::updateBaseURL()
if (m_elemSheet) {
// Element sheet is silly. It never contains anything.
DCHECK(!m_elemSheet->contents()->ruleCount());
- m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL);
+ m_elemSheet = CSSStyleSheet::createInline(*this, m_baseURL);
}
if (!equalIgnoringFragmentIdentifier(oldBaseURL, m_baseURL)) {
@@ -3094,7 +3094,7 @@ void Document::executeScriptsWaitingForResources()
CSSStyleSheet& Document::elementSheet()
{
if (!m_elemSheet)
- m_elemSheet = CSSStyleSheet::createInline(this, m_baseURL);
+ m_elemSheet = CSSStyleSheet::createInline(*this, m_baseURL);
return *m_elemSheet;
}
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSTestHelper.cpp ('k') | third_party/WebKit/Source/core/dom/ProcessingInstruction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698