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

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: 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 borderLeft() const
117 {
118 return toBoxModel()->borderLeft();
119 }
120
121 int borderRight() const
122 {
123 return toBoxModel()->borderRight();
124 }
125
eae 2015/09/02 20:32:57 What about borderBottom?
111 int borderBefore() const 126 int borderBefore() const
112 { 127 {
113 return toBoxModel()->borderBefore(); 128 return toBoxModel()->borderBefore();
114 } 129 }
115 130
116 int borderAfter() const 131 int borderAfter() const
117 { 132 {
118 return toBoxModel()->borderAfter(); 133 return toBoxModel()->borderAfter();
119 } 134 }
120 135
(...skipping 23 matching lines...) Expand all
144 }; 159 };
145 160
146 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const 161 inline LineLayoutBoxModel LineLayoutItem::enclosingBoxModelObject() const
147 { 162 {
148 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject()); 163 return LineLayoutBoxModel(layoutObject()->enclosingBoxModelObject());
149 } 164 }
150 165
151 } // namespace blink 166 } // namespace blink
152 167
153 #endif // LineLayoutBoxModel_h 168 #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