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

Side by Side Diff: third_party/WebKit/Source/core/observer/ResizeObservation.cpp

Issue 2161313002: ResizeObserver implementation, part 2: lifetime (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CR fixes Created 4 years, 5 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
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/observer/ResizeObserverEntry.h" 5 #include "core/observer/ResizeObservation.h"
6 6
7 #include "core/dom/ClientRect.h"
8 #include "core/dom/DOMRectReadOnly.h"
9 #include "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 #include "core/observer/ResizeObserver.h"
10 9
11 namespace blink { 10 namespace blink {
12 11
13 class ResizeObservation; 12 ResizeObservation::ResizeObservation(Element* target, ResizeObserver* observer)
14
15 ResizeObserverEntry::ResizeObserverEntry(Element* target)
16 : m_target(target) 13 : m_target(target)
14 , m_observer(observer)
17 { 15 {
16 DCHECK(m_target);
18 } 17 }
19 18
20 DEFINE_TRACE(ResizeObserverEntry) 19 DEFINE_TRACE(ResizeObservation)
21 { 20 {
22 visitor->trace(m_target); 21 visitor->trace(m_target);
23 visitor->trace(m_contentRect); 22 visitor->trace(m_observer);
24 } 23 }
25 24
26 } // namespace blink 25 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/observer/ResizeObservation.h ('k') | third_party/WebKit/Source/core/observer/ResizeObserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698