Bug 485451 - Redraw the titlebar when a *titlebarcolor attribute changes. r=josh, sr=roc
authorMarkus Stange <mstange@themasta.com>
Sat, 28 Mar 2009 12:03:50 +0100
changeset 26649 262d44d6e4251e1158587851055d8797ea1e0e2e
parent 26648 355502299a99f977223048798b17f49fdf0f583f
child 26650 9e33f1b0a4dcacf5e123f080e3c3ce63c909e8ab
push id6164
push usermstange@themasta.com
push dateSat, 28 Mar 2009 11:06:15 +0000
treeherdermozilla-central@262d44d6e425 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjosh, roc
bugs485451
milestone1.9.2a1pre
Bug 485451 - Redraw the titlebar when a *titlebarcolor attribute changes. r=josh, sr=roc
widget/src/cocoa/nsCocoaWindow.mm
--- a/widget/src/cocoa/nsCocoaWindow.mm
+++ b/widget/src/cocoa/nsCocoaWindow.mm
@@ -1817,16 +1817,17 @@ nsCocoaWindow::UnifiedShading(void* aInf
 
 
 // Pass nil here to get the default appearance.
 - (void)setTitlebarColor:(NSColor*)aColor forActiveWindow:(BOOL)aActive
 {
   NS_OBJC_BEGIN_TRY_ABORT_BLOCK;
 
   [mColor setTitlebarColor:aColor forActiveWindow:aActive];
+  [self redrawTitlebar];
 
   NS_OBJC_END_TRY_ABORT_BLOCK;
 }
 
 // This is called by nsNativeThemeCocoa.mm's DrawUnifiedToolbar.
 // We need to know the toolbar's height in order to draw the correct
 // unified gradient in the titlebar.
 - (void)setUnifiedToolbarHeight:(float)aToolbarHeight