Changeset 128013 in webkit


Ignore:
Timestamp:
Sep 9, 2012 8:34:30 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Wrong rendering results for square-button-appearance.html
https://bugs.webkit.org/show_bug.cgi?id=85493

Patch by KyungTae Kim <ktf.kim@samsung.com> on 2012-09-09
Reviewed by Gyuyoung Kim.

Source/WebCore:

A square-button is an element that has '-webkit-appearance: square-button' style.

If it is a block element,
the RenderBlock::recomputeLogicalWidth recalculate the width from the padding values.

But the recalculated width became wrong because the RenderThemeEfl::adjustSizeConstraints
called from RenderThemeEfl::adjustButtonStyle adds padding values for a button.

So, the adjustSizeConstraints must not be called for a square-button(SquareButtonPart).

Test : fast/css/square-button-appearance.html

  • platform/efl/RenderThemeEfl.cpp:

(WebCore::RenderThemeEfl::adjustButtonStyle): Call adjustSizeConstrains only for PushButtonPart and ButtonPart

LayoutTests:

Remove fast/css/square-button-appearance.html from TestExpectations because it became PASS.

  • platform/efl/TestExpectations:
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r128012 r128013  
     12012-09-09  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 Gyuyoung Kim.
     7
     8        Remove fast/css/square-button-appearance.html from TestExpectations because it became PASS.
     9
     10        * platform/efl/TestExpectations:
     11
    1122012-09-09  Kenichi Ishibashi  <bashi@chromium.org>
    213
  • trunk/LayoutTests/platform/efl/TestExpectations

    r127989 r128013  
    625625BUGWK85484 : fast/forms/textarea-scrolled-type.html = MISSING
    626626
    627 BUGWK85493 : fast/css/square-button-appearance.html = TEXT
    628 
    629627BUGWK73766 : css3/unicode-bidi-isolate-aharon-failing.html = IMAGE IMAGE+TEXT
    630628
  • trunk/Source/WebCore/ChangeLog

    r128011 r128013  
     12012-09-09  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 Gyuyoung Kim.
     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
    1232012-09-09  Jinwoo Song  <jinwoo7.song@samsung.com>
    224
  • trunk/Source/WebCore/platform/efl/RenderThemeEfl.cpp

    r127786 r128013  
    879879    }
    880880
    881     adjustSizeConstraints(style, Button);
     881    // adjustSizeConstrains can make SquareButtonPart's size wrong (by adjusting paddings), so call it only for PushButtonPart and ButtonPart
     882    if (style->appearance() == PushButtonPart || style->appearance() == ButtonPart)
     883        adjustSizeConstraints(style, Button);
    882884}
    883885
Note: See TracChangeset for help on using the changeset viewer.