Changeset 149897 in webkit


Ignore:
Timestamp:
May 10, 2013 12:02:56 PM (11 years ago)
Author:
robert@webkit.org
Message:

REGRESSION(r148121): Empty Span does not get a linebox when it's in an anonymous block
https://bugs.webkit.org/show_bug.cgi?id=115818

Reviewed by David Hyatt.

Source/WebCore:

r148121 only worried about split inlines inside anonymous blocks - it ought to have
catered for empty inlines, with no continuations, inside a single solitary anonymous block too.

Test: fast/inline/anonymous-block-with-empty-inline.html

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::hasInlineDirectionBordersPaddingOrMargin):

LayoutTests:

  • fast/inline/anonymous-block-with-empty-inline-expected.txt: Added.
  • fast/inline/anonymous-block-with-empty-inline.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r149891 r149897  
     12013-05-10  Robert Hogan  <robert@webkit.org>
     2
     3        REGRESSION(r148121): Empty Span does not get a linebox when it's in an anonymous block
     4        https://bugs.webkit.org/show_bug.cgi?id=115818
     5
     6        Reviewed by David Hyatt.
     7
     8        * fast/inline/anonymous-block-with-empty-inline-expected.txt: Added.
     9        * fast/inline/anonymous-block-with-empty-inline.html: Added.
     10
    1112013-05-10  Dean Jackson  <dino@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r149895 r149897  
     12013-05-10  Robert Hogan  <robert@webkit.org>
     2
     3        REGRESSION(r148121): Empty Span does not get a linebox when it's in an anonymous block
     4        https://bugs.webkit.org/show_bug.cgi?id=115818
     5
     6        Reviewed by David Hyatt.
     7
     8        r148121 only worried about split inlines inside anonymous blocks - it ought to have
     9        catered for empty inlines, with no continuations, inside a single solitary anonymous block too.
     10
     11        Test: fast/inline/anonymous-block-with-empty-inline.html
     12
     13        * rendering/RenderBlockLineLayout.cpp:
     14        (WebCore::hasInlineDirectionBordersPaddingOrMargin):
     15
    1162013-05-10  Zan Dobersek  <zdobersek@igalia.com>
    217
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r149891 r149897  
    23982398    // Where an empty inline is split across anonymous blocks we should only give lineboxes to the 'sides' of the
    23992399    // inline that have borders, padding or margin.
    2400     bool shouldApplyStartBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || flow->inlineElementContinuation();
     2400    bool shouldApplyStartBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || !flow->isInlineElementContinuation();
    24012401    if (shouldApplyStartBorderPaddingOrMargin && (flow->borderStart() || flow->marginStart() || flow->paddingStart()))
    24022402        return true;
    24032403
    2404     bool shouldApplyEndBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || !flow->inlineElementContinuation();
     2404    bool shouldApplyEndBorderPaddingOrMargin = !flow->parent()->isAnonymousBlock() || flow->isInlineElementContinuation() || !flow->inlineElementContinuation();
    24052405    return shouldApplyEndBorderPaddingOrMargin && (flow->borderEnd() || flow->marginEnd() || flow->paddingEnd());
    24062406}
Note: See TracChangeset for help on using the changeset viewer.