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

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

Issue 2149893003: Rename Node::inShadowIncludingDocument() to Node::isConnected() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 5 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 ca8fcb4f0c40e9dea10491779b67252d6dc2afd3..4d2b4c11e5897086b183962cb52a663b38ff4c37 100644
--- a/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
+++ b/third_party/WebKit/Source/core/html/imports/LinkImport.cpp
@@ -56,7 +56,7 @@ LinkImport::~LinkImport()
Document* LinkImport::importedDocument() const
{
- if (!m_child || !m_owner || !m_owner->inShadowIncludingDocument())
+ if (!m_child || !m_owner || !m_owner->isConnected())
return nullptr;
if (m_child->loader()->hasError())
return nullptr;
@@ -97,7 +97,7 @@ void LinkImport::process()
void LinkImport::didFinish()
{
- if (!m_owner || !m_owner->inShadowIncludingDocument())
+ if (!m_owner || !m_owner->isConnected())
return;
m_owner->scheduleEvent();
}

Powered by Google App Engine
This is Rietveld 408576698