| Index: third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| index 1fd325601d713ad5dd94557677fbc2ae982ec446..8c1b379e40db31e9000cad793d53d6ef81948036 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
|
| @@ -650,23 +650,6 @@
|
| ScrollType scroll_type,
|
| bool make_visible_in_visual_viewport,
|
| ScrollBehavior scroll_behavior) {
|
| - SmoothScrollSequencer* sequencer =
|
| - GetFrame()->GetPage()->GetSmoothScrollSequencer();
|
| - sequencer->AbortAnimations();
|
| - ScrollRectToVisibleRecursive(rect, align_x, align_y, scroll_type,
|
| - make_visible_in_visual_viewport,
|
| - scroll_behavior);
|
| - if (scroll_behavior == kScrollBehaviorSmooth)
|
| - sequencer->RunQueuedAnimations();
|
| -}
|
| -
|
| -void LayoutBox::ScrollRectToVisibleRecursive(
|
| - const LayoutRect& rect,
|
| - const ScrollAlignment& align_x,
|
| - const ScrollAlignment& align_y,
|
| - ScrollType scroll_type,
|
| - bool make_visible_in_visual_viewport,
|
| - ScrollBehavior scroll_behavior) {
|
| DCHECK(scroll_type == kProgrammaticScroll || scroll_type == kUserScroll);
|
| // Presumably the same issue as in setScrollTop. See crbug.com/343132.
|
| DisableCompositingQueryAsserts disabler;
|
| @@ -741,9 +724,9 @@
|
| parent_box = EnclosingScrollableBox();
|
|
|
| if (parent_box) {
|
| - parent_box->ScrollRectToVisibleRecursive(
|
| - new_rect, align_x, align_y, scroll_type,
|
| - make_visible_in_visual_viewport, scroll_behavior);
|
| + parent_box->ScrollRectToVisible(new_rect, align_x, align_y, scroll_type,
|
| + make_visible_in_visual_viewport,
|
| + scroll_behavior);
|
| }
|
| }
|
|
|
|
|