| 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);
|
|
|