OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "core/layout/ng/ng_block_node.h" | 5 #include "core/layout/ng/ng_block_node.h" |
6 | 6 |
7 #include "core/layout/LayoutBlockFlow.h" | 7 #include "core/layout/LayoutBlockFlow.h" |
8 #include "core/layout/api/LineLayoutAPIShim.h" | 8 #include "core/layout/api/LineLayoutAPIShim.h" |
9 #include "core/layout/line/InlineIterator.h" | 9 #include "core/layout/line/InlineIterator.h" |
10 #include "core/layout/ng/layout_ng_block_flow.h" | 10 #include "core/layout/ng/layout_ng_block_flow.h" |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
318 builder.SetInlineSize(layout_box_->logicalWidth()) | 318 builder.SetInlineSize(layout_box_->logicalWidth()) |
319 .SetBlockSize(layout_box_->logicalHeight()) | 319 .SetBlockSize(layout_box_->logicalHeight()) |
320 .SetDirection(layout_box_->styleRef().direction()) | 320 .SetDirection(layout_box_->styleRef().direction()) |
321 .SetWritingMode( | 321 .SetWritingMode( |
322 FromPlatformWritingMode(layout_box_->styleRef().getWritingMode())) | 322 FromPlatformWritingMode(layout_box_->styleRef().getWritingMode())) |
323 .SetInlineOverflow(overflow.width()) | 323 .SetInlineOverflow(overflow.width()) |
324 .SetBlockOverflow(overflow.height()); | 324 .SetBlockOverflow(overflow.height()); |
325 return builder.ToFragment(); | 325 return builder.ToFragment(); |
326 } | 326 } |
327 | 327 |
| 328 void NGBlockNode::UseOldOutOfFlowPositioning() { |
| 329 DCHECK(layout_box_); |
| 330 DCHECK(layout_box_->isOutOfFlowPositioned()); |
| 331 layout_box_->containingBlock()->insertPositionedObject(layout_box_); |
| 332 } |
| 333 |
328 } // namespace blink | 334 } // namespace blink |
OLD | NEW |