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

Unified Diff: chrome/browser/gtk/tabs/tab_renderer_gtk.cc

Issue 140026: Add the ability to resize the window when over the custom frame. (Closed)
Patch Set: fix tab offset Created 11 years, 6 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
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/tabs/tab_renderer_gtk.cc
diff --git a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
index 2408d5564b0976d9588d34d5c976502ce0d29e19..b4456dec9e32058d54e4dbbfb32701884a84e2f1 100755
--- a/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
+++ b/chrome/browser/gtk/tabs/tab_renderer_gtk.cc
@@ -515,10 +515,9 @@ void TabRendererGtk::PaintTab(GdkEventExpose* event) {
return;
// The tab is rendered into a windowless widget whose offset is at the
- // coordinate [x(), y()]. Additionally, the parent widget is windowless, and
- // it has an offset of event->area. Translate by these offsets so we can
- // render at (0,0) to match windows rendering metrics.
- canvas.TranslateInt(x(), y() + event->area.y);
+ // coordinate event->area. Translate by these offsets so we can render at
+ // (0,0) to match Windows' rendering metrics.
+ canvas.TranslateInt(event->area.x, event->area.y);
Paint(&canvas);
}
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698