12012-09-07 KyungTae Kim <ktf.kim@samsung.com>
2
3 [EFL] Wrong rendering results for square-button-appearance.html
4 https://bugs.webkit.org/show_bug.cgi?id=85493
5
6 Reviewed by NOBODY (OOPS!).
7
8 A square-button is an element that has '-webkit-appearance: square-button' style.
9
10 If it is a block element,
11 the RenderBlock::recomputeLogicalWidth recalculate the width from the padding values.
12
13 But the recalculated width became wrong because the RenderThemeEfl::adjustSizeConstraints
14 called from RenderThemeEfl::adjustButtonStyle adds padding values for a button.
15
16 So, the adjustSizeConstraints must not be called for a square-button(SquareButtonPart).
17
18 Test : fast/css/square-button-appearance.html
19
20 * platform/efl/RenderThemeEfl.cpp:
21 (WebCore::RenderThemeEfl::adjustButtonStyle): Call adjustSizeConstrains only for PushButtonPart and ButtonPart
22