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

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

Issue 2513643002: Introduce adjustFloatLogicalTopForPagination(), to offload positionAndLayoutFloat(). (Closed)
Patch Set: Code review 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5d92d633db6c38cff72b9531057745ce6adb872a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -819,9 +819,18 @@ 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 adjustFloatLogicalTopForPagination(
+ 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&,
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698