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

Unified Diff: Source/core/layout/LayoutView.cpp

Issue 1330633003: Intersection Observer first draft Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Include new files as well. Created 5 years, 3 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: Source/core/layout/LayoutView.cpp
diff --git a/Source/core/layout/LayoutView.cpp b/Source/core/layout/LayoutView.cpp
index 6d382e74a7b20b63b47724a53c4b8287df0b300c..4749e1effc9f53dcc228c3ebe3c6367d65d14959 100644
--- a/Source/core/layout/LayoutView.cpp
+++ b/Source/core/layout/LayoutView.cpp
@@ -1012,4 +1012,14 @@ void LayoutView::willBeDestroyed()
m_compositor.clear();
}
+void LayoutView::addIntersectionObserverTarget(LayoutObject* obj)
+{
+ m_intersectionObserverTargets.add(obj, IntRect());
+}
+
+void LayoutView::removeIntersectionObserverTarget(LayoutObject* obj)
+{
+ m_intersectionObserverTargets.remove(obj);
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698