OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "core/dom/IntersectionObserverEntry.h" |
| 6 |
| 7 #include "core/dom/Element.h" |
| 8 |
| 9 namespace blink { |
| 10 |
| 11 IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect&
boundingClientRect, const IntRect& rootBounds, const IntRect& intersectionRect,
Element* target) |
| 12 : m_time(time) |
| 13 , m_boundingClientRect(ClientRect::create(boundingClientRect)) |
| 14 , m_rootBounds(ClientRect::create(rootBounds)) |
| 15 , m_intersectionRect(ClientRect::create(intersectionRect)) |
| 16 , m_target(target) |
| 17 |
| 18 { |
| 19 } |
| 20 |
| 21 IntersectionObserverEntry::~IntersectionObserverEntry() |
| 22 { |
| 23 } |
| 24 |
| 25 DEFINE_TRACE(IntersectionObserverEntry) |
| 26 { |
| 27 visitor->trace(m_boundingClientRect); |
| 28 visitor->trace(m_rootBounds); |
| 29 visitor->trace(m_intersectionRect); |
| 30 visitor->trace(m_target); |
| 31 } |
| 32 |
| 33 } // namespace blink |
OLD | NEW |