Chromium Code Reviews

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

Issue 1399493002: Column balancing refactoring. Don't propagate data during layout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/layout/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index dc1db87fd18b0ef7e3968202b6d9981dddcd5c17..ded77a4341c719cc8decf41ea333a2c80fe9c1a1 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -2698,10 +2698,10 @@ LayoutUnit LayoutBlock::pageRemainingLogicalHeightForOffset(LayoutUnit offset, P
return flowThread->pageRemainingLogicalHeightForOffset(offset, pageBoundaryRule);
}
-void LayoutBlock::setPageBreak(LayoutUnit offset, LayoutUnit spaceShortage)
+void LayoutBlock::paginatedContentWasLaidOut(LayoutUnit logicalTopOffsetAfterPagination)
{
if (LayoutFlowThread* flowThread = flowThreadContainingBlock())
- flowThread->setPageBreak(offsetFromLogicalTopOfFirstPage() + offset, spaceShortage);
+ flowThread->contentWasLaidOut(offsetFromLogicalTopOfFirstPage() + logicalTopOffsetAfterPagination);
}
void LayoutBlock::updateMinimumPageHeight(LayoutUnit offset, LayoutUnit minHeight)

Powered by Google App Engine