Index: third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc |
diff --git a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc |
index 1a426a995436c58bfa9aa557018415994cbed4bb..89db06af1f7341070566b05b9763c1f7a126498e 100644 |
--- a/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc |
+++ b/third_party/WebKit/Source/core/layout/ng/inline/ng_inline_layout_algorithm.cc |
@@ -55,11 +55,11 @@ NGInlineLayoutAlgorithm::NGInlineLayoutAlgorithm( |
// Only resolve our BFC offset if we know that we are non-empty as we may |
// need to pass through our margin strut. |
if (!inline_node->Items().IsEmpty()) { |
- NGLogicalOffset bfc_offset = ConstraintSpace().BfcOffset(); |
- bfc_offset.block_offset += ConstraintSpace().MarginStrut().Sum(); |
- MaybeUpdateFragmentBfcOffset(ConstraintSpace(), bfc_offset, |
+ LayoutUnit bfc_block_offset = ConstraintSpace().BfcOffset().block_offset; |
+ bfc_block_offset += ConstraintSpace().MarginStrut().Sum(); |
+ MaybeUpdateFragmentBfcOffset(ConstraintSpace(), bfc_block_offset, |
&container_builder_); |
- PositionPendingFloats(bfc_offset.block_offset, &container_builder_, |
+ PositionPendingFloats(bfc_block_offset, &container_builder_, |
MutableConstraintSpace()); |
} |