| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |