OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 LineLayoutInline_h | 5 #ifndef LineLayoutInline_h |
6 #define LineLayoutInline_h | 6 #define LineLayoutInline_h |
7 | 7 |
8 #include "core/layout/LayoutInline.h" | 8 #include "core/layout/LayoutInline.h" |
9 #include "core/layout/api/LineLayoutBoxModel.h" | 9 #include "core/layout/api/LineLayoutBoxModel.h" |
10 #include "platform/LayoutUnit.h" | 10 #include "platform/LayoutUnit.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 } | 32 } |
33 | 33 |
34 LineLayoutItem lastChild() const { | 34 LineLayoutItem lastChild() const { |
35 return LineLayoutItem(toInline()->lastChild()); | 35 return LineLayoutItem(toInline()->lastChild()); |
36 } | 36 } |
37 | 37 |
38 LayoutUnit marginStart() const { return toInline()->marginStart(); } | 38 LayoutUnit marginStart() const { return toInline()->marginStart(); } |
39 | 39 |
40 LayoutUnit marginEnd() const { return toInline()->marginEnd(); } | 40 LayoutUnit marginEnd() const { return toInline()->marginEnd(); } |
41 | 41 |
42 int borderStart() const { return toInline()->borderStart(); } | 42 LayoutUnit borderStart() const { return toInline()->borderStart(); } |
43 | 43 |
44 int borderEnd() const { return toInline()->borderEnd(); } | 44 LayoutUnit borderEnd() const { return toInline()->borderEnd(); } |
45 | 45 |
46 LayoutUnit paddingStart() const { return toInline()->paddingStart(); } | 46 LayoutUnit paddingStart() const { return toInline()->paddingStart(); } |
47 | 47 |
48 LayoutUnit paddingEnd() const { return toInline()->paddingEnd(); } | 48 LayoutUnit paddingEnd() const { return toInline()->paddingEnd(); } |
49 | 49 |
50 bool hasInlineDirectionBordersPaddingOrMargin() const { | 50 bool hasInlineDirectionBordersPaddingOrMargin() const { |
51 return toInline()->hasInlineDirectionBordersPaddingOrMargin(); | 51 return toInline()->hasInlineDirectionBordersPaddingOrMargin(); |
52 } | 52 } |
53 | 53 |
54 bool alwaysCreateLineBoxes() const { | 54 bool alwaysCreateLineBoxes() const { |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 LayoutInline* toInline() { return toLayoutInline(layoutObject()); } | 86 LayoutInline* toInline() { return toLayoutInline(layoutObject()); } |
87 | 87 |
88 const LayoutInline* toInline() const { | 88 const LayoutInline* toInline() const { |
89 return toLayoutInline(layoutObject()); | 89 return toLayoutInline(layoutObject()); |
90 } | 90 } |
91 }; | 91 }; |
92 | 92 |
93 } // namespace blink | 93 } // namespace blink |
94 | 94 |
95 #endif // LineLayoutInline_h | 95 #endif // LineLayoutInline_h |
OLD | NEW |