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 LineLayoutItem_h | 5 #ifndef LineLayoutItem_h |
6 #define LineLayoutItem_h | 6 #define LineLayoutItem_h |
7 | 7 |
8 #include "core/layout/LayoutObject.h" | 8 #include "core/layout/LayoutObject.h" |
9 #include "core/layout/LayoutObjectInlines.h" | 9 #include "core/layout/LayoutObjectInlines.h" |
10 #include "core/layout/LayoutText.h" | 10 #include "core/layout/LayoutText.h" |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 LineLayoutItem parent() const { | 69 LineLayoutItem parent() const { |
70 return LineLayoutItem(m_layoutObject->parent()); | 70 return LineLayoutItem(m_layoutObject->parent()); |
71 } | 71 } |
72 | 72 |
73 // Implemented in LineLayoutBox.h | 73 // Implemented in LineLayoutBox.h |
74 // Intentionally returns a LineLayoutBox to avoid exposing LayoutBlock | 74 // Intentionally returns a LineLayoutBox to avoid exposing LayoutBlock |
75 // to the line layout code. | 75 // to the line layout code. |
76 LineLayoutBox containingBlock() const; | 76 LineLayoutBox containingBlock() const; |
77 | 77 |
78 // Implemented in LineLayoutBoxModel.h | 78 // Implemented in LineLayoutBoxModel.h |
79 // Intentionally returns a LineLayoutBoxModel to avoid exposing LayoutBoxModel
Object | 79 // Intentionally returns a LineLayoutBoxModel to avoid exposing |
80 // to the line layout code. | 80 // LayoutBoxModelObject to the line layout code. |
81 LineLayoutBoxModel enclosingBoxModelObject() const; | 81 LineLayoutBoxModel enclosingBoxModelObject() const; |
82 | 82 |
83 LineLayoutItem container() const { | 83 LineLayoutItem container() const { |
84 return LineLayoutItem(m_layoutObject->container()); | 84 return LineLayoutItem(m_layoutObject->container()); |
85 } | 85 } |
86 | 86 |
87 bool isDescendantOf(const LineLayoutItem item) const { | 87 bool isDescendantOf(const LineLayoutItem item) const { |
88 return m_layoutObject->isDescendantOf(item.m_layoutObject); | 88 return m_layoutObject->isDescendantOf(item.m_layoutObject); |
89 } | 89 } |
90 | 90 |
(...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 | 358 |
359 template <> | 359 template <> |
360 struct HashTraits<blink::LineLayoutItem> | 360 struct HashTraits<blink::LineLayoutItem> |
361 : SimpleClassHashTraits<blink::LineLayoutItem> { | 361 : SimpleClassHashTraits<blink::LineLayoutItem> { |
362 STATIC_ONLY(HashTraits); | 362 STATIC_ONLY(HashTraits); |
363 }; | 363 }; |
364 | 364 |
365 } // namespace WTF | 365 } // namespace WTF |
366 | 366 |
367 #endif // LineLayoutItem_h | 367 #endif // LineLayoutItem_h |
OLD | NEW |