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

Unified Diff: chrome/browser/ui/views/frame/browser_header_painter_ash.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_header_painter_ash.cc
diff --git a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
index 0c858cb5a84172ec44bda3eca5f63b608f1c8bab..9891923a60dc2ff741614aaa43bebadc6b5b692f 100644
--- a/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
+++ b/chrome/browser/ui/views/frame/browser_header_painter_ash.cc
@@ -263,13 +263,11 @@ void BrowserHeaderPainterAsh::PaintFrameImages(gfx::Canvas* canvas,
void BrowserHeaderPainterAsh::PaintTitleBar(gfx::Canvas* canvas) {
// The window icon is painted by its own views::View.
- gfx::Rect title_bounds = GetTitleBounds();
- title_bounds.set_x(view_->GetMirroredXForRect(title_bounds));
canvas->DrawStringRectWithFlags(frame_->widget_delegate()->GetWindowTitle(),
BrowserFrame::GetTitleFontList(),
is_incognito_ ? kIncognitoWindowTitleTextColor
: kNormalWindowTitleTextColor,
- title_bounds,
+ view_->GetMirroredRect(GetTitleBounds()),
gfx::Canvas::NO_SUBPIXEL_RENDERING);
}

Powered by Google App Engine
This is Rietveld 408576698