Changeset 247827 in webkit
- Timestamp:
- Jul 25, 2019 11:04:15 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r247826 r247827 1 2019-07-25 Joshua Watt <JPEW.hacker@gmail.com> 2 3 [WPE] Draw other button types 4 https://bugs.webkit.org/show_bug.cgi?id=199377 5 6 Reviewed by Michael Catanzaro. 7 8 There are other button types that should be drawn with the default style 9 besides just push buttons. 10 11 * platform/wpe/ThemeWPE.cpp: 12 (WebCore::ThemeWPE::paint): 13 (WebCore::ThemeWPE::paintButton): 14 * platform/wpe/ThemeWPE.h: 15 1 16 2019-07-25 Said Abou-Hallawa <sabouhallawa@apple.com> 2 17 -
trunk/Source/WebCore/platform/wpe/ThemeWPE.cpp
r231557 r247827 68 68 break; 69 69 case PushButtonPart: 70 paintButton(states, context, zoomedRect, zoomFactor); 70 case DefaultButtonPart: 71 case ButtonPart: 72 case SquareButtonPart: 73 paintButton(part, states, context, zoomedRect, zoomFactor); 71 74 break; 72 75 default: … … 130 133 } 131 134 132 void ThemeWPE::paintButton(Control States& states, GraphicsContext& context, const FloatRect& zoomedRect, float)135 void ThemeWPE::paintButton(ControlPart part, ControlStates& states, GraphicsContext& context, const FloatRect& zoomedRect, float) 133 136 { 134 137 GraphicsContextStateSaver stateSaver(context); 135 138 136 FloatSize corner(2, 2); 139 float roundness = (part == SquareButtonPart) ? 0 : 2; 140 141 FloatSize corner(roundness, roundness); 137 142 FloatRoundedRect roundedRect(zoomedRect, corner, corner, corner, corner); 138 143 Path path; -
trunk/Source/WebCore/platform/wpe/ThemeWPE.h
r231557 r247827 38 38 void paintCheckbox(ControlStates&, GraphicsContext&, const FloatRect&, float); 39 39 void paintRadio(ControlStates&, GraphicsContext&, const FloatRect&, float); 40 void paintButton(Control States&, GraphicsContext&, const FloatRect&, float);40 void paintButton(ControlPart, ControlStates&, GraphicsContext&, const FloatRect&, float); 41 41 }; 42 42
Note: See TracChangeset
for help on using the changeset viewer.