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

Unified Diff: third_party/WebKit/Source/core/layout/ColumnBalancer.h

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Created 4 years, 11 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/ColumnBalancer.h
diff --git a/third_party/WebKit/Source/core/layout/ColumnBalancer.h b/third_party/WebKit/Source/core/layout/ColumnBalancer.h
index f78e191dbade9c39cd83c61f33340b0d1036a9d4..124cacecef78697b302a75574316077c801a057f 100644
--- a/third_party/WebKit/Source/core/layout/ColumnBalancer.h
+++ b/third_party/WebKit/Source/core/layout/ColumnBalancer.h
@@ -132,7 +132,10 @@ private:
// Return the column height that this content run would require, considering the implicit
// breaks assumed so far.
- LayoutUnit columnLogicalHeight(LayoutUnit startOffset) const { return ceilf((m_breakOffset - startOffset).toFloat() / float(m_assumedImplicitBreaks + 1)); }
+ LayoutUnit columnLogicalHeight(LayoutUnit startOffset) const
+ {
+ return LayoutUnit(ceilf((m_breakOffset - startOffset).toFloat() / float(m_assumedImplicitBreaks + 1)));
eae 2016/01/29 23:57:42 return LayoutUnit::fromFloatCeil((m_breakOffset -
+ }
private:
LayoutUnit m_breakOffset; // Flow thread offset where this run ends.

Powered by Google App Engine
This is Rietveld 408576698