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

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

Issue 2760043004: Move NGConstraintSpace utility methods to a separate file (Closed)
Patch Set: Created 3 years, 9 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef NGSpaceUtils_h
6 #define NGSpaceUtils_h
7
8 #include "core/layout/ng/ng_constraint_space.h"
9 #include "core/style/ComputedStyle.h"
10 #include "wtf/Optional.h"
11
12 namespace blink {
13
14 // Whether an in-flow block-level child creates a new formatting context.
15 //
16 // This will *NOT* check the following cases:
17 // - The child is out-of-flow, e.g. floating or abs-pos.
18 // - The child is a inline-level, e.g. "display: inline-block".
19 // - The child establishes a new formatting context, but should be a child of
20 // another layout algorithm, e.g. "display: table-caption" or flex-item.
21 CORE_EXPORT bool IsNewFormattingContextForInFlowBlockLevelChild(
ikilpatrick 2017/03/21 01:37:55 missing? :P
Gleb Lanbin 2017/03/21 02:01:10 what is missing?
22 const NGConstraintSpace& space,
23 const ComputedStyle& style);
24
25 // Gets the clearance offset based on the provided {@code style} and list of
26 // exclusions that represent left/right float.
27 CORE_EXPORT WTF::Optional<LayoutUnit> GetClearanceOffset(
28 const std::shared_ptr<NGExclusions>& exclusions,
29 const ComputedStyle& style);
30
31 } // namespace blink
32
33 #endif // NGSpaceUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698