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

Side by Side Diff: Source/core/layout/LayoutThemeMac.mm

Issue 368003002: Check if drawFocusRingMaskWithFrame:inView: exists when drawing focus ring (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 NSPopUpButtonCell* popupButton = this->popupButton(); 873 NSPopUpButtonCell* popupButton = this->popupButton();
874 874
875 // Set the control size based off the rectangle we're painting into. 875 // Set the control size based off the rectangle we're painting into.
876 setControlSize(popupButton, popupButtonSizes(), rect.size(), object->style() ->effectiveZoom()); 876 setControlSize(popupButton, popupButtonSizes(), rect.size(), object->style() ->effectiveZoom());
877 877
878 // Update the various states we respond to. 878 // Update the various states we respond to.
879 updateActiveState(popupButton, object); 879 updateActiveState(popupButton, object);
880 updateCheckedState(popupButton, object); 880 updateCheckedState(popupButton, object);
881 updateEnabledState(popupButton, object); 881 updateEnabledState(popupButton, object);
882 updatePressedState(popupButton, object); 882 updatePressedState(popupButton, object);
883 #if BUTTON_CELL_DRAW_WITH_FRAME_DRAWS_FOCUS_RING 883 if (ThemeMac::drawWithFrameDrawsFocusRing())
884 updateFocusedState(popupButton, object); 884 updateFocusedState(popupButton, object);
885 #endif
886 } 885 }
887 886
888 const IntSize* LayoutThemeMac::menuListSizes() const 887 const IntSize* LayoutThemeMac::menuListSizes() const
889 { 888 {
890 static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0 ) }; 889 static const IntSize sizes[3] = { IntSize(9, 0), IntSize(5, 0), IntSize(0, 0 ) };
891 return sizes; 890 return sizes;
892 } 891 }
893 892
894 int LayoutThemeMac::minimumMenuListSize(const ComputedStyle& style) const 893 int LayoutThemeMac::minimumMenuListSize(const ComputedStyle& style) const
895 { 894 {
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
1170 1169
1171 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const 1170 bool LayoutThemeMac::shouldUseFallbackTheme(const ComputedStyle& style) const
1172 { 1171 {
1173 ControlPart part = style.appearance(); 1172 ControlPart part = style.appearance();
1174 if (part == CheckboxPart || part == RadioPart) 1173 if (part == CheckboxPart || part == RadioPart)
1175 return style.effectiveZoom() != 1; 1174 return style.effectiveZoom() != 1;
1176 return false; 1175 return false;
1177 } 1176 }
1178 1177
1179 } // namespace blink 1178 } // namespace blink
OLDNEW
« no previous file with comments | « no previous file | Source/core/paint/ThemePainterMac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698