| 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" |
| 11 #include "platform/LayoutUnit.h" | 11 #include "platform/LayoutUnit.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class LayoutBlockFlow; | 15 class LayoutBlockFlow; |
| 16 class FloatingObject; | 16 class FloatingObject; |
| 17 class LineInfo; | 17 class LineInfo; |
| 18 class LineWidth; | 18 class LineWidth; |
| 19 | 19 |
| 20 class LineLayoutBlockFlow : public LineLayoutBox { | 20 class LineLayoutBlockFlow : public LineLayoutBox { |
| 21 public: | 21 public: |
| 22 explicit LineLayoutBlockFlow(LayoutBlockFlow* blockFlow) | 22 explicit LineLayoutBlockFlow(LayoutBlockFlow* blockFlow) |
| 23 : LineLayoutBox(blockFlow) {} | 23 : LineLayoutBox(blockFlow) {} |
| 24 | 24 |
| 25 explicit LineLayoutBlockFlow(const LineLayoutItem& item) | 25 explicit LineLayoutBlockFlow(const LineLayoutItem& item) |
| 26 : LineLayoutBox(item) { | 26 : LineLayoutBox(item) { |
| 27 ASSERT_WITH_SECURITY_IMPLICATION(!item || item.isLayoutBlockFlow()); | 27 SECURITY_DCHECK(!item || item.isLayoutBlockFlow()); |
| 28 } | 28 } |
| 29 | 29 |
| 30 explicit LineLayoutBlockFlow(std::nullptr_t) : LineLayoutBox(nullptr) {} | 30 explicit LineLayoutBlockFlow(std::nullptr_t) : LineLayoutBox(nullptr) {} |
| 31 | 31 |
| 32 LineLayoutBlockFlow() {} | 32 LineLayoutBlockFlow() {} |
| 33 | 33 |
| 34 LineLayoutItem firstChild() const { | 34 LineLayoutItem firstChild() const { |
| 35 return LineLayoutItem(toBlockFlow()->firstChild()); | 35 return LineLayoutItem(toBlockFlow()->firstChild()); |
| 36 } | 36 } |
| 37 LineLayoutItem lastChild() const { | 37 LineLayoutItem lastChild() const { |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 private: | 199 private: |
| 200 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }; | 200 LayoutBlockFlow* toBlockFlow() { return toLayoutBlockFlow(layoutObject()); }; |
| 201 const LayoutBlockFlow* toBlockFlow() const { | 201 const LayoutBlockFlow* toBlockFlow() const { |
| 202 return toLayoutBlockFlow(layoutObject()); | 202 return toLayoutBlockFlow(layoutObject()); |
| 203 }; | 203 }; |
| 204 }; | 204 }; |
| 205 | 205 |
| 206 } // namespace blink | 206 } // namespace blink |
| 207 | 207 |
| 208 #endif // LineLayoutBlockFlow_h | 208 #endif // LineLayoutBlockFlow_h |
| OLD | NEW |