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

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

Issue 2513643002: Introduce adjustFloatLogicalTopForPagination(), to offload positionAndLayoutFloat(). (Closed)
Patch Set: Created 4 years, 1 month 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/LayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
index e62f94232e9b9dedc56b224efe1b73b6799bbab9..44b0b3c46706d7bc398647e0d9146586339e57e8 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -819,9 +819,17 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
LayoutBox& child,
BlockChildrenLayoutInfo&,
bool atBeforeSideOfBlock);
+
+ // If a float cannot fit in the current fragmentainer, return the logical top
+ // margin edge that the float needs to have in order to be pushed to the top
+ // of the next fragmentainer. Otherwise, just return |logicalTopMarginEdge|.
+ LayoutUnit adjustFloatForPagination(LayoutBox&,
+ LayoutUnit logicalTopMarginEdge);
+
// Computes a deltaOffset value that put a line at the top of the next page if
// it doesn't fit on the current page.
void adjustLinePositionForPagination(RootInlineBox&, LayoutUnit& deltaOffset);
+
// If the child is unsplittable and can't fit on the current page, return the
// top of the next page/column.
LayoutUnit adjustForUnsplittableChild(LayoutBox&,

Powered by Google App Engine
This is Rietveld 408576698