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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObservation.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/dom/IntersectionObservation.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
index 0667ca6c8cac1e265b30e29ec07aba64b6fe725c..34e528b3b85ea5691089a591bbec565ce02ff35a 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
@@ -147,11 +147,11 @@ bool IntersectionObservation::computeGeometry(IntersectionGeometry& geometry) co
Element* targetElement = target();
if (!targetElement)
return false;
- if (!targetElement->inShadowIncludingDocument())
+ if (!targetElement->isConnected())
return true;
DCHECK(m_observer);
Element* rootElement = m_observer->root();
- if (rootElement && !rootElement->inShadowIncludingDocument())
+ if (rootElement && !rootElement->isConnected())
return true;
LayoutObject* rootLayoutObject = m_observer->rootLayoutObject();
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/dom/LayoutTreeBuilderTraversal.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698