Changeset 167617 in webkit
- Timestamp:
- Apr 21, 2014 1:20:27 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r167607 r167617 1 2014-04-21 David Hyatt <hyatt@apple.com> 2 3 [New Multicolumn] Column set drawing under horizontal scrollbar. 4 https://bugs.webkit.org/show_bug.cgi?id=131812. 5 6 Reviewed by Sam Weinig. 7 8 * fast/multicol/newmulticol/compare-with-old-impl/LeftToRight-tb-expected.html: Added. 9 * fast/multicol/newmulticol/compare-with-old-impl/LeftToRight-tb.html: Added. 10 1 11 2014-04-21 Alexey Proskuryakov <ap@apple.com> 2 12 -
trunk/Source/WebCore/ChangeLog
r167616 r167617 1 2014-04-21 David Hyatt <hyatt@apple.com> 2 3 [New Multicolumn] Column set drawing under horizontal scrollbar. 4 https://bugs.webkit.org/show_bug.cgi?id=131812. 5 6 Reviewed by Sam Weinig. 7 8 Added fast/multicol/newmulticol/compare-with-old-impl/LeftToRight-tb.html. 9 10 * rendering/RenderBlockFlow.cpp: 11 (WebCore::RenderBlockFlow::layoutBlock): 12 (WebCore::RenderBlockFlow::checkForPaginationLogicalHeightChange): 13 * rendering/RenderBlockFlow.h: 14 Pass in relayoutChildren as a reference boolean to checkForPaginationLogicalHeightChange. 15 The new columns need to be able to set it to true if the amount of available column 16 height ever changes, so that the RenderFlowThread and the sets get a layout call. 17 18 * rendering/style/RenderStyle.cpp: 19 (WebCore::RenderStyle::setColumnStylesFromPaginationMode): 20 Make sure that the pagination mode is set up with an auto column-fill specified. You 21 don't ever want to balance when you set a pagination mode on the RenderView. 22 1 23 2014-04-21 Tim Horton <timothy_horton@apple.com> 2 24 -
trunk/Source/WebCore/rendering/RenderBlockFlow.cpp
r167602 r167617 344 344 bool pageLogicalHeightChanged = false; 345 345 bool hasSpecifiedPageLogicalHeight = false; 346 checkForPaginationLogicalHeightChange( pageLogicalHeight, pageLogicalHeightChanged, hasSpecifiedPageLogicalHeight);346 checkForPaginationLogicalHeightChange(relayoutChildren, pageLogicalHeight, pageLogicalHeightChanged, hasSpecifiedPageLogicalHeight); 347 347 348 348 const RenderStyle& styleToUse = style(); … … 3558 3558 } 3559 3559 3560 void RenderBlockFlow::checkForPaginationLogicalHeightChange( LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight)3560 void RenderBlockFlow::checkForPaginationLogicalHeightChange(bool& relayoutChildren, LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight) 3561 3561 { 3562 3562 // If we don't use either of the two column implementations or a flow thread, then bail. … … 3569 3569 computeLogicalHeight(LayoutUnit(), logicalTop(), computedValues); 3570 3570 LayoutUnit columnHeight = computedValues.m_extent - borderAndPaddingLogicalHeight() - scrollbarLogicalHeight(); 3571 LayoutUnit oldHeightAvailable = flowThread->columnHeightAvailable(); 3571 3572 flowThread->setColumnHeightAvailable(std::max<LayoutUnit>(columnHeight, 0)); 3573 if (oldHeightAvailable != flowThread->columnHeightAvailable()) 3574 relayoutChildren = true; 3572 3575 } else if (hasColumns()) { 3573 3576 ColumnInfo* colInfo = columnInfo(); -
trunk/Source/WebCore/rendering/RenderBlockFlow.h
r167463 r167617 458 458 virtual RenderObject* layoutSpecialExcludedChild(bool /*relayoutChildren*/); 459 459 460 void checkForPaginationLogicalHeightChange( LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight);460 void checkForPaginationLogicalHeightChange(bool& relayoutChildren, LayoutUnit& pageLogicalHeight, bool& pageLogicalHeightChanged, bool& hasSpecifiedPageLogicalHeight); 461 461 462 462 virtual void paintInlineChildren(PaintInfo&, const LayoutPoint&) override; -
trunk/Source/WebCore/rendering/style/RenderStyle.cpp
r167281 r167617 1766 1766 if (paginationMode == Pagination::Unpaginated) 1767 1767 return; 1768 1768 1769 setColumnFill(ColumnFillAuto); 1770 1769 1771 switch (paginationMode) { 1770 1772 case Pagination::LeftToRightPaginated:
Note: See TracChangeset
for help on using the changeset viewer.