Index: third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc |
index 8812b428f8d94248ad92f4a013ac3b821b604f6c..dc91de25eeec2db6f4066f9beebf6bcccb38af3b 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/ng_line_builder.cc |
@@ -309,11 +309,10 @@ void NGLineBuilder::BidiReorder(Vector<LineItemChunk, 32>* line_item_chunks) { |
// TODO(glebl): Add the support of clearance for inline floats. |
void NGLineBuilder::LayoutAndPositionFloat(LayoutUnit end_position, |
LayoutObject* layout_object) { |
- LayoutNGBlockFlow* block_flow = toLayoutNGBlockFlow(layout_object); |
- NGBlockNode* node = new NGBlockNode(block_flow); |
- |
+ NGBlockNode* node = new NGBlockNode(layout_object); |
RefPtr<NGConstraintSpace> float_space = CreateConstraintSpaceForFloat( |
node->Style(), ConstraintSpace(), &space_builder_); |
+ |
// TODO(glebl): add the fragmentation support: |
// same writing mode - get the inline size ComputeInlineSizeForFragment to |
// determine if it fits on this line, then perform layout with the correct |