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

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

Issue 2645283008: IntersectionObserver: Always send an initial notification. (Closed)
Patch Set: Fix unit test Created 3 years, 11 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/ElementVisibilityObserver.cpp
diff --git a/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp b/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp
index 5267634777fdd0a43a6ca63686cfc57398bdf83f..98906203902e60a72e8e4c70c93262d392d47750 100644
--- a/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp
+++ b/third_party/WebKit/Source/core/dom/ElementVisibilityObserver.cpp
@@ -31,8 +31,6 @@ void ElementVisibilityObserver::start() {
wrapWeakPersistent(this)));
DCHECK(m_intersectionObserver);
- m_intersectionObserver->setInitialState(
- IntersectionObserver::InitialState::kAuto);
m_intersectionObserver->observe(m_element.release());
}

Powered by Google App Engine
This is Rietveld 408576698