Tab Search: Fix recursive paint in TabSearchButton
This CL fixes a recursive paint bug in the TabSearchButton. Currently SetImage() is called within PaintIcon(). This causes a paint recursion as SetImage() will schedule a paint after it has been set. This CL moves the SetImage() call into the FrameColorsChanged() method to fix the issue. Bug: 1121276 Change-Id: I89e10d17bf69d757112ea8655c79191a7541d18d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2375933 Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> Reviewed-by:Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#801533}
Showing
Please register or sign in to comment