Show
Ignore:
Timestamp:
01/21/07 12:29:41 (2 years ago)
Author:
weinig
Message:

LayoutTests:

Reviewed by Darin.

  • fast/overflow/position-relative-expected.checksum: Added.
  • fast/overflow/position-relative-expected.png: Added.
  • fast/overflow/position-relative-expected.txt: Added.
  • fast/overflow/position-relative.html: Added.

WebCore:

Reviewed by Darin.

Test: fast/overflow/position-relative.html

  • rendering/RenderBox.cpp: (WebCore::RenderBox::lowestPosition): Add the relative position offset only if 'includeSelf' is true. (WebCore::RenderBox::rightmostPosition): Ditto. (WebCore::RenderBox::leftmostPosition): Ditto.
  • rendering/RenderFlow.cpp: (WebCore::RenderFlow::lowestPosition): Ditto. (WebCore::RenderFlow::rightmostPosition): Ditto. (WebCore::RenderFlow::leftmostPosition): Ditto.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/rendering/RenderBox.cpp

    r18918 r19012  
    24112411        return 0; 
    24122412    int bottom = m_height; 
    2413     if (isRelPositioned()) 
     2413    if (includeSelf && isRelPositioned()) 
    24142414        bottom += relativePositionOffsetY(); 
    24152415    return bottom; 
     
    24212421        return 0; 
    24222422    int right = m_width; 
    2423     if (isRelPositioned()) 
     2423    if (includeSelf && isRelPositioned()) 
    24242424        right += relativePositionOffsetX(); 
    24252425    return right; 
     
    24312431        return m_width; 
    24322432    int left = 0; 
    2433     if (isRelPositioned()) 
     2433    if (includeSelf && isRelPositioned()) 
    24342434        left += relativePositionOffsetX(); 
    24352435    return left;