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

Side by Side Diff: third_party/WebKit/Source/core/frame/RootFrameViewport.cpp

Issue 2836813002: Move ScrollbarManager from core to platform and use as Scrollbar parent (Closed)
Patch Set: Created 3 years, 8 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 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/FrameView.cpp ('k') | third_party/WebKit/Source/core/input/GestureManager.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698