| OLD | NEW |
| 1 | 1 |
| 2 // Copyright 2016 The Chromium Authors. All rights reserved. | 2 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef LayoutBlockItem_h | 6 #ifndef LayoutBlockItem_h |
| 7 #define LayoutBlockItem_h | 7 #define LayoutBlockItem_h |
| 8 | 8 |
| 9 #include "core/layout/LayoutBlock.h" | 9 #include "core/layout/LayoutBlock.h" |
| 10 #include "core/layout/api/LayoutBoxItem.h" | 10 #include "core/layout/api/LayoutBoxItem.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 void invalidatePaintRectangle(const LayoutRect& layoutRect) const | 31 void invalidatePaintRectangle(const LayoutRect& layoutRect) const |
| 32 { | 32 { |
| 33 toBlock()->invalidatePaintRectangle(layoutRect); | 33 toBlock()->invalidatePaintRectangle(layoutRect); |
| 34 } | 34 } |
| 35 | 35 |
| 36 bool recalcOverflowAfterStyleChange() | 36 bool recalcOverflowAfterStyleChange() |
| 37 { | 37 { |
| 38 return toBlock()->recalcOverflowAfterStyleChange(); | 38 return toBlock()->recalcOverflowAfterStyleChange(); |
| 39 } | 39 } |
| 40 | 40 |
| 41 LayoutItem firstChild() const |
| 42 { |
| 43 return LayoutItem(toBlock()->firstChild()); |
| 44 } |
| 45 |
| 41 private: | 46 private: |
| 42 LayoutBlock* toBlock() { return toLayoutBlock(layoutObject()); } | 47 LayoutBlock* toBlock() { return toLayoutBlock(layoutObject()); } |
| 43 const LayoutBlock* toBlock() const { return toLayoutBlock(layoutObject()); } | 48 const LayoutBlock* toBlock() const { return toLayoutBlock(layoutObject()); } |
| 44 }; | 49 }; |
| 45 | 50 |
| 46 } // namespace blink | 51 } // namespace blink |
| 47 | 52 |
| 48 #endif // LayoutBlockItem_h | 53 #endif // LayoutBlockItem_h |
| OLD | NEW |