Commit c876f4a1 authored by sangwoo.ko's avatar sangwoo.ko Committed by Commit Bot

Don't clip tool bar border if active tab is invisible

Bug: 651022
Change-Id: I95d405ca9be1747abfe24f68f0837ed5981571ed
Reviewed-on: https://chromium-review.googlesource.com/958783Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Commit-Queue: Peter Kasting <pkasting@chromium.org>
Cr-Commit-Position: refs/heads/master@{#542556}
parent 933203d7
......@@ -1162,7 +1162,7 @@ void TabStrip::PaintChildren(const views::PaintInfo& paint_info) {
paint_info.paint_recording_scale_y(), nullptr);
gfx::Canvas* canvas = recorder.canvas();
if (active_tab) {
if (active_tab && active_tab->visible()) {
canvas->sk_canvas()->clipRect(
gfx::RectToSkRect(active_tab->GetMirroredBounds()),
SkClipOp::kDifference);
......
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