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

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

Issue 2483023002: Let positionNewFloats() take a logicalTop parameter. (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
« 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 15b30a0a7aefe397edf9db6c10968aee625de09b..d944bc893eaacf88fe76e8ddd25fc45b26104a35 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -348,9 +348,14 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
FloatingObject* insertFloatingObject(LayoutBox&);
- // Called from lineWidth, to position the floats added in the last line.
+ // Position all floats that have not yet been positioned.
+ //
+ // |logicalTop| is the minimum logical top for the floats. The final logical
+ // top of the floats will also be affected by clearance and space available
+ // after having positioned earlier floats.
+ //
// Returns true if and only if it has positioned any floats.
- bool positionNewFloats(LineWidth* = nullptr);
+ bool positionNewFloats(LayoutUnit logicalTop, LineWidth* = nullptr);
LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const;
LayoutUnit nextFloatLogicalBottomBelowForBlock(LayoutUnit) const;
« 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