| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/frame/RootFrameViewport.h" | 5 #include "core/frame/RootFrameViewport.h" |
| 6 | 6 |
| 7 #include "core/frame/FrameView.h" | 7 #include "core/frame/FrameView.h" |
| 8 #include "core/layout/ScrollAlignment.h" | 8 #include "core/layout/ScrollAlignment.h" |
| 9 #include "core/layout/ScrollAnchor.h" | 9 #include "core/layout/ScrollAnchor.h" |
| 10 #include "platform/geometry/DoubleRect.h" | 10 #include "platform/geometry/DoubleRect.h" |
| 11 #include "platform/geometry/FloatRect.h" | 11 #include "platform/geometry/FloatRect.h" |
| 12 #include "platform/geometry/LayoutRect.h" | 12 #include "platform/geometry/LayoutRect.h" |
| 13 #include "platform/scroll/ScrollAnimatorBase.h" |
| 13 | 14 |
| 14 namespace blink { | 15 namespace blink { |
| 15 | 16 |
| 16 RootFrameViewport::RootFrameViewport(ScrollableArea& visual_viewport, | 17 RootFrameViewport::RootFrameViewport(ScrollableArea& visual_viewport, |
| 17 ScrollableArea& layout_viewport) | 18 ScrollableArea& layout_viewport) |
| 18 : visual_viewport_(visual_viewport) { | 19 : visual_viewport_(visual_viewport) { |
| 19 SetLayoutViewport(layout_viewport); | 20 SetLayoutViewport(layout_viewport); |
| 20 } | 21 } |
| 21 | 22 |
| 22 void RootFrameViewport::SetLayoutViewport(ScrollableArea& new_layout_viewport) { | 23 void RootFrameViewport::SetLayoutViewport(ScrollableArea& new_layout_viewport) { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 455 VisualViewport().ClearScrollableArea(); | 456 VisualViewport().ClearScrollableArea(); |
| 456 } | 457 } |
| 457 | 458 |
| 458 DEFINE_TRACE(RootFrameViewport) { | 459 DEFINE_TRACE(RootFrameViewport) { |
| 459 visitor->Trace(visual_viewport_); | 460 visitor->Trace(visual_viewport_); |
| 460 visitor->Trace(layout_viewport_); | 461 visitor->Trace(layout_viewport_); |
| 461 ScrollableArea::Trace(visitor); | 462 ScrollableArea::Trace(visitor); |
| 462 } | 463 } |
| 463 | 464 |
| 464 } // namespace blink | 465 } // namespace blink |
| OLD | NEW |