Bug 924184 - Don't repaint -moz-appearance: -moz-window-titlebar on hover. r=roc
authorMarkus Stange <mstange@themasta.com>
Thu, 24 Oct 2013 10:07:35 +0200
changeset 151926 19f91220e648dc367ae64a14a6b873c5b909e5fa
parent 151925 75ee2a0bc5d39593c5b594174efe4eff348cc798
child 151927 f8e43006b15973160ca46d74975154fa9f2b8afe
push id35351
push usermstange@themasta.com
push dateThu, 24 Oct 2013 08:09:14 +0000
treeherdermozilla-inbound@f8e43006b159 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs924184
milestone27.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 924184 - Don't repaint -moz-appearance: -moz-window-titlebar on hover. r=roc
widget/cocoa/nsNativeThemeCocoa.mm
--- a/widget/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/cocoa/nsNativeThemeCocoa.mm
@@ -2955,16 +2955,17 @@ nsNativeThemeCocoa::GetMinimumWidgetSize
 }
 
 NS_IMETHODIMP
 nsNativeThemeCocoa::WidgetStateChanged(nsIFrame* aFrame, uint8_t aWidgetType, 
                                      nsIAtom* aAttribute, bool* aShouldRepaint)
 {
   // Some widget types just never change state.
   switch (aWidgetType) {
+    case NS_THEME_WINDOW_TITLEBAR:
     case NS_THEME_TOOLBOX:
     case NS_THEME_TOOLBAR:
     case NS_THEME_MOZ_MAC_UNIFIED_TOOLBAR:
     case NS_THEME_STATUSBAR:
     case NS_THEME_STATUSBAR_PANEL:
     case NS_THEME_STATUSBAR_RESIZER_PANEL:
     case NS_THEME_TOOLTIP:
     case NS_THEME_TAB_PANELS: