| 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 7509dcf7051d0c111c615918360c489eed7e098e..260f68bfba19a1ad02566475ce31d43ef27a4aa7 100644
|
| --- a/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/IntersectionObserver.cpp
|
| @@ -345,6 +345,12 @@ void IntersectionObserver::removeObservation(
|
| m_observations.remove(&observation);
|
| }
|
|
|
| +void IntersectionObserver::setInitialState(InitialState initialState) {
|
| + DCHECK_EQ(initialState, InitialState::AUTO);
|
| + for (auto& observation : observations())
|
| + observation->setLastThresholdIndex(std::numeric_limits<unsigned>::max());
|
| +}
|
| +
|
| HeapVector<Member<IntersectionObserverEntry>> IntersectionObserver::takeRecords(
|
| ExceptionState& exceptionState) {
|
| HeapVector<Member<IntersectionObserverEntry>> entries;
|
|
|