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 PassRefPtrWillBeRawPtr<IntersectionObserverEntry> IntersectionObserverEntry::cre
ate(double time, const IntRect& boundingClientRect, const IntRect& rootBounds, c
onst IntRect& intersectionRect, Element* target) |
| 13 { |
| 14 return adoptRefWillBeNoop(new IntersectionObserverEntry(time, boundingClient
Rect, rootBounds, intersectionRect, target)); |
| 15 } |
| 16 |
| 17 IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect&
boundingClientRect, const IntRect& rootBounds, const IntRect& intersectionRect,
Element* target) |
| 18 : m_time(time) |
| 19 , m_boundingClientRect(boundingClientRect) |
| 20 , m_rootBounds(rootBounds) |
| 21 , m_intersectionRect(intersectionRect) |
| 22 , m_target(target) |
| 23 |
| 24 { |
| 25 } |
| 26 |
| 27 IntersectionObserverEntry::~IntersectionObserverEntry() |
| 28 { |
| 29 } |
| 30 |
| 31 DEFINE_TRACE(IntersectionObserverEntry) |
| 32 { |
| 33 visitor->trace(m_target); |
| 34 } |
| 35 |
| 36 |
| 37 } // namespace blink |
OLD | NEW |