| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 FloatingObject* insertFloatingObject(LayoutBox& box) { | 112 FloatingObject* insertFloatingObject(LayoutBox& box) { |
| 113 return toBlockFlow()->insertFloatingObject(box); | 113 return toBlockFlow()->insertFloatingObject(box); |
| 114 } | 114 } |
| 115 | 115 |
| 116 FloatingObject* insertFloatingObject(LineLayoutBox box) { | 116 FloatingObject* insertFloatingObject(LineLayoutBox box) { |
| 117 return toBlockFlow()->insertFloatingObject( | 117 return toBlockFlow()->insertFloatingObject( |
| 118 *toLayoutBox(box.layoutObject())); | 118 *toLayoutBox(box.layoutObject())); |
| 119 } | 119 } |
| 120 | 120 |
| 121 bool positionNewFloats(LayoutUnit logicalTop, LineWidth* width) { | 121 bool placeNewFloats(LayoutUnit logicalTopMarginEdge, LineWidth* width) { |
| 122 return toBlockFlow()->positionNewFloats(logicalTop, width); | 122 return toBlockFlow()->placeNewFloats(logicalTopMarginEdge, width); |
| 123 } | 123 } |
| 124 | 124 |
| 125 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const { | 125 LayoutUnit nextFloatLogicalBottomBelow(LayoutUnit logicalHeight) const { |
| 126 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight); | 126 return toBlockFlow()->nextFloatLogicalBottomBelow(logicalHeight); |
| 127 } | 127 } |
| 128 | 128 |
| 129 FloatingObject* lastFloatFromPreviousLine() const { | 129 FloatingObject* lastFloatFromPreviousLine() const { |
| 130 return toBlockFlow()->lastFloatFromPreviousLine(); | 130 return toBlockFlow()->lastFloatFromPreviousLine(); |
| 131 } | 131 } |
| 132 | 132 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 private: | 198 private: |
| 199 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }; | 199 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }; |
| 200 const LayoutBlockFlow* toBlockFlow() const { | 200 const LayoutBlockFlow* toBlockFlow() const { |
| 201 return toLayoutBlockFlow(layoutObject()); | 201 return toLayoutBlockFlow(layoutObject()); |
| 202 }; | 202 }; |
| 203 }; | 203 }; |
| 204 | 204 |
| 205 } // namespace blink | 205 } // namespace blink |
| 206 | 206 |
| 207 #endif // LineLayoutBlockFlow_h | 207 #endif // LineLayoutBlockFlow_h |
| OLD | NEW |