OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef LineLayoutInline_h |
| 6 #define LineLayoutInline_h |
| 7 |
| 8 #include "core/layout/LayoutInline.h" |
| 9 #include "core/layout/api/LineLayoutItem.h" |
| 10 #include "platform/LayoutUnit.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class ComputedStyle; |
| 15 class LayoutInline; |
| 16 class LayoutObject; |
| 17 |
| 18 class LineLayoutInline : public LineLayoutItem { |
| 19 public: |
| 20 LineLayoutInline(LayoutInline*); |
| 21 LineLayoutInline(const LineLayoutItem&); |
| 22 LineLayoutInline() { } |
| 23 |
| 24 LineLayoutItem firstChild() const |
| 25 { |
| 26 return toInline()->firstChild(); |
| 27 } |
| 28 |
| 29 LineLayoutItem lastChild() const |
| 30 { |
| 31 return toInline()->lastChild(); |
| 32 } |
| 33 |
| 34 protected: |
| 35 LayoutInline* toInline() |
| 36 { |
| 37 return toLayoutInline(layoutObject()); |
| 38 } |
| 39 |
| 40 const LayoutInline* toInline() const |
| 41 { |
| 42 return toLayoutInline(layoutObject()); |
| 43 } |
| 44 |
| 45 }; |
| 46 |
| 47 } // namespace blink |
| 48 |
| 49 #endif // LineLayoutInline_h |
OLD | NEW |