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

Unified Diff: chrome/browser/gtk/browser_window_gtk.cc

Issue 149102: Fix a crash that happens when changing themes. (Closed)
Patch Set: 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 | « no previous file | chrome/browser/gtk/nine_box.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/browser_window_gtk.cc
diff --git a/chrome/browser/gtk/browser_window_gtk.cc b/chrome/browser/gtk/browser_window_gtk.cc
index 5d7950276493c5376655c5d5b5923bbe54d38410..144079121ebfd32f9b64980e965888b0d22a7e56 100644
--- a/chrome/browser/gtk/browser_window_gtk.cc
+++ b/chrome/browser/gtk/browser_window_gtk.cc
@@ -418,7 +418,7 @@ gboolean BrowserWindowGtk::OnCustomFrameExpose(GtkWidget* widget,
cairo_clip(cr);
NineBox* image = window->browser()->profile()->IsOffTheRecord()
? default_background_otr : default_background;
- image->RenderTopCenterStrip(cr, event->area.x, 0, event->area.width);
+ image->RenderTopCenterStrip(cr, 0, 0, widget->allocation.width);
cairo_destroy(cr);
// TODO(tc): Draw the theme overlay. The windows code is below.
@@ -703,7 +703,8 @@ void BrowserWindowGtk::ShowHTMLDialog(HtmlDialogUIDelegate* delegate,
}
void BrowserWindowGtk::UserChangedTheme() {
- NOTIMPLEMENTED();
+ gdk_window_invalidate_rect(GTK_WIDGET(window_)->window,
+ &GTK_WIDGET(window_)->allocation, TRUE);
}
int BrowserWindowGtk::GetExtraRenderViewHeight() const {
« no previous file with comments | « no previous file | chrome/browser/gtk/nine_box.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698