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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 void RootFrameViewport::cancelProgrammaticScrollAnimation() { | 415 void RootFrameViewport::cancelProgrammaticScrollAnimation() { |
416 ScrollableArea::cancelProgrammaticScrollAnimation(); | 416 ScrollableArea::cancelProgrammaticScrollAnimation(); |
417 layoutViewport().cancelProgrammaticScrollAnimation(); | 417 layoutViewport().cancelProgrammaticScrollAnimation(); |
418 visualViewport().cancelProgrammaticScrollAnimation(); | 418 visualViewport().cancelProgrammaticScrollAnimation(); |
419 } | 419 } |
420 | 420 |
421 Widget* RootFrameViewport::getWidget() { | 421 Widget* RootFrameViewport::getWidget() { |
422 return visualViewport().getWidget(); | 422 return visualViewport().getWidget(); |
423 } | 423 } |
424 | 424 |
425 void RootFrameViewport::clearScrollAnimators() { | 425 void RootFrameViewport::clearScrollableArea() { |
426 ScrollableArea::clearScrollAnimators(); | 426 ScrollableArea::clearScrollableArea(); |
427 layoutViewport().clearScrollAnimators(); | 427 layoutViewport().clearScrollableArea(); |
428 visualViewport().clearScrollAnimators(); | 428 visualViewport().clearScrollableArea(); |
429 } | 429 } |
430 | 430 |
431 DEFINE_TRACE(RootFrameViewport) { | 431 DEFINE_TRACE(RootFrameViewport) { |
432 visitor->trace(m_visualViewport); | 432 visitor->trace(m_visualViewport); |
433 visitor->trace(m_layoutViewport); | 433 visitor->trace(m_layoutViewport); |
434 ScrollableArea::trace(visitor); | 434 ScrollableArea::trace(visitor); |
435 } | 435 } |
436 | 436 |
437 } // namespace blink | 437 } // namespace blink |
OLD | NEW |