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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutBlockFlow.h

Issue 1647313003: Continue converting to explicit LayoutUnit constructors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicitContstructors
Patch Set: Add TODO Created 4 years, 10 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 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 LineLayoutBlockFlow_h 5 #ifndef LineLayoutBlockFlow_h
6 #define LineLayoutBlockFlow_h 6 #define LineLayoutBlockFlow_h
7 7
8 #include "core/layout/FloatingObjects.h" 8 #include "core/layout/FloatingObjects.h"
9 #include "core/layout/LayoutBlockFlow.h" 9 #include "core/layout/LayoutBlockFlow.h"
10 #include "core/layout/api/LineLayoutBox.h" 10 #include "core/layout/api/LineLayoutBox.h"
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 LayoutUnit logicalRightForFloat(const FloatingObject& floatingObject) const 161 LayoutUnit logicalRightForFloat(const FloatingObject& floatingObject) const
162 { 162 {
163 return toBlockFlow()->logicalRightForFloat(floatingObject); 163 return toBlockFlow()->logicalRightForFloat(floatingObject);
164 } 164 }
165 165
166 LayoutUnit logicalWidthForFloat(const FloatingObject& floatingObject) const 166 LayoutUnit logicalWidthForFloat(const FloatingObject& floatingObject) const
167 { 167 {
168 return toBlockFlow()->logicalWidthForFloat(floatingObject); 168 return toBlockFlow()->logicalWidthForFloat(floatingObject);
169 } 169 }
170 170
171 LayoutUnit logicalRightOffsetForLine(LayoutUnit position, IndentTextOrNot in dentText, LayoutUnit logicalHeight = 0) const 171 LayoutUnit logicalRightOffsetForLine(LayoutUnit position, IndentTextOrNot in dentText, LayoutUnit logicalHeight = LayoutUnit()) const
172 { 172 {
173 return toBlockFlow()->logicalRightOffsetForLine(position, indentText, lo gicalHeight); 173 return toBlockFlow()->logicalRightOffsetForLine(position, indentText, lo gicalHeight);
174 } 174 }
175 175
176 LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, IndentTextOrNot ind entText, LayoutUnit logicalHeight = 0) const 176 LayoutUnit logicalLeftOffsetForLine(LayoutUnit position, IndentTextOrNot ind entText, LayoutUnit logicalHeight = LayoutUnit()) const
177 { 177 {
178 return toBlockFlow()->logicalLeftOffsetForLine(position, indentText, log icalHeight); 178 return toBlockFlow()->logicalLeftOffsetForLine(position, indentText, log icalHeight);
179 } 179 }
180 180
181 private: 181 private:
182 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ; 182 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); } ;
183 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); }; 183 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout Object()); };
184 }; 184 };
185 185
186 } // namespace blink 186 } // namespace blink
187 187
188 #endif // LineLayoutBlockFlow_h 188 #endif // LineLayoutBlockFlow_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698