| Index: third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| diff --git a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| index d89b8b0ce21eeeb4beacd3bc15a6e253c20773bd..cc76a0e89e91eb23462eb67889ddc9eb4ac4afdf 100644
|
| --- a/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/RootFrameViewport.cpp
|
| @@ -209,7 +209,6 @@
|
| LayoutRect RootFrameViewport::ScrollIntoView(const LayoutRect& rect_in_content,
|
| const ScrollAlignment& align_x,
|
| const ScrollAlignment& align_y,
|
| - bool is_smooth,
|
| ScrollType scroll_type) {
|
| // We want to move the rect into the viewport that excludes the scrollbars so
|
| // we intersect the visual viewport with the scrollbar-excluded frameView
|
| @@ -230,13 +229,8 @@
|
| LayoutRect target_viewport = ScrollAlignment::GetRectToExpose(
|
| view_rect_in_content, rect_in_content, align_x, align_y);
|
| if (target_viewport != view_rect_in_content) {
|
| - ScrollOffset target_offset(target_viewport.X(), target_viewport.Y());
|
| - if (is_smooth) {
|
| - DCHECK(scroll_type == kProgrammaticScroll);
|
| - GetSmoothScrollSequencer()->QueueAnimation(this, target_offset);
|
| - } else {
|
| - SetScrollOffset(target_offset, scroll_type);
|
| - }
|
| + SetScrollOffset(ScrollOffset(target_viewport.X(), target_viewport.Y()),
|
| + scroll_type);
|
| }
|
|
|
| // RootFrameViewport only changes the viewport relative to the document so we
|
| @@ -437,10 +431,6 @@
|
| return LayoutViewport().GetChromeClient();
|
| }
|
|
|
| -SmoothScrollSequencer* RootFrameViewport::GetSmoothScrollSequencer() const {
|
| - return LayoutViewport().GetSmoothScrollSequencer();
|
| -}
|
| -
|
| void RootFrameViewport::ServiceScrollAnimations(double monotonic_time) {
|
| ScrollableArea::ServiceScrollAnimations(monotonic_time);
|
| LayoutViewport().ServiceScrollAnimations(monotonic_time);
|
|
|