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

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

Issue 2693193002: [LayoutNG] A different approach to multi-col. (Closed)
Patch Set: tmp upload Created 3 years, 7 months 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
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/LayoutMultiColumnFlowThread.h" 8 #include "core/layout/LayoutMultiColumnFlowThread.h"
9 #include "core/layout/LayoutMultiColumnSet.h" 9 #include "core/layout/LayoutMultiColumnSet.h"
10 #include "core/layout/api/LineLayoutAPIShim.h" 10 #include "core/layout/api/LineLayoutAPIShim.h"
11 #include "core/layout/line/InlineIterator.h" 11 #include "core/layout/line/InlineIterator.h"
12 #include "core/layout/ng/inline/ng_inline_node.h" 12 #include "core/layout/ng/inline/ng_inline_node.h"
13 #include "core/layout/ng/layout_ng_block_flow.h" 13 #include "core/layout/ng/layout_ng_block_flow.h"
14 #include "core/layout/ng/ng_block_break_token.h" 14 #include "core/layout/ng/ng_block_break_token.h"
15 #include "core/layout/ng/ng_block_layout_algorithm.h" 15 #include "core/layout/ng/ng_block_layout_algorithm.h"
16 #include "core/layout/ng/ng_box_fragment.h" 16 #include "core/layout/ng/ng_box_fragment.h"
17 #include "core/layout/ng/ng_column_layout_algorithm.h" 17 #include "core/layout/ng/ng_column_layout_algorithm.h"
18 #include "core/layout/ng/ng_constraint_space.h" 18 #include "core/layout/ng/ng_constraint_space.h"
19 #include "core/layout/ng/ng_constraint_space_builder.h" 19 #include "core/layout/ng/ng_constraint_space_builder.h"
20 #include "core/layout/ng/ng_fragment_builder.h" 20 #include "core/layout/ng/ng_fragment_builder.h"
21 #include "core/layout/ng/ng_layout_result.h" 21 #include "core/layout/ng/ng_layout_result.h"
22 #include "core/layout/ng/ng_length_utils.h" 22 #include "core/layout/ng/ng_length_utils.h"
23 #include "core/layout/ng/ng_min_max_content_size.h" 23 #include "core/layout/ng/ng_min_max_content_size.h"
24 #include "core/layout/ng/ng_multi_column_layout_algorithm.h"
24 #include "core/layout/ng/ng_writing_mode.h" 25 #include "core/layout/ng/ng_writing_mode.h"
25 #include "core/paint/PaintLayer.h" 26 #include "core/paint/PaintLayer.h"
26 #include "platform/RuntimeEnabledFeatures.h" 27 #include "platform/RuntimeEnabledFeatures.h"
27 28
28 namespace blink { 29 namespace blink {
29 30
30 namespace { 31 namespace {
31 32
32 RefPtr<NGLayoutResult> LayoutWithAlgorithm(const ComputedStyle& style, 33 RefPtr<NGLayoutResult> LayoutWithAlgorithm(const ComputedStyle& style,
33 NGBlockNode* node, 34 NGBlockNode* node,
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 372
372 // Save static position for legacy AbsPos layout. 373 // Save static position for legacy AbsPos layout.
373 void NGBlockNode::SaveStaticOffsetForLegacy(const NGLogicalOffset& offset) { 374 void NGBlockNode::SaveStaticOffsetForLegacy(const NGLogicalOffset& offset) {
374 DCHECK(layout_box_->IsOutOfFlowPositioned()); 375 DCHECK(layout_box_->IsOutOfFlowPositioned());
375 DCHECK(layout_box_->Layer()); 376 DCHECK(layout_box_->Layer());
376 layout_box_->Layer()->SetStaticBlockPosition(offset.block_offset); 377 layout_box_->Layer()->SetStaticBlockPosition(offset.block_offset);
377 layout_box_->Layer()->SetStaticInlinePosition(offset.inline_offset); 378 layout_box_->Layer()->SetStaticInlinePosition(offset.inline_offset);
378 } 379 }
379 380
380 } // namespace blink 381 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698