Changeset 41257 in webkit


Ignore:
Timestamp:
Feb 26, 2009 10:45:25 AM (15 years ago)
Author:
hyatt@apple.com
Message:

WebCore:

2009-02-26 David Hyatt <hyatt@apple.com>

Reviewed by Dan Bernstein & Darin Adler

Make sure the border/padding are properly omitted at the start of an inline that is a continuation.


Added fast/inline/inline-continuation-borders.html

  • rendering/InlineFlowBox.cpp: (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):

LayoutTests:

2009-02-26 David Hyatt <hyatt@apple.com>

Reviewed by Dan Bernstein & Darin Adler

Make sure the border/padding are properly omitted at the start of an inline that is a continuation.

  • fast/inline/inline-continuation-borders.html: Added.
  • platform/mac/fast/inline/inline-continuation-borders-expected.checksum: Added.
  • platform/mac/fast/inline/inline-continuation-borders-expected.png: Added.
  • platform/mac/fast/inline/inline-continuation-borders-expected.txt: Added.
Location:
trunk
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r41254 r41257  
     12009-02-26  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein & Darin Adler
     4
     5        Make sure the border/padding are properly omitted at the start of an inline that is a continuation.
     6
     7        * fast/inline/inline-continuation-borders.html: Added.
     8        * platform/mac/fast/inline/inline-continuation-borders-expected.checksum: Added.
     9        * platform/mac/fast/inline/inline-continuation-borders-expected.png: Added.
     10        * platform/mac/fast/inline/inline-continuation-borders-expected.txt: Added.
     11
    1122009-02-26  Pamela Greene  <pam@chromium.org>
    213
  • trunk/WebCore/ChangeLog

    r41255 r41257  
     12009-02-26  David Hyatt  <hyatt@apple.com>
     2
     3        Reviewed by Dan Bernstein & Darin Adler
     4
     5        Make sure the border/padding are properly omitted at the start of an inline that is a continuation.
     6       
     7        Added fast/inline/inline-continuation-borders.html
     8
     9        * rendering/InlineFlowBox.cpp:
     10        (WebCore::InlineFlowBox::determineSpacingForFlowBoxes):
     11
    1122009-02-26  Simon Fraser  <simon.fraser@apple.com>
    213
  • trunk/WebCore/rendering/InlineFlowBox.cpp

    r41203 r41257  
    217217    bool includeLeftEdge = false;
    218218    bool includeRightEdge = false;
    219    
    220     if (!renderer()->firstChild())
    221         includeLeftEdge = includeRightEdge = true; // Empty inlines never split across lines.
    222     else if (parent()) { // The root inline box never has borders/margins/padding.
     219
     220    // The root inline box never has borders/margins/padding.
     221    if (parent()) {
    223222        bool ltr = renderer()->style()->direction() == LTR;
    224        
     223
    225224        // Check to see if all initial lines are unconstructed.  If so, then
    226         // we know the inline began on this line.
     225        // we know the inline began on this line (unless we are a continuation).
    227226        RenderLineBoxList* lineBoxList = rendererLineBoxes();
    228         if (!lineBoxList->firstLineBox()->isConstructed()) {
     227        if (!lineBoxList->firstLineBox()->isConstructed() && !renderer()->isInlineContinuation()) {
    229228            if (ltr && lineBoxList->firstLineBox() == this)
    230229                includeLeftEdge = true;
Note: See TracChangeset for help on using the changeset viewer.