| 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 a6c36d712a0bff05614d86ea4e8861d9fae9ea4f..e5761255ebd4a0fbf6be81dce35e92afd8b39022 100644
|
| --- a/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.cpp
|
| @@ -17,17 +17,12 @@ namespace blink {
|
|
|
| IntersectionObservation::IntersectionObservation(IntersectionObserver& observer, Element& target, bool shouldReportRootBounds)
|
| : m_observer(observer)
|
| - , m_target(target.ensureIntersectionObserverData().createWeakPtr(&target))
|
| + , m_target(&target)
|
| , m_shouldReportRootBounds(shouldReportRootBounds)
|
| , m_lastThresholdIndex(0)
|
| {
|
| }
|
|
|
| -Element* IntersectionObservation::target() const
|
| -{
|
| - return toElement(m_target.get());
|
| -}
|
| -
|
| void IntersectionObservation::applyRootMargin(LayoutRect& rect) const
|
| {
|
| if (m_shouldReportRootBounds)
|
|
|