Index: third_party/WebKit/Source/core/dom/IntersectionObserver.cpp |
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp |
index 09e1dc56fbee1336102c78cb58183102b4c46a70..bb69ebb03c1e0c746a8d602ef7b8391fd2812806 100644 |
--- a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp |
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp |
@@ -270,11 +270,8 @@ void IntersectionObserver::observe(Element* target, |
isDOMDescendant = (targetFrame->tree().top() == rootFrame); |
} |
- IntersectionObservation* observation = new IntersectionObservation( |
- *this, *target, |
- shouldReportRootBounds |
- ? IntersectionGeometry::ReportRootBounds::kShouldReportRootBounds |
- : IntersectionGeometry::ReportRootBounds::kShouldNotReportRootBounds); |
+ IntersectionObservation* observation = |
+ new IntersectionObservation(*this, *target, shouldReportRootBounds); |
target->ensureIntersectionObserverData().addObservation(*observation); |
m_observations.add(observation); |