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

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

Issue 1879323003: Add IntersectionObserverEntry.intersectionRatio attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@2704
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/IntersectionObserverEntry.cpp
diff --git a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
index 63588680ace2be270e24a6a25775bf4aa66d1d0f..758564db910585e55c0c1c18fa95a6f6def9e4c5 100644
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp
@@ -8,8 +8,9 @@
namespace blink {
-IntersectionObserverEntry::IntersectionObserverEntry(DOMHighResTimeStamp time, const IntRect& boundingClientRect, const IntRect* rootBounds, const IntRect& intersectionRect, Element* target)
+IntersectionObserverEntry::IntersectionObserverEntry(DOMHighResTimeStamp time, double intersectionRatio, const IntRect& boundingClientRect, const IntRect* rootBounds, const IntRect& intersectionRect, Element* target)
: m_time(time)
+ , m_intersectionRatio(intersectionRatio)
, m_boundingClientRect(ClientRect::create(boundingClientRect))
, m_rootBounds(rootBounds ? ClientRect::create(*rootBounds) : nullptr)
, m_intersectionRect(ClientRect::create(intersectionRect))

Powered by Google App Engine
This is Rietveld 408576698