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

Issue 149102: Fix a crash that happens when changing themes. (Closed)

Created:
11 years, 6 months ago by tony
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fix a crash that happens when changing themes. We were holding references to images that got deleted when themes changed. These all happen to be in a NineBox, so have NineBox reload images when the theme change notification is sent. Also fix an expose bug that wasn't noticeable in the original theme. We need to always place the image at 0, 0 for the background and paint it all the way across the window (should get clipped by cairo). BUG=15366

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -22 lines) Patch
M chrome/browser/gtk/browser_window_gtk.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/gtk/nine_box.h View 3 chunks +17 lines, -1 line 0 comments Download
M chrome/browser/gtk/nine_box.cc View 3 chunks +35 lines, -19 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
tony
11 years, 6 months ago (2009-06-26 21:31:17 UTC) #1
Evan Stade
lgtm on another note, does theme provider cache the pixbufs the way the resource bundle ...
11 years, 6 months ago (2009-06-26 21:42:00 UTC) #2
tony
11 years, 6 months ago (2009-06-26 21:43:28 UTC) #3
On 2009/06/26 21:42:00, Evan Stade wrote:
> lgtm
> 
> on another note, does theme provider cache the pixbufs the way the resource
> bundle does? I think that was a mental TODO I had but didn't put in the code

Yes, it does cache.  See browser/browser_theme_provider_gtk.cc.

Powered by Google App Engine
This is Rietveld 408576698