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

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: 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 9222e00bfd13e2c773ae8b8f5c9e5084bd8ffc2a..ef5740b300218a885e18138e3023845329acb1d9 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
@@ -152,7 +152,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);

Powered by Google App Engine
This is Rietveld 408576698