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

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

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)
Patch Set: . 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/glass_browser_frame_view.cc
diff --git a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
index 520c6058f30a2326ffae9b9421a32b42489a2ae4..219d99ea9acd293ab790c8231ebad7e9e50218b7 100644
--- a/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
+++ b/chrome/browser/ui/views/frame/glass_browser_frame_view.cc
@@ -697,8 +697,8 @@ void GlassBrowserFrameView::PaintToolbarBackground(gfx::Canvas* canvas) const {
// Top stroke.
gfx::Rect separator_rect(x, y, w, 0);
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->sk_canvas()->clipRect(gfx::RectToSkRect(tabstrip_bounds),
SkClipOp::kDifference);
separator_rect.set_y(tabstrip_bounds.bottom());

Powered by Google App Engine
This is Rietveld 408576698