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 1511a2a4692f30115cb919e2926ffec36c2b95c1..a3d358b03ec9196530d3394f1c6c944ee88d0884 100644 |
--- a/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp |
+++ b/third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp |
@@ -8,10 +8,10 @@ |
namespace blink { |
-IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect& boundingClientRect, const IntRect& rootBounds, const IntRect& intersectionRect, Element* target) |
+IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect& boundingClientRect, const IntRect* rootBounds, const IntRect& intersectionRect, Element* target) |
: m_time(time) |
, m_boundingClientRect(ClientRect::create(boundingClientRect)) |
- , m_rootBounds(ClientRect::create(rootBounds)) |
+ , m_rootBounds(rootBounds ? ClientRect::create(*rootBounds) : nullptr) |
, m_intersectionRect(ClientRect::create(intersectionRect)) |
, m_target(target) |