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

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

Issue 2289353002: [layoutng] Add methods to compute border and padding (Closed)
Patch Set: 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 29 matching lines...) Expand all
40 // Resolves the given length to a layout unit, constraining it by the min 40 // Resolves the given length to a layout unit, constraining it by the min
41 // logical height and max logical height properties from the ComputedStyle 41 // logical height and max logical height properties from the ComputedStyle
42 // object. 42 // object.
43 CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&, 43 CORE_EXPORT LayoutUnit computeBlockSizeForFragment(const NGConstraintSpace&,
44 const ComputedStyle&, 44 const ComputedStyle&,
45 LayoutUnit contentSize); 45 LayoutUnit contentSize);
46 46
47 CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&, 47 CORE_EXPORT NGBoxStrut computeMargins(const NGConstraintSpace&,
48 const ComputedStyle&); 48 const ComputedStyle&);
49 49
50 CORE_EXPORT NGBoxStrut computeBorders(const ComputedStyle&);
51
52 CORE_EXPORT NGBoxStrut computePadding(const NGConstraintSpace&,
53 const ComputedStyle&);
54
50 } // namespace blink 55 } // namespace blink
51 56
52 #endif // NGLengthUtils_h 57 #endif // NGLengthUtils_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698