Bug 1093312 - Make the disclosure button's focus ring look better. r=mstange.
authorstefanh@inbox.com
Wed, 05 Nov 2014 18:59:39 +0100
changeset 214087 afb437f1ee024117f649b8e524a33b4dbe0d6419
parent 214086 01b6e1b347ed52ea1d8a186733d3df25c888e718
child 214088 75c3a88013e61cee7e45a3cff55892cf28ba2205
push id51424
push userstefanh@inbox.com
push dateWed, 05 Nov 2014 17:59:49 +0000
treeherdermozilla-inbound@afb437f1ee02 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmstange
bugs1093312
milestone36.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 1093312 - Make the disclosure button's focus ring look better. r=mstange.
widget/cocoa/nsNativeThemeCocoa.mm
--- a/widget/cocoa/nsNativeThemeCocoa.mm
+++ b/widget/cocoa/nsNativeThemeCocoa.mm
@@ -3089,16 +3089,18 @@ nsNativeThemeCocoa::GetWidgetPadding(nsD
 
 bool
 nsNativeThemeCocoa::GetWidgetOverflow(nsDeviceContext* aContext, nsIFrame* aFrame,
                                       uint8_t aWidgetType, nsRect* aOverflowRect)
 {
   int32_t p2a = aFrame->PresContext()->AppUnitsPerDevPixel();
   switch (aWidgetType) {
     case NS_THEME_BUTTON:
+    case NS_THEME_MAC_DISCLOSURE_BUTTON_OPEN:
+    case NS_THEME_MAC_DISCLOSURE_BUTTON_CLOSED:
     case NS_THEME_MOZ_MAC_HELP_BUTTON:
     case NS_THEME_TOOLBAR_BUTTON:
     case NS_THEME_NUMBER_INPUT:
     case NS_THEME_TEXTFIELD:
     case NS_THEME_TEXTFIELD_MULTILINE:
     case NS_THEME_SEARCHFIELD:
     case NS_THEME_LISTBOX:
     case NS_THEME_DROPDOWN: