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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_block_node.cc

Issue 2569263002: Legacy out-of-flow descendant propagation (Closed)
Patch Set: CR fixes, wording Created 4 years 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ng/ng_block_node.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698