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

Side by Side Diff: third_party/WebKit/Source/core/dom/IntersectionObserverEntry.cpp

Issue 1613543002: Use DOMHighResTimeStamp for notification time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: syntax error in test Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/dom/IntersectionObserverEntry.h" 5 #include "core/dom/IntersectionObserverEntry.h"
6 6
7 #include "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 8
9 namespace blink { 9 namespace blink {
10 10
11 IntersectionObserverEntry::IntersectionObserverEntry(double time, const IntRect& boundingClientRect, const IntRect* rootBounds, const IntRect& intersectionRect, Element* target) 11 IntersectionObserverEntry::IntersectionObserverEntry(DOMHighResTimeStamp time, c onst IntRect& boundingClientRect, const IntRect* rootBounds, const IntRect& inte rsectionRect, Element* target)
12 : m_time(time) 12 : m_time(time)
13 , m_boundingClientRect(ClientRect::create(boundingClientRect)) 13 , m_boundingClientRect(ClientRect::create(boundingClientRect))
14 , m_rootBounds(rootBounds ? ClientRect::create(*rootBounds) : nullptr) 14 , m_rootBounds(rootBounds ? ClientRect::create(*rootBounds) : nullptr)
15 , m_intersectionRect(ClientRect::create(intersectionRect)) 15 , m_intersectionRect(ClientRect::create(intersectionRect))
16 , m_target(target) 16 , m_target(target)
17 17
18 { 18 {
19 } 19 }
20 20
21 IntersectionObserverEntry::~IntersectionObserverEntry() 21 IntersectionObserverEntry::~IntersectionObserverEntry()
22 { 22 {
23 } 23 }
24 24
25 DEFINE_TRACE(IntersectionObserverEntry) 25 DEFINE_TRACE(IntersectionObserverEntry)
26 { 26 {
27 visitor->trace(m_boundingClientRect); 27 visitor->trace(m_boundingClientRect);
28 visitor->trace(m_rootBounds); 28 visitor->trace(m_rootBounds);
29 visitor->trace(m_intersectionRect); 29 visitor->trace(m_intersectionRect);
30 visitor->trace(m_target); 30 visitor->trace(m_target);
31 } 31 }
32 32
33 } // namespace blink 33 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/IntersectionObserverEntry.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698