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

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

Issue 2486413002: Split positionAndLayoutFloat() off positionNewFloats(). (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 15b30a0a7aefe397edf9db6c10968aee625de09b..50f77353f0c4fcdc7eca3c3d38ce4bf10f7b8345 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.h
@@ -352,6 +352,11 @@ class CORE_EXPORT LayoutBlockFlow : public LayoutBlock {
// Returns true if and only if it has positioned any floats.
bool positionNewFloats(LineWidth* = nullptr);
+ // Position and lay out the float, if it needs layout.
+ // |logicalTop| is the minimum logical top offset for the float (margin edge).
+ // The value returned is the minimum logical top offset for subsequent floats.
+ LayoutUnit positionAndLayoutFloat(FloatingObject&, LayoutUnit logicalTop);
+
LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit) const;
LayoutUnit nextFloatLogicalBottomBelowForBlock(LayoutUnit) const;

Powered by Google App Engine
This is Rietveld 408576698