OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 LayoutItem_h | 5 #ifndef LayoutItem_h |
6 #define LayoutItem_h | 6 #define LayoutItem_h |
7 | 7 |
8 #include "core/inspector/InspectorTraceEvents.h" | 8 #include "core/inspector/InspectorTraceEvents.h" |
9 #include "core/layout/LayoutObject.h" | 9 #include "core/layout/LayoutObject.h" |
10 #include "wtf/Allocator.h" | 10 #include "wtf/Allocator.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 bool isBoxModelObject() const | 47 bool isBoxModelObject() const |
48 { | 48 { |
49 return m_layoutObject->isBoxModelObject(); | 49 return m_layoutObject->isBoxModelObject(); |
50 } | 50 } |
51 | 51 |
52 bool isBox() const | 52 bool isBox() const |
53 { | 53 { |
54 return m_layoutObject->isBox(); | 54 return m_layoutObject->isBox(); |
55 } | 55 } |
56 | 56 |
| 57 bool isBR() const |
| 58 { |
| 59 return m_layoutObject->isBR(); |
| 60 } |
| 61 |
57 bool isLayoutBlock() const | 62 bool isLayoutBlock() const |
58 { | 63 { |
59 return m_layoutObject->isLayoutBlock(); | 64 return m_layoutObject->isLayoutBlock(); |
60 } | 65 } |
61 | 66 |
62 bool isText() const | 67 bool isText() const |
63 { | 68 { |
64 return m_layoutObject->isText(); | 69 return m_layoutObject->isText(); |
65 } | 70 } |
66 | 71 |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 LayoutObject* layoutObject() { return m_layoutObject; } | 183 LayoutObject* layoutObject() { return m_layoutObject; } |
179 const LayoutObject* layoutObject() const { return m_layoutObject; } | 184 const LayoutObject* layoutObject() const { return m_layoutObject; } |
180 | 185 |
181 private: | 186 private: |
182 LayoutObject* m_layoutObject; | 187 LayoutObject* m_layoutObject; |
183 }; | 188 }; |
184 | 189 |
185 } // namespace blink | 190 } // namespace blink |
186 | 191 |
187 #endif // LayoutItem_h | 192 #endif // LayoutItem_h |
OLD | NEW |