Changeset 155655 in webkit
- Timestamp:
- Sep 12, 2013 3:55:59 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r155653 r155655 1 2013-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 1 15 2013-09-12 Samuel White <samuel_white@apple.com> 2 16 -
trunk/Source/WebCore/rendering/RenderBlockLineLayout.cpp
r155628 r155655 1408 1408 LayoutUnit logicalLineBottom = lineTop + lineHeight; 1409 1409 LayoutUnit shapeLogicalBottom = shapeInsideInfo->shapeLogicalBottom(); 1410 LayoutUnit shapeContainingBlock Height = shapeInsideInfo->shapeContainingBlockHeight();1411 1412 bool isOverflowPositionedAlready = (shapeContainingBlock Height - shapeInsideInfo->owner()->borderAndPaddingAfter() + lineHeight) <= lineTop;1410 LayoutUnit shapeContainingBlockLogicalHeight = shapeInsideInfo->shapeContainingBlockLogicalHeight(); 1411 1412 bool isOverflowPositionedAlready = (shapeContainingBlockLogicalHeight - shapeInsideInfo->owner()->borderAndPaddingAfter() + lineHeight) <= lineTop; 1413 1413 1414 1414 // If the last line overlaps with the shape, we don't need the segments anymore … … 1416 1416 shapeInsideInfo->clearSegments(); 1417 1417 1418 if (logicalLineBottom <= shapeLogicalBottom || !shapeContainingBlock Height || isOverflowPositionedAlready)1418 if (logicalLineBottom <= shapeLogicalBottom || !shapeContainingBlockLogicalHeight || isOverflowPositionedAlready) 1419 1419 return; 1420 1420 1421 LayoutUnit newLogicalHeight = block->logicalHeight() + (shapeContainingBlock Height - (lineTop + shapeInsideInfo->owner()->borderAndPaddingAfter()));1421 LayoutUnit newLogicalHeight = block->logicalHeight() + (shapeContainingBlockLogicalHeight - (lineTop + shapeInsideInfo->owner()->borderAndPaddingAfter())); 1422 1422 block->setLogicalHeight(newLogicalHeight); 1423 1423 } -
trunk/Source/WebCore/rendering/shapes/ShapeInfo.h
r155627 r155655 97 97 LayoutUnit logicalLineBottom() const { return m_shapeLineTop + m_lineHeight + logicalTopOffset(); } 98 98 99 LayoutUnit shapeContainingBlock Height() 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(); } 100 100 101 101 bool lineOverlapsShapeBounds() const { return logicalLineTop() < shapeLogicalBottom() && shapeLogicalTop() <= logicalLineBottom(); }
Note: See TracChangeset
for help on using the changeset viewer.