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

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

Issue 1889053002: IntersectionObserver: notify when root or target is removed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@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.h
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObservation.h b/third_party/WebKit/Source/core/dom/IntersectionObservation.h
index 0f66723b1eaaf39b75e6a3b52a2fe92eeb39f852..259dfe6f5b7e15b26a809f20081e0d76df0068d9 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObservation.h
+++ b/third_party/WebKit/Source/core/dom/IntersectionObservation.h
@@ -23,6 +23,8 @@ public:
LayoutRect intersectionRect;
LayoutRect rootRect;
bool doesIntersect;
+
+ IntersectionGeometry() : doesIntersect(false) {}
};
IntersectionObserver& observer() const { return *m_observer; }

Powered by Google App Engine
This is Rietveld 408576698