Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1230)

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)
Patch Set: fix compile Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
index 273910bdf986cd5b93d0027232bcf135fd099324..2bc51461969d24b6be80837f67672e12454f2ff3 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
@@ -487,8 +487,8 @@ void BrowserNonClientFrameViewMus::PaintToolbarBackground(gfx::Canvas* canvas) {
// Top stroke.
gfx::ScopedCanvas scoped_canvas(canvas);
- gfx::Rect tabstrip_bounds(GetBoundsForTabStrip(browser_view()->tabstrip()));
- tabstrip_bounds.set_x(GetMirroredXForRect(tabstrip_bounds));
+ gfx::Rect tabstrip_bounds =
+ GetMirroredRect(GetBoundsForTabStrip(browser_view()->tabstrip()));
canvas->ClipRect(tabstrip_bounds, SkClipOp::kDifference);
const gfx::Rect separator_rect(toolbar_bounds.x(), tabstrip_bounds.bottom(),
toolbar_bounds.width(), 0);

Powered by Google App Engine
This is Rietveld 408576698