Commit 62663ad2 authored by Elly Fong-Jones's avatar Elly Fong-Jones Committed by Commit Bot

views: repaint BubbleFrameView when changing background color

This is much more necessary with the view repaint optimization enabled
via the EnableViewPaintOptimization feature. Without that optimization,
the BubbleFrameView was getting repainted by accident: usually a
control in the bubble would change in response to a theme change, and
that would damage the BubbleFrameView's bounds rect, which would cause
a repaint of the BubbleFrameView.

Bug: 999208
Change-Id: Ia71d5e7474a00971502a87dcc2d9cea7c4368853
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1774787
Auto-Submit: Elly Fong-Jones <ellyjones@chromium.org>
Commit-Queue: Bret Sepulveda <bsep@chromium.org>
Reviewed-by: default avatarBret Sepulveda <bsep@chromium.org>
Cr-Commit-Position: refs/heads/master@{#692177}
parent 17554c1b
......@@ -466,6 +466,7 @@ void BubbleFrameView::SetArrow(BubbleBorder::Arrow arrow) {
void BubbleFrameView::SetBackgroundColor(SkColor color) {
bubble_border_->set_background_color(color);
SchedulePaint();
}
gfx::Rect BubbleFrameView::GetUpdatedWindowBounds(
......
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