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

Side by Side Diff: third_party/WebKit/Source/core/layout/ng/ng_floats_utils.h

Issue 2790283003: Reset constraint space's BFC offset if block creates a new FC (Closed)
Patch Set: git rebase-update 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #ifndef NGFloatsUtils_h 5 #ifndef NGFloatsUtils_h
6 #define NGFloatsUtils_h 6 #define NGFloatsUtils_h
7 7
8 #include "core/layout/ng/geometry/ng_logical_offset.h" 8 #include "core/layout/ng/geometry/ng_logical_offset.h"
9 #include "core/layout/ng/ng_constraint_space.h" 9 #include "core/layout/ng/ng_constraint_space.h"
10 #include "core/layout/ng/ng_floating_object.h" 10 #include "core/layout/ng/ng_floating_object.h"
11 #include "core/layout/ng/ng_fragment_builder.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 // Calculates the relative position from {@code from_offset} of the 15 // Positions {@code floating_object} into {@code new_parent_space}.
15 // floating object that is requested to be positioned from {@code origin_point}. 16 // @returns Logical offset of the positioned float.
16 CORE_EXPORT NGLogicalOffset PositionFloat(const NGLogicalOffset& origin_point, 17 CORE_EXPORT NGLogicalOffset PositionFloat(NGFloatingObject*,
17 const NGLogicalOffset& from_offset,
18 NGFloatingObject*,
19 NGConstraintSpace* new_parent_space); 18 NGConstraintSpace* new_parent_space);
20 19
20 // Positions pending floats stored on the fragment builder starting from
21 // {@code origin_block_offset}.
22 void PositionPendingFloats(const LayoutUnit& origin_block_offset,
23 NGConstraintSpace* space,
24 NGFragmentBuilder* builder);
21 } // namespace blink 25 } // namespace blink
22 26
23 #endif // NGFloatsUtils_h 27 #endif // NGFloatsUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698