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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObservation.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/dom/IntersectionObservation.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
index 3ecc33a06cf37b147278116d2405c2a978276fee..454cbe00e5105a1334ec5dc6c61e861b52b31c38 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
@@ -151,7 +151,7 @@ bool IntersectionObservation::computeGeometry(IntersectionGeometry& geometry) co
// the IntersectionObservation alive). During that interval, we need to check that m_target
// hasn't been cleared.
Element* targetElement = target();
- if (!targetElement || !targetElement->inDocument())
+ if (!targetElement || !targetElement->inShadowIncludingDocument())
return false;
LayoutObject* targetLayoutObject = targetElement->layoutObject();
ASSERT(m_observer);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Fullscreen.cpp ('k') | third_party/WebKit/Source/core/dom/IntersectionObserver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698