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

Side by Side Diff: Source/core/layout/api/LineLayoutBoxModel.h

Issue 1328723002: [Line Layout API] Add border*() to LineLayoutBoxModel (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 LineLayoutBoxModel_h 5 #ifndef LineLayoutBoxModel_h
6 #define LineLayoutBoxModel_h 6 #define LineLayoutBoxModel_h
7 7
8 #include "core/layout/LayoutBoxModelObject.h" 8 #include "core/layout/LayoutBoxModelObject.h"
9 #include "core/layout/api/LineLayoutItem.h" 9 #include "core/layout/api/LineLayoutItem.h"
10 #include "platform/LayoutUnit.h" 10 #include "platform/LayoutUnit.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 LayoutUnit paddingBefore() const 101 LayoutUnit paddingBefore() const
102 { 102 {
103 return toBoxModel()->paddingBefore(); 103 return toBoxModel()->paddingBefore();
104 } 104 }
105 105
106 LayoutUnit paddingAfter() const 106 LayoutUnit paddingAfter() const
107 { 107 {
108 return toBoxModel()->paddingAfter(); 108 return toBoxModel()->paddingAfter();
109 } 109 }
110 110
111 int borderTop() const
112 {
113 return toBoxModel()->borderTop();
114 }
115
116 int borderBottom() const
117 {
118 return toBoxModel()->borderBottom();
119 }
120
121 int borderLeft() const
122 {
123 return toBoxModel()->borderLeft();
124 }
125
126 int borderRight() const
127 {
128 return toBoxModel()->borderRight();
129 }
130
111 int borderBefore() const 131 int borderBefore() const
112 { 132 {
113 return toBoxModel()->borderBefore(); 133 return toBoxModel()->borderBefore();
114 } 134 }
115 135
116 int borderAfter() const 136 int borderAfter() const
117 { 137 {
118 return toBoxModel()->borderAfter(); 138 return toBoxModel()->borderAfter();
119 } 139 }
120 140
(...skipping 23 matching lines...) Expand all
144 }; 164 };
145 165
146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const 166 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const
147 { 167 {
148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); 168 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
149 } 169 }
150 170
151 } // namespace blink 171 } // namespace blink
152 172
153 #endif // LineLayoutBoxModel_h 173 #endif // LineLayoutBoxModel_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/line/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698