Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(200)

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

Issue 2400863005: Reformat comments in core/layout up until LayoutTableRow (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp b/third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp
index 73603a68d35df1fe47f6a21d36a365b3f7377e4b..d7074174a07f54a31fb8e5df611d1f8e99f7bf5f 100644
--- a/third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutPagedFlowThread.cpp
@@ -30,16 +30,15 @@ bool LayoutPagedFlowThread::needsNewWidth() const {
}
void LayoutPagedFlowThread::updateLogicalWidth() {
- // As long as we inherit from LayoutMultiColumnFlowThread, we need to bypass its implementation
- // here. We're not split into columns, so the flow thread width will just be whatever is
- // available in the containing block.
+ // As long as we inherit from LayoutMultiColumnFlowThread, we need to bypass
+ // its implementation here. We're not split into columns, so the flow thread
+ // width will just be whatever is available in the containing block.
LayoutFlowThread::updateLogicalWidth();
}
void LayoutPagedFlowThread::layout() {
- ASSERT(
- firstMultiColumnBox() ==
- lastMultiColumnBox()); // There should either be zero or one of those for paged layout.
+ // There should either be zero or one of those for paged layout.
+ DCHECK(firstMultiColumnBox() == lastMultiColumnBox());
setProgressionIsInline(pagedBlockFlow()->style()->hasInlinePaginationAxis());
LayoutMultiColumnFlowThread::layout();
@@ -49,9 +48,10 @@ void LayoutPagedFlowThread::layout() {
LayoutUnit pageLogicalHeight =
columnSet->pageLogicalHeightForOffset(LayoutUnit());
if (!pageLogicalHeight)
- return; // Page height not calculated yet. Happens in the first layout pass when height is auto.
- // Ensure uniform page height. We don't want the last page to be shorter than the others,
- // or it'll be impossible to scroll that whole page into view.
+ return; // Page height not calculated yet. Happens in the first layout pass
+ // when height is auto.
+ // Ensure uniform page height. We don't want the last page to be shorter than
+ // the others, or it'll be impossible to scroll that whole page into view.
LayoutUnit paddedLogicalBottomInFlowThread = pageLogicalHeight * pageCount();
ASSERT(paddedLogicalBottomInFlowThread >=
columnSet->logicalBottomInFlowThread());

Powered by Google App Engine
This is Rietveld 408576698