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

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

Issue 2809363002: Rewrite references to "wtf/" to "platform/wtf/" in core/layout. (Closed)
Patch Set: Created 3 years, 8 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_layout_algorithm.h" 5 #include "core/layout/ng/ng_block_layout_algorithm.h"
6 6
7 #include "core/layout/ng/inline/ng_inline_node.h" 7 #include "core/layout/ng/inline/ng_inline_node.h"
8 #include "core/layout/ng/ng_absolute_utils.h" 8 #include "core/layout/ng/ng_absolute_utils.h"
9 #include "core/layout/ng/ng_block_child_iterator.h" 9 #include "core/layout/ng/ng_block_child_iterator.h"
10 #include "core/layout/ng/ng_box_fragment.h" 10 #include "core/layout/ng/ng_box_fragment.h"
11 #include "core/layout/ng/ng_constraint_space.h" 11 #include "core/layout/ng/ng_constraint_space.h"
12 #include "core/layout/ng/ng_constraint_space_builder.h" 12 #include "core/layout/ng/ng_constraint_space_builder.h"
13 #include "core/layout/ng/ng_floats_utils.h" 13 #include "core/layout/ng/ng_floats_utils.h"
14 #include "core/layout/ng/ng_fragment.h" 14 #include "core/layout/ng/ng_fragment.h"
15 #include "core/layout/ng/ng_fragment_builder.h" 15 #include "core/layout/ng/ng_fragment_builder.h"
16 #include "core/layout/ng/ng_layout_opportunity_iterator.h" 16 #include "core/layout/ng/ng_layout_opportunity_iterator.h"
17 #include "core/layout/ng/ng_length_utils.h" 17 #include "core/layout/ng/ng_length_utils.h"
18 #include "core/layout/ng/ng_out_of_flow_layout_part.h" 18 #include "core/layout/ng/ng_out_of_flow_layout_part.h"
19 #include "core/layout/ng/ng_space_utils.h" 19 #include "core/layout/ng/ng_space_utils.h"
20 #include "core/style/ComputedStyle.h" 20 #include "core/style/ComputedStyle.h"
21 #include "platform/LengthFunctions.h" 21 #include "platform/LengthFunctions.h"
22 #include "wtf/Optional.h" 22 #include "platform/wtf/Optional.h"
23 23
24 namespace blink { 24 namespace blink {
25 namespace { 25 namespace {
26 26
27 // Returns if a child may be affected by its clear property. I.e. it will 27 // Returns if a child may be affected by its clear property. I.e. it will
28 // actually clear a float. 28 // actually clear a float.
29 bool ClearanceMayAffectLayout( 29 bool ClearanceMayAffectLayout(
30 const NGConstraintSpace& space, 30 const NGConstraintSpace& space,
31 const Vector<RefPtr<NGFloatingObject>>& unpositioned_floats, 31 const Vector<RefPtr<NGFloatingObject>>& unpositioned_floats,
32 const ComputedStyle& child_style) { 32 const ComputedStyle& child_style) {
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 DCHECK(builder_.BfcOffset()); 518 DCHECK(builder_.BfcOffset());
519 space_available -= curr_bfc_offset_.block_offset; 519 space_available -= curr_bfc_offset_.block_offset;
520 } 520 }
521 } 521 }
522 space_builder_.SetFragmentainerSpaceAvailable(space_available); 522 space_builder_.SetFragmentainerSpaceAvailable(space_available);
523 523
524 return space_builder_.ToConstraintSpace( 524 return space_builder_.ToConstraintSpace(
525 FromPlatformWritingMode(child_style.GetWritingMode())); 525 FromPlatformWritingMode(child_style.GetWritingMode()));
526 } 526 }
527 } // namespace blink 527 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698