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" |
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 void RootFrameViewport::cancelProgrammaticScrollAnimation() { | 440 void RootFrameViewport::cancelProgrammaticScrollAnimation() { |
441 ScrollableArea::cancelProgrammaticScrollAnimation(); | 441 ScrollableArea::cancelProgrammaticScrollAnimation(); |
442 layoutViewport().cancelProgrammaticScrollAnimation(); | 442 layoutViewport().cancelProgrammaticScrollAnimation(); |
443 visualViewport().cancelProgrammaticScrollAnimation(); | 443 visualViewport().cancelProgrammaticScrollAnimation(); |
444 } | 444 } |
445 | 445 |
446 Widget* RootFrameViewport::getWidget() { | 446 Widget* RootFrameViewport::getWidget() { |
447 return visualViewport().getWidget(); | 447 return visualViewport().getWidget(); |
448 } | 448 } |
449 | 449 |
450 void RootFrameViewport::clearScrollAnimators() { | 450 void RootFrameViewport::clearScrollableArea() { |
451 ScrollableArea::clearScrollAnimators(); | 451 ScrollableArea::clearScrollableArea(); |
452 layoutViewport().clearScrollAnimators(); | 452 layoutViewport().clearScrollableArea(); |
453 visualViewport().clearScrollAnimators(); | 453 visualViewport().clearScrollableArea(); |
454 } | 454 } |
455 | 455 |
456 DEFINE_TRACE(RootFrameViewport) { | 456 DEFINE_TRACE(RootFrameViewport) { |
457 visitor->trace(m_visualViewport); | 457 visitor->trace(m_visualViewport); |
458 visitor->trace(m_layoutViewport); | 458 visitor->trace(m_layoutViewport); |
459 ScrollableArea::trace(visitor); | 459 ScrollableArea::trace(visitor); |
460 } | 460 } |
461 | 461 |
462 } // namespace blink | 462 } // namespace blink |
OLD | NEW |