Changeset 167707 in webkit
- Timestamp:
- Apr 23, 2014 6:36:30 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r167706 r167707 1 2014-04-23 Morten Stenshorne <mstensho@opera.com> 2 3 [New Multicolumn] fast/multicol/overflow-content.html displays red 4 https://bugs.webkit.org/show_bug.cgi?id=131809 5 6 Reviewed by David Hyatt. 7 8 * fast/multicol/break-in-columns-before-spanner-expected.html: Added. 9 * fast/multicol/break-in-columns-before-spanner.html: Added. 10 * fast/multicol/newmulticol/compare-with-old-impl/overflow-content-expected.html: Added. 11 * fast/multicol/newmulticol/compare-with-old-impl/overflow-content.html: Added. 12 1 13 2014-04-23 Morten Stenshorne <mstensho@opera.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r167706 r167707 1 2014-04-23 Morten Stenshorne <mstensho@opera.com> 2 3 [New Multicolumn] fast/multicol/overflow-content.html displays red 4 https://bugs.webkit.org/show_bug.cgi?id=131809 5 6 Reviewed by David Hyatt. 7 8 Insert a break at end of content on our own in the multicol code, to make sure 9 that overflow is accounted for, and also to make sure that we account for all 10 content in non-final sets (i.e. those preceding spanners). 11 12 In other words, this will additionally fix balancing issues in sets preceding 13 a spanner. Added a test for that. 14 15 Tests: fast/multicol/break-in-columns-before-spanner.html 16 fast/multicol/newmulticol/compare-with-old-impl/overflow-content.html 17 18 * rendering/RenderFlowThread.cpp: 19 (WebCore::RenderFlowThread::regionInRange): Deleted. 20 * rendering/RenderFlowThread.h: 21 * rendering/RenderMultiColumnSet.cpp: 22 (WebCore::RenderMultiColumnSet::distributeImplicitBreaks): 23 * rendering/RenderNamedFlowThread.cpp: 24 (WebCore::RenderNamedFlowThread::applyBreakAfterContent): 25 * rendering/RenderNamedFlowThread.h: 26 1 27 2014-04-23 Morten Stenshorne <mstensho@opera.com> 2 28 -
trunk/Source/WebCore/rendering/RenderFlowThread.cpp
r167541 r167707 790 790 } 791 791 792 void RenderFlowThread::applyBreakAfterContent(LayoutUnit clientHeight)793 {794 // Simulate a region break at height. If it points inside an auto logical height region,795 // then it may determine the region computed autoheight.796 addForcedRegionBreak(this, clientHeight, this, false);797 }798 799 792 bool RenderFlowThread::regionInRange(const RenderRegion* targetRegion, const RenderRegion* startRegion, const RenderRegion* endRegion) const 800 793 { -
trunk/Source/WebCore/rendering/RenderFlowThread.h
r167335 r167707 148 148 149 149 virtual bool addForcedRegionBreak(const RenderBlock*, LayoutUnit, RenderBox* breakChild, bool isBefore, LayoutUnit* offsetBreakAdjustment = 0); 150 v oid applyBreakAfterContent(LayoutUnit);150 virtual void applyBreakAfterContent(LayoutUnit) { } 151 151 152 152 virtual bool isPageLogicalHeightKnown() const { return true; } -
trunk/Source/WebCore/rendering/RenderMultiColumnSet.cpp
r167678 r167707 192 192 void RenderMultiColumnSet::distributeImplicitBreaks() 193 193 { 194 unsigned breakCount = forcedBreaksCount();195 196 194 #ifndef NDEBUG 197 195 // There should be no implicit breaks assumed at this point. 198 for (unsigned i = 0; i < breakCount; i++)196 for (unsigned i = 0; i < forcedBreaksCount(); i++) 199 197 ASSERT(!m_contentRuns[i].assumedImplicitBreaks()); 200 198 #endif // NDEBUG 201 199 202 if (!breakCount) { 203 // The flow thread would normally insert a forced break at end of content, but if this set 204 // isn't last in the multicol container, we have to do it ourselves. 205 addForcedBreak(logicalBottomInFlowThread()); 206 breakCount = 1; 207 } 200 // Insert a final content run to encompass all content. This will include overflow if this is 201 // the last set. 202 addForcedBreak(logicalBottomInFlowThread()); 203 unsigned breakCount = forcedBreaksCount(); 208 204 209 205 // If there is room for more breaks (to reach the used value of column-count), imagine that we -
trunk/Source/WebCore/rendering/RenderNamedFlowThread.cpp
r166867 r167707 797 797 } 798 798 799 void RenderNamedFlowThread::applyBreakAfterContent(LayoutUnit clientHeight) 800 { 801 // Simulate a region break at height. If it points inside an auto logical height region, 802 // then it may determine the region computed autoheight. 803 addForcedRegionBreak(this, clientHeight, this, false); 804 } 805 799 806 bool RenderNamedFlowThread::collectsGraphicsLayersUnderRegions() const 800 807 { -
trunk/Source/WebCore/rendering/RenderNamedFlowThread.h
r167652 r167707 82 82 void getRanges(Vector<RefPtr<Range>>&, const RenderNamedFlowFragment*) const; 83 83 84 virtual void applyBreakAfterContent(LayoutUnit) override final; 85 84 86 virtual bool collectsGraphicsLayersUnderRegions() const override; 85 87
Note: See TracChangeset
for help on using the changeset viewer.