| 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 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool positionNewFloats(LineWidth* width) | 104 bool positionNewFloats(LineWidth* width) |
| 105 { | 105 { |
| 106 return toBlockFlow()->positionNewFloats(width); | 106 return toBlockFlow()->positionNewFloats(width); |
| 107 } | 107 } |
| 108 | 108 |
| 109 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo& lineInfo, LineWidth& lineWidth) | 109 bool positionNewFloatOnLine(FloatingObject& newFloat, FloatingObject* lastFl
oatFromPreviousLine, LineInfo& lineInfo, LineWidth& lineWidth) |
| 110 { | 110 { |
| 111 return toBlockFlow()->positionNewFloatOnLine(newFloat, lastFloatFromPrev
iousLine, lineInfo, lineWidth); | 111 return toBlockFlow()->positionNewFloatOnLine(newFloat, lastFloatFromPrev
iousLine, lineInfo, lineWidth); |
| 112 } | 112 } |
| 113 | 113 |
| 114 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight, ShapeOutsid
eFloatOffsetMode offsetMode = ShapeOutsideFloatMarginBoxOffset) const | 114 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const |
| 115 { | 115 { |
| 116 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight, offsetM
ode); | 116 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight); |
| 117 } | 117 } |
| 118 | 118 |
| 119 FloatingObject* lastFloatFromPreviousLine() const | 119 FloatingObject* lastFloatFromPreviousLine() const |
| 120 { | 120 { |
| 121 return toBlockFlow()->lastFloatFromPreviousLine(); | 121 return toBlockFlow()->lastFloatFromPreviousLine(); |
| 122 } | 122 } |
| 123 | 123 |
| 124 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const | 124 LayoutUnit logicalTopForFloat(const FloatingObject& floatingObject) const |
| 125 { | 125 { |
| 126 return toBlockFlow()->logicalTopForFloat(floatingObject); | 126 return toBlockFlow()->logicalTopForFloat(floatingObject); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 157 } | 157 } |
| 158 | 158 |
| 159 private: | 159 private: |
| 160 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }
; | 160 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }
; |
| 161 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout
Object()); }; | 161 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout
Object()); }; |
| 162 }; | 162 }; |
| 163 | 163 |
| 164 } // namespace blink | 164 } // namespace blink |
| 165 | 165 |
| 166 #endif // LineLayoutBlockFlow_h | 166 #endif // LineLayoutBlockFlow_h |
| OLD | NEW |