Commit dcd5bf78 authored by Sammie Quon's avatar Sammie Quon Committed by Commit Bot

wm: Fix icon misplaced after zooming in and out.

Removes a unnecessary SetSize call after updating the icon. It is
unnecessary because we should be using the bounds specified by Layout.

Test: manual
Bug: 1069428
Change-Id: Ia3c24ed4c94472236c193f1fc85569af36d8e647
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145952Reviewed-by: default avatarAhmed Fakhry <afakhry@chromium.org>
Commit-Queue: Sammie Quon <sammiequon@chromium.org>
Cr-Commit-Position: refs/heads/master@{#758339}
parent 1dd8b6db
...@@ -168,7 +168,6 @@ void WindowMiniView::UpdateIconView() { ...@@ -168,7 +168,6 @@ void WindowMiniView::UpdateIconView() {
} }
icon_view_->SetImage(ModifyIcon(icon)); icon_view_->SetImage(ModifyIcon(icon));
icon_view_->SetSize(kIconSize);
} }
gfx::Rect WindowMiniView::GetContentAreaBounds() const { gfx::Rect WindowMiniView::GetContentAreaBounds() const {
......
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