| Index: chrome/browser/ui/views/tabs/tab_strip.cc
|
| diff --git a/chrome/browser/ui/views/tabs/tab_strip.cc b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| index 56a420c2ba82aa5671ad06a8b57fcbbcb1ebb802..a3e10441a9cebb1fcfa71081df5a6ec4cd64e392 100644
|
| --- a/chrome/browser/ui/views/tabs/tab_strip.cc
|
| +++ b/chrome/browser/ui/views/tabs/tab_strip.cc
|
| @@ -1372,9 +1372,13 @@ bool TabStrip::ShouldPaintTab(const Tab* tab, gfx::Rect* clip) {
|
|
|
| bool TabStrip::CanPaintThrobberToLayer() const {
|
| // Disable layer-painting of throbbers if dragging, if any tab animation is in
|
| - // progress, or if stacked tabs are enabled.
|
| + // progress, or if stacked tabs are enabled. Also disable in fullscreen: when
|
| + // "immersive" the tab strip could be sliding in or out while transitioning to
|
| + // or away from |immersive_style_| and, for other modes, there's no tab strip.
|
| const bool dragging = drag_controller_ && drag_controller_->started_drag();
|
| - return !touch_layout_ && !dragging && !IsAnimating();
|
| + const views::Widget* widget = GetWidget();
|
| + return widget && !touch_layout_ && !dragging && !IsAnimating() &&
|
| + !widget->IsFullscreen();
|
| }
|
|
|
| bool TabStrip::IsImmersiveStyle() const {
|
|
|