OLD | NEW |
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/IntersectionObservation.h" | 5 #include "core/dom/IntersectionObservation.h" |
6 | 6 |
7 #include "core/dom/ElementRareData.h" | 7 #include "core/dom/ElementRareData.h" |
8 #include "core/dom/IntersectionObserver.h" | 8 #include "core/dom/IntersectionObserver.h" |
9 #include "core/frame/FrameView.h" | 9 #include "core/frame/FrameView.h" |
| 10 #include "core/frame/LocalFrame.h" |
10 #include "core/layout/LayoutBox.h" | 11 #include "core/layout/LayoutBox.h" |
11 #include "core/layout/LayoutView.h" | 12 #include "core/layout/LayoutView.h" |
12 #include "core/paint/PaintLayer.h" | 13 #include "core/paint/PaintLayer.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 IntersectionObservation::IntersectionObservation(IntersectionObserver& observer,
Element& target, bool shouldReportRootBounds) | 17 IntersectionObservation::IntersectionObservation(IntersectionObserver& observer,
Element& target, bool shouldReportRootBounds) |
17 : m_observer(observer) | 18 : m_observer(observer) |
18 , m_target(&target) | 19 , m_target(&target) |
19 , m_shouldReportRootBounds(shouldReportRootBounds) | 20 , m_shouldReportRootBounds(shouldReportRootBounds) |
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 m_observer.clear(); | 243 m_observer.clear(); |
243 } | 244 } |
244 | 245 |
245 DEFINE_TRACE(IntersectionObservation) | 246 DEFINE_TRACE(IntersectionObservation) |
246 { | 247 { |
247 visitor->trace(m_observer); | 248 visitor->trace(m_observer); |
248 visitor->trace(m_target); | 249 visitor->trace(m_target); |
249 } | 250 } |
250 | 251 |
251 } // namespace blink | 252 } // namespace blink |
OLD | NEW |