OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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 "config.h" |
| 6 #include "core/dom/IntersectionObserverEntry.h" |
| 7 |
| 8 #include "core/dom/Element.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect&
boundingClientRect, const IntRect& rootBounds, const IntRect& intersectionRect,
Element* target) |
| 13 : m_time(time) |
| 14 , m_boundingClientRect(ClientRect::create(boundingClientRect)) |
| 15 , m_rootBounds(ClientRect::create(rootBounds)) |
| 16 , m_intersectionRect(ClientRect::create(intersectionRect)) |
| 17 , m_target(target) |
| 18 |
| 19 { |
| 20 } |
| 21 |
| 22 IntersectionObserverEntry::~IntersectionObserverEntry() |
| 23 { |
| 24 } |
| 25 |
| 26 DEFINE_TRACE(IntersectionObserverEntry) |
| 27 { |
| 28 visitor->trace(m_boundingClientRect); |
| 29 visitor->trace(m_rootBounds); |
| 30 visitor->trace(m_intersectionRect); |
| 31 visitor->trace(m_target); |
| 32 } |
| 33 |
| 34 } // namespace blink |
OLD | NEW |