Changeset 61065 in webkit
- Timestamp:
- Jun 12, 2010 1:05:08 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r61062 r61065 1 2010-06-12 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Dave Hyatt. 4 5 <rdar://problem/7882140> -webkit-column-break-* properties don’t do anything 6 https://bugs.webkit.org/show_bug.cgi?id=40531 7 8 * fast/multicol/break-properties-expected.txt: Added. 9 * fast/multicol/break-properties.html: Added. 10 1 11 2010-06-13 Robert Hogan <robert@webkit.org> 2 12 -
trunk/WebCore/ChangeLog
r61062 r61065 1 2010-06-12 Dan Bernstein <mitz@apple.com> 2 3 Reviewed by Dave Hyatt. 4 5 <rdar://problem/7882140> -webkit-column-break-* properties don’t do anything 6 https://bugs.webkit.org/show_bug.cgi?id=40531 7 8 Test: fast/multicol/break-properties.html 9 10 * rendering/RenderBlock.cpp: 11 (WebCore::RenderBlock::paintChildren): Check for -webkit-column-break-{before,after}: always 12 and -webkit-column-break-inside: avoid when doing column layout. 13 1 14 2010-06-13 Robert Hogan <robert@webkit.org> 2 15 -
trunk/WebCore/rendering/RenderBlock.cpp
r61044 r61065 2102 2102 info.paintingRoot = paintingRootForChildren(paintInfo); 2103 2103 bool checkPageBreaks = document()->printing() && !document()->settings()->paginateDuringLayoutEnabled(); 2104 bool checkColumnBreaks = !checkPageBreaks && !view()->printRect().isEmpty() && !document()->settings()->paginateDuringLayoutEnabled(); 2104 2105 2105 2106 for (RenderBox* child = firstChildBox(); child; child = child->nextSiblingBox()) { 2106 2107 // Check for page-break-before: always, and if it's set, break and bail. 2107 if (checkPageBreaks && !childrenInline() && child->style()->pageBreakBefore() == PBALWAYS 2108 bool checkBeforeAlways = !childrenInline() && (checkPageBreaks && child->style()->pageBreakBefore() == PBALWAYS || checkColumnBreaks && child->style()->columnBreakBefore() == PBALWAYS); 2109 if (checkBeforeAlways 2108 2110 && (ty + child->y()) > paintInfo.rect.y() 2109 2111 && (ty + child->y()) < paintInfo.rect.bottom()) { … … 2113 2115 2114 2116 // Check for page-break-inside: avoid, and it it's set, break and bail. 2115 if (checkPageBreaks && !childrenInline() && child->style()->pageBreakInside() == PBAVOID 2117 bool checkInsideAvoid = !childrenInline() && (checkPageBreaks && child->style()->pageBreakInside() == PBAVOID || checkColumnBreaks && child->style()->columnBreakInside() == PBAVOID); 2118 if (checkInsideAvoid 2116 2119 && ty + child->y() > paintInfo.rect.y() 2117 2120 && ty + child->y() < paintInfo.rect.bottom() … … 2125 2128 2126 2129 // Check for page-break-after: always, and if it's set, break and bail. 2127 if (checkPageBreaks && !childrenInline() && child->style()->pageBreakAfter() == PBALWAYS 2130 bool checkAfterAlways = !childrenInline() && (checkPageBreaks && child->style()->pageBreakAfter() == PBALWAYS || checkColumnBreaks && child->style()->columnBreakAfter() == PBALWAYS); 2131 if (checkAfterAlways 2128 2132 && (ty + child->y() + child->height()) > paintInfo.rect.y() 2129 2133 && (ty + child->y() + child->height()) < paintInfo.rect.bottom()) {
Note: See TracChangeset
for help on using the changeset viewer.