| Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
|
| diff --git a/chrome/browser/ui/panels/panel_browser_window_gtk.cc b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
|
| index 0726ba3e07274decd5d322b7d234a42dde16b680..a427099677472ceea06713f95ffda5f08f9365fa 100644
|
| --- a/chrome/browser/ui/panels/panel_browser_window_gtk.cc
|
| +++ b/chrome/browser/ui/panels/panel_browser_window_gtk.cc
|
| @@ -245,10 +245,19 @@ gfx::Rect PanelBrowserWindowGtk::GetPanelBounds() const {
|
| }
|
|
|
| void PanelBrowserWindowGtk::SetPanelBounds(const gfx::Rect& bounds) {
|
| + SetBoundsInternal(bounds, true);
|
| +}
|
| +
|
| +void PanelBrowserWindowGtk::SetPanelBoundsInstantly(const gfx::Rect& bounds) {
|
| + SetBoundsInternal(bounds, false);
|
| +}
|
| +
|
| +void PanelBrowserWindowGtk::SetBoundsInternal(const gfx::Rect& bounds,
|
| + bool animate) {
|
| if (bounds == bounds_)
|
| return;
|
|
|
| - if (drag_widget_) {
|
| + if (drag_widget_ || !animate) {
|
| DCHECK(!bounds_animator_.get() || !bounds_animator_->is_animating());
|
| // If the current panel is being dragged, it should just move with the
|
| // user drag, we should not animate.
|
|
|