Changeset 155655 in webkit


Ignore:
Timestamp:
Sep 12, 2013 3:55:59 PM (11 years ago)
Author:
zoltan@webkit.org
Message:

[CSS Shapes] Rename shapeContainingBlockHeight to shapeContainingBlockLogicalHeight
https://bugs.webkit.org/show_bug.cgi?id=121252

Reviewed by Oliver Hunt.

No new tests, no behavior change.

  • rendering/RenderBlockLineLayout.cpp:

(WebCore::pushShapeContentOverflowBelowTheContentBox):

  • rendering/shapes/ShapeInfo.h:

(WebCore::ShapeInfo::shapeContainingBlockLogicalHeight):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r155653 r155655  
     12013-09-12  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        [CSS Shapes] Rename shapeContainingBlockHeight to shapeContainingBlockLogicalHeight
     4        https://bugs.webkit.org/show_bug.cgi?id=121252
     5
     6        Reviewed by Oliver Hunt.
     7
     8        No new tests, no behavior change.
     9
     10        * rendering/RenderBlockLineLayout.cpp:
     11        (WebCore::pushShapeContentOverflowBelowTheContentBox):
     12        * rendering/shapes/ShapeInfo.h:
     13        (WebCore::ShapeInfo::shapeContainingBlockLogicalHeight):
     14
    1152013-09-12  Samuel White  <samuel_white@apple.com>
    216
  • trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp

    r155628 r155655  
    14081408    LayoutUnit logicalLineBottom = lineTop + lineHeight;
    14091409    LayoutUnit shapeLogicalBottom = shapeInsideInfo->shapeLogicalBottom();
    1410     LayoutUnit shapeContainingBlockHeight = shapeInsideInfo->shapeContainingBlockHeight();
    1411 
    1412     bool isOverflowPositionedAlready = (shapeContainingBlockHeight - shapeInsideInfo->owner()->borderAndPaddingAfter() + lineHeight) <= lineTop;
     1410    LayoutUnit shapeContainingBlockLogicalHeight = shapeInsideInfo->shapeContainingBlockLogicalHeight();
     1411
     1412    bool isOverflowPositionedAlready = (shapeContainingBlockLogicalHeight - shapeInsideInfo->owner()->borderAndPaddingAfter() + lineHeight) <= lineTop;
    14131413
    14141414    // If the last line overlaps with the shape, we don't need the segments anymore
     
    14161416        shapeInsideInfo->clearSegments();
    14171417
    1418     if (logicalLineBottom <= shapeLogicalBottom || !shapeContainingBlockHeight || isOverflowPositionedAlready)
     1418    if (logicalLineBottom <= shapeLogicalBottom || !shapeContainingBlockLogicalHeight || isOverflowPositionedAlready)
    14191419        return;
    14201420
    1421     LayoutUnit newLogicalHeight = block->logicalHeight() + (shapeContainingBlockHeight - (lineTop + shapeInsideInfo->owner()->borderAndPaddingAfter()));
     1421    LayoutUnit newLogicalHeight = block->logicalHeight() + (shapeContainingBlockLogicalHeight - (lineTop + shapeInsideInfo->owner()->borderAndPaddingAfter()));
    14221422    block->setLogicalHeight(newLogicalHeight);
    14231423}
  • trunk/Source/WebCore/rendering/shapes/ShapeInfo.h

    r155627 r155655  
    9797    LayoutUnit logicalLineBottom() const { return m_shapeLineTop + m_lineHeight + logicalTopOffset(); }
    9898
    99     LayoutUnit shapeContainingBlockHeight() const { return (m_renderer->style()->boxSizing() == CONTENT_BOX) ? (m_shapeLogicalSize.height() + m_renderer->borderAndPaddingLogicalHeight()) : m_shapeLogicalSize.height(); }
     99    LayoutUnit shapeContainingBlockLogicalHeight() const { return (m_renderer->style()->boxSizing() == CONTENT_BOX) ? (m_shapeLogicalSize.height() + m_renderer->borderAndPaddingLogicalHeight()) : m_shapeLogicalSize.height(); }
    100100
    101101    bool lineOverlapsShapeBounds() const { return logicalLineTop() < shapeLogicalBottom() && shapeLogicalTop() <= logicalLineBottom(); }
Note: See TracChangeset for help on using the changeset viewer.