| 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 12 matching lines...) Expand all Loading... |
| 23 : LineLayoutBox(blockFlow) | 23 : LineLayoutBox(blockFlow) |
| 24 { | 24 { |
| 25 } | 25 } |
| 26 | 26 |
| 27 explicit LineLayoutBlockFlow(const LineLayoutItem& item) | 27 explicit LineLayoutBlockFlow(const LineLayoutItem& item) |
| 28 : LineLayoutBox(item) | 28 : LineLayoutBox(item) |
| 29 { | 29 { |
| 30 ASSERT(!item || item.isLayoutBlockFlow()); | 30 ASSERT(!item || item.isLayoutBlockFlow()); |
| 31 } | 31 } |
| 32 | 32 |
| 33 LineLayoutBlockFlow(std::nullptr_t) : LineLayoutBox(nullptr) { } |
| 34 |
| 33 LineLayoutBlockFlow() { } | 35 LineLayoutBlockFlow() { } |
| 34 | 36 |
| 35 LineLayoutItem firstChild() const | 37 LineLayoutItem firstChild() const |
| 36 { | 38 { |
| 37 return LineLayoutItem(toBlockFlow()->firstChild()); | 39 return LineLayoutItem(toBlockFlow()->firstChild()); |
| 38 } | 40 } |
| 39 LineLayoutItem lastChild() const | 41 LineLayoutItem lastChild() const |
| 40 { | 42 { |
| 41 return LineLayoutItem(toBlockFlow()->lastChild()); | 43 return LineLayoutItem(toBlockFlow()->lastChild()); |
| 42 } | 44 } |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 } | 179 } |
| 178 | 180 |
| 179 private: | 181 private: |
| 180 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }
; | 182 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }
; |
| 181 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout
Object()); }; | 183 const LayoutBlockFlow* toBlockFlow() const { return toLayoutBlockFlow(layout
Object()); }; |
| 182 }; | 184 }; |
| 183 | 185 |
| 184 } // namespace blink | 186 } // namespace blink |
| 185 | 187 |
| 186 #endif // LineLayoutBlockFlow_h | 188 #endif // LineLayoutBlockFlow_h |
| OLD | NEW |