| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2009 Google, Inc. | 3 * Copyright (C) 2008, 2009 Google, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 1252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1263 NSPopUpButtonCell* popupButton = this->popupButton(); | 1263 NSPopUpButtonCell* popupButton = this->popupButton(); |
| 1264 | 1264 |
| 1265 // Set the control size based off the rectangle we're painting into. | 1265 // Set the control size based off the rectangle we're painting into. |
| 1266 setControlSize(popupButton, popupButtonSizes(), r.size(), o->style()->effect
iveZoom()); | 1266 setControlSize(popupButton, popupButtonSizes(), r.size(), o->style()->effect
iveZoom()); |
| 1267 | 1267 |
| 1268 // Update the various states we respond to. | 1268 // Update the various states we respond to. |
| 1269 updateActiveState(popupButton, o); | 1269 updateActiveState(popupButton, o); |
| 1270 updateCheckedState(popupButton, o); | 1270 updateCheckedState(popupButton, o); |
| 1271 updateEnabledState(popupButton, o); | 1271 updateEnabledState(popupButton, o); |
| 1272 updatePressedState(popupButton, o); | 1272 updatePressedState(popupButton, o); |
| 1273 #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING | |
| 1274 updateFocusedState(popupButton, o); | 1273 updateFocusedState(popupButton, o); |
| 1275 #endif | |
| 1276 } | 1274 } |
| 1277 | 1275 |
| 1278 const IntSize* RenderThemeChromiumMac::menuListSizes() const | 1276 const IntSize* RenderThemeChromiumMac::menuListSizes() const |
| 1279 { | 1277 { |
| 1280 static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0
) }; | 1278 static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0
) }; |
| 1281 return sizes; | 1279 return sizes; |
| 1282 } | 1280 } |
| 1283 | 1281 |
| 1284 int RenderThemeChromiumMac::minimumMenuListSize(RenderStyle* style) const | 1282 int RenderThemeChromiumMac::minimumMenuListSize(RenderStyle* style) const |
| 1285 { | 1283 { |
| (...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1904 | 1902 |
| 1905 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const | 1903 bool RenderThemeChromiumMac::shouldUseFallbackTheme(RenderStyle* style) const |
| 1906 { | 1904 { |
| 1907 ControlPart part = style->appearance(); | 1905 ControlPart part = style->appearance(); |
| 1908 if (part == CheckboxPart || part == RadioPart) | 1906 if (part == CheckboxPart || part == RadioPart) |
| 1909 return style->effectiveZoom() != 1; | 1907 return style->effectiveZoom() != 1; |
| 1910 return false; | 1908 return false; |
| 1911 } | 1909 } |
| 1912 | 1910 |
| 1913 } // namespace WebCore | 1911 } // namespace WebCore |
| OLD | NEW |