Chromium Code Reviews| 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 LineLayoutItem_h | |
| 6 #define LineLayoutItem_h | |
| 7 | |
| 8 #include "platform/LayoutUnit.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class ComputedStyle; | |
| 13 class Document; | |
| 14 class LayoutObject; | |
| 15 | |
| 16 class LineLayoutItem { | |
| 17 public: | |
| 18 LineLayoutItem(LayoutObject*); | |
| 19 LineLayoutItem(const LineLayoutItem& item) : m_layoutObject(item.m_layoutObj ect) { } | |
| 20 LineLayoutItem() : m_layoutObject(0) { } | |
| 21 | |
| 22 operator LayoutObject*() const { return m_layoutObject; } | |
|
leviw_travelin_and_unemployed
2015/06/08 20:05:00
You should have a TODO here about removing this. T
| |
| 23 | |
| 24 LineLayoutItem* operator->() { return this; } | |
| 25 | |
| 26 LineLayoutItem parent() const; | |
| 27 LineLayoutItem nextSibling() const; | |
| 28 LineLayoutItem previousSibling() const; | |
| 29 LineLayoutItem slowFirstChild() const; | |
| 30 LineLayoutItem slowLastChild() const; | |
| 31 | |
| 32 const ComputedStyle* style() const; | |
| 33 const ComputedStyle& styleRef() const; | |
| 34 | |
| 35 Document& document() const; | |
| 36 | |
| 37 bool preservesNewline() const; | |
| 38 | |
| 39 unsigned length() const; | |
| 40 | |
| 41 bool isFloatingOrOutOfFlowPositioned() const; | |
| 42 bool isFloating() const; | |
| 43 bool isOutOfFlowPositioned() const; | |
| 44 bool isBR() const; | |
| 45 bool isHorizontalWritingMode() const; | |
| 46 bool isImage() const; | |
| 47 bool isLayoutInline() const; | |
| 48 bool isListMarker() const; | |
| 49 bool isReplaced() const; | |
| 50 bool isRubyRun() const; | |
| 51 bool isSVGInlineText() const; | |
| 52 bool isTableCell() const; | |
| 53 bool isText() const; | |
| 54 | |
| 55 protected: | |
| 56 LayoutObject* layoutObject() { return m_layoutObject; } | |
| 57 const LayoutObject* layoutObject() const { return m_layoutObject; } | |
| 58 | |
| 59 friend class LineLayoutBlockFlow; // for layoutObject | |
| 60 friend class LineLayoutBox; | |
| 61 friend class LineLayoutInline; | |
| 62 friend class LineLayoutText; | |
| 63 | |
| 64 private: | |
| 65 LayoutObject* m_layoutObject; | |
| 66 }; | |
| 67 | |
| 68 } // namespace blink | |
| 69 | |
| 70 #endif // LineLayoutItem_h | |
| OLD | NEW |