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

Unified Diff: third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h

Issue 2532573003: Position a float before laying it out. (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/api/LineLayoutBlockFlow.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h b/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
index c2d1ae32cf1596ff4b9698ebb21c0920429eaa2a..51df00a8dfffce9d54ad899773ffc9784c305aea 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h
@@ -122,6 +122,11 @@ class LineLayoutBlockFlow : public LineLayoutBox {
return toBlockFlow()->placeNewFloats(logicalTopMarginEdge, width);
}
+ void positionAndLayoutFloat(FloatingObject& floatingObject,
+ LayoutUnit logicalTopMarginEdge) {
+ toBlockFlow()->positionAndLayoutFloat(floatingObject, logicalTopMarginEdge);
+ }
+
LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const {
return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight);
}

Powered by Google App Engine
This is Rietveld 408576698