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

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

Issue 2325073002: [LayoutNG] Handle border and padding when sizing a block and when placing its children. (Closed)
Patch Set: Use modern CSS terms, rather than old XSL terms, for box sides Created 4 years, 3 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 #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 9
10 namespace blink { 10 namespace blink {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 CORE_EXPORT LayoutUnit computeInlineSizeForFragment(const NGConstraintSpace&, 42 CORE_EXPORT LayoutUnit computeInlineSizeForFragment(const NGConstraintSpace&,
43 const ComputedStyle&); 43 const ComputedStyle&);
44 44
45 // Resolves the given length to a layout unit, constraining it by the min 45 // Resolves the given length to a layout unit, constraining it by the min
46 // logical height and max logical height properties from the ComputedStyle 46 // logical height and max logical height properties from the ComputedStyle
47 // object. 47 // object.
48 CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&, 48 CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
49 const ComputedStyle&, 49 const ComputedStyle&,
50 LayoutUnit contentSize); 50 LayoutUnit contentSize);
51 51
52 CORE_EXPORT LayoutUnit
53 computeBorderAndPaddingBlockStart(const NGConstraintSpace&,
54 const ComputedStyle&);
55
56 CORE_EXPORT LayoutUnit computeBorderAndPaddingBlockEnd(const NGConstraintSpace&,
57 const ComputedStyle&);
58
59 CORE_EXPORT LayoutUnit
60 computeBorderAndPaddingInlineStart(const NGConstraintSpace&,
61 const ComputedStyle&);
62
63 CORE_EXPORT LayoutUnit
64 computeBorderAndPaddingInlineEnd(const NGConstraintSpace&,
65 const ComputedStyle&);
66
52 CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&, 67 CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&,
53 const ComputedStyle&); 68 const ComputedStyle&);
54 69
55 CORE_EXPORT NGBoxStrut computeBorders(const ComputedStyle&); 70 CORE_EXPORT NGBoxStrut computeBorders(const ComputedStyle&);
56 71
57 CORE_EXPORT NGBoxStrut computePadding(const NGConstraintSpace&, 72 CORE_EXPORT NGBoxStrut computePadding(const NGConstraintSpace&,
58 const ComputedStyle&); 73 const ComputedStyle&);
59 74
60 } // namespace blink 75 } // namespace blink
61 76
62 #endif // NGLengthUtils_h 77 #endif // NGLengthUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698