2011-06-06 Yael Aharon <yael.aharon@nokia.com>
authoryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2011 18:32:54 +0000 (18:32 +0000)
committeryael.aharon@nokia.com <yael.aharon@nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 6 Jun 2011 18:32:54 +0000 (18:32 +0000)
commit283583e8cd671dd0d987e6dea76b8f8eaa0c36c2
tree216958857c6fb547b382aeccc390afce44e730fc
parentc68d5a3123070c0d833fa4c012666b429c396ecc
2011-06-06  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Eric Seidel.

        Inline elements are wrapped prematurely with non-zero border, margin or padding.
        https://bugs.webkit.org/show_bug.cgi?id=60459

        * fast/inline/inline-wrap-with-parent-padding.html: Added.
        * platform/mac/fast/inline/inline-wrap-with-parent-padding-expected.png: Added.
        * platform/mac/fast/inline/inline-wrap-with-parent-padding-expected.txt: Added.
2011-06-06  Yael Aharon  <yael.aharon@nokia.com>

        Reviewed by Eric Seidel.

        Inline elements are wrapped prematurely with non-zero border, margin or padding.
        https://bugs.webkit.org/show_bug.cgi?id=60459

        When an inline element has a right border/margin/padding and it has more than one descendant with no siblings,
        the width of the right border/margin/padding should be included in line breaking calculation only once,
        and not for each descendant.

        Test: fast/inline/inline-wrap-with-parent-padding.html

        * rendering/RenderBlockLineLayout.cpp:
        (WebCore::RenderBlock::LineBreaker::nextLineBreak):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@88175 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/inline/inline-wrap-with-parent-padding.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/inline/inline-wrap-with-parent-padding-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/fast/inline/inline-wrap-with-parent-padding-expected.txt [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderBlockLineLayout.cpp