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

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

Issue 2536323003: [LayoutNG] Fix enum values to conform to kEnumName in style guide. (Closed)
Patch Set: rebase. 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
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 #ifndef NGLengthUtils_h 5 #ifndef NGLengthUtils_h
6 #define NGLengthUtils_h 6 #define NGLengthUtils_h
7 7
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "core/layout/ng/ng_units.h" 9 #include "core/layout/ng/ng_units.h"
10 #include "core/layout/ng/ng_writing_mode.h" 10 #include "core/layout/ng/ng_writing_mode.h"
11 #include "platform/text/TextDirection.h" 11 #include "platform/text/TextDirection.h"
12 #include "wtf/Optional.h" 12 #include "wtf/Optional.h"
13 13
14 namespace blink { 14 namespace blink {
15 class ComputedStyle; 15 class ComputedStyle;
16 class LayoutUnit; 16 class LayoutUnit;
17 class Length; 17 class Length;
18 struct MinAndMaxContentSizes; 18 struct MinAndMaxContentSizes;
19 class NGConstraintSpace; 19 class NGConstraintSpace;
20 struct NGBoxStrut; 20 struct NGBoxStrut;
21 class NGFragmentBase; 21 class NGFragmentBase;
22 22
23 enum class LengthResolveType { 23 enum class LengthResolveType {
24 MinSize, 24 kMinSize,
25 MaxSize, 25 kMaxSize,
26 ContentSize, 26 kContentSize,
27 MarginBorderPaddingSize 27 kMarginBorderPaddingSize
28 }; 28 };
29 29
30 #define NGSizeIndefinite LayoutUnit(-1) 30 #define NGSizeIndefinite LayoutUnit(-1)
31 31
32 // Whether the caller needs to compute min-content and max-content sizes to 32 // Whether the caller needs to compute min-content and max-content sizes to
33 // pass them to ResolveInlineLength / ComputeInlineSizeForFragment. 33 // pass them to ResolveInlineLength / ComputeInlineSizeForFragment.
34 // If this function returns false, it is safe to pass an empty 34 // If this function returns false, it is safe to pass an empty
35 // MinAndMaxContentSizes struct to those functions. 35 // MinAndMaxContentSizes struct to those functions.
36 CORE_EXPORT bool NeedMinAndMaxContentSizes(const ComputedStyle&); 36 CORE_EXPORT bool NeedMinAndMaxContentSizes(const ComputedStyle&);
37 37
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // the fragment to compute the margins that are auto, if any, and adjusts 100 // the fragment to compute the margins that are auto, if any, and adjusts
101 // the given NGBoxStrut accordingly. 101 // the given NGBoxStrut accordingly.
102 CORE_EXPORT void ApplyAutoMargins(const NGConstraintSpace&, 102 CORE_EXPORT void ApplyAutoMargins(const NGConstraintSpace&,
103 const ComputedStyle&, 103 const ComputedStyle&,
104 const NGFragmentBase&, 104 const NGFragmentBase&,
105 NGBoxStrut* margins); 105 NGBoxStrut* margins);
106 106
107 } // namespace blink 107 } // namespace blink
108 108
109 #endif // NGLengthUtils_h 109 #endif // NGLengthUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698