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

Unified Diff: third_party/WebKit/Source/core/dom/IntersectionObservation.cpp

Issue 1870963002: Clean up CompositorPendingAnimations inclusion. (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 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)

Powered by Google App Engine
This is Rietveld 408576698