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

Unified Diff: third_party/WebKit/Source/core/html/imports/LinkImport.cpp

Issue 1858163002: Rename inDocument() to inShadowIncludingDocument() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 8 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/html/imports/LinkImport.cpp
diff --git a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
index 035c112945d74874f44d62175bded39cf4759651..e4d49b5762633c1ce9b59847f0195e18ad33a359 100644
--- a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
+++ b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
@@ -62,7 +62,7 @@ LinkImport::~LinkImport()
Document* LinkImport::importedDocument() const
{
- if (!m_child || !m_owner || !m_owner->inDocument())
+ if (!m_child || !m_owner || !m_owner->inShadowIncludingDocument())
return nullptr;
if (m_child->loader()->hasError())
return nullptr;
@@ -101,7 +101,7 @@ void LinkImport::process()
void LinkImport::didFinish()
{
- if (!m_owner || !m_owner->inDocument())
+ if (!m_owner || !m_owner->inShadowIncludingDocument())
return;
m_owner->scheduleEvent();
}

Powered by Google App Engine
This is Rietveld 408576698