Commit a8bcc406 authored by Nick Diego Yamane's avatar Nick Diego Yamane Committed by Commit Bot

Remove needless function call when starting tab dragging

PrepareForAnimation does nothing when tab_drag_controller is
set (tab dragging is started), so we can safely remove its
needless call from TabStrip::StartedDraggingTabs method, which
is called from TabDragController::Attach.

R=sky@chromium.org

Change-Id: I0b084512d2ee2804cf602d2a4e71bea2fd7c80ff
Bug: 896640
Reviewed-on: https://chromium-review.googlesource.com/c/1489214Reviewed-by: default avatarScott Violet <sky@chromium.org>
Commit-Queue: Nick Yamane <nickdiego@igalia.com>
Cr-Commit-Position: refs/heads/master@{#635952}
parent 0bf352fd
......@@ -2032,8 +2032,6 @@ void TabStrip::StartedDraggingTabs(const Tabs& tabs) {
if (MayHideNewTabButtonWhileDragging() && !drag_controller_)
new_tab_button_->SetVisible(false);
PrepareForAnimation();
// Reset dragging state of existing tabs.
for (int i = 0; i < tab_count(); ++i)
tab_at(i)->set_dragging(false);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment