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