Changeset 108528 in webkit
- Timestamp:
- Feb 22, 2012, 11:37:26 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r108525 r108528 1 2012-02-22 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r62632): page-break-inside: avoid is ignored 4 https://bugs.webkit.org/show_bug.cgi?id=79262 5 6 Reviewed by Adele Peterson. 7 8 * printing/page-break-inside-avoid-expected.txt: 9 1 10 2012-02-22 Adrienne Walker <enne@google.com> 2 11 -
trunk/LayoutTests/printing/page-break-inside-avoid-expected.txt
r62632 r108528 9 9 PASS: page number of "page2" is 2 10 10 PASS: page number of "page3" is 3 11 FAIL: expected page number of "page4" is 4. Was 3 11 PASS: page number of "page4" is 4 12 12 PASS: page number of "page5" is 5 13 13 PASS: page number of "page8" is 8 … … 15 15 PASS: page number of "page9-2" is 9 16 16 PASS: page number of "page10" is 10 17 All tests passed 17 18 18 19 PASS successfullyParsed is true -
trunk/Source/WebCore/ChangeLog
r108524 r108528 1 2012-02-22 Dan Bernstein <mitz@apple.com> 2 3 REGRESSION (r62632): page-break-inside: avoid is ignored 4 https://bugs.webkit.org/show_bug.cgi?id=79262 5 6 Reviewed by Adele Peterson. 7 8 This was disabled in r62632 because of <http://webkit.org/b/41532>. Changes to the 9 pagination code since then have invalidated that bug, so enabling the feature again does not 10 re-introduce the bug. 11 12 Updated expected results for printing/page-break-inside-avoid.html. 13 14 * rendering/RenderBlock.cpp: 15 (WebCore::RenderBlock::adjustForUnsplittableChild): 16 1 17 2012-02-22 Philippe Normand <pnormand@igalia.com> 2 18 … … 4263 4279 2012-02-19 James Robinson <jamesr@chromium.org> 4264 4280 4265 Sort WebCore X Code project files with sort-Xcode-project-files script. Unreviewed.4281 Sort WebCore Xcode project files with sort-Xcode-project-files script. Unreviewed. 4266 4282 4267 4283 * WebCore.xcodeproj/project.pbxproj: -
trunk/Source/WebCore/rendering/RenderBlock.cpp
r108382 r108528 6585 6585 LayoutUnit RenderBlock::adjustForUnsplittableChild(RenderBox* child, LayoutUnit logicalOffset, bool includeMargins) 6586 6586 { 6587 bool isUnsplittable = child->isUnsplittableForPagination() || child->style()->columnBreakInside() == PBAVOID 6588 || child->style()->regionBreakInside() == PBAVOID; 6587 bool checkColumnBreaks = view()->layoutState()->isPaginatingColumns(); 6588 bool checkPageBreaks = !checkColumnBreaks && view()->layoutState()->m_pageLogicalHeight; 6589 bool checkRegionBreaks = inRenderFlowThread(); 6590 bool isUnsplittable = child->isUnsplittableForPagination() || (checkColumnBreaks && child->style()->columnBreakInside() == PBAVOID) 6591 || (checkPageBreaks && child->style()->pageBreakInside() == PBAVOID) 6592 || (checkRegionBreaks && child->style()->regionBreakInside() == PBAVOID); 6589 6593 if (!isUnsplittable) 6590 6594 return logicalOffset;
Note:
See TracChangeset
for help on using the changeset viewer.