| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 LayoutItem container() const | 132 LayoutItem container() const |
| 133 { | 133 { |
| 134 return LayoutItem(m_layoutObject->container()); | 134 return LayoutItem(m_layoutObject->container()); |
| 135 } | 135 } |
| 136 | 136 |
| 137 const ComputedStyle& styleRef() const | 137 const ComputedStyle& styleRef() const |
| 138 { | 138 { |
| 139 return m_layoutObject->styleRef(); | 139 return m_layoutObject->styleRef(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 LayoutSize offsetFromContainer(const LayoutItem& item, const LayoutPoint& po
int, bool* offsetDependsOnPoint = nullptr) const | 142 LayoutSize offsetFromContainer(const LayoutItem& item) const |
| 143 { | 143 { |
| 144 return m_layoutObject->offsetFromContainer(item.layoutObject(), point, o
ffsetDependsOnPoint); | 144 return m_layoutObject->offsetFromContainer(item.layoutObject()); |
| 145 } |
| 146 |
| 147 LayoutSize columnOffset(const LayoutPoint& point) const |
| 148 { |
| 149 return m_layoutObject->columnOffset(point); |
| 145 } | 150 } |
| 146 | 151 |
| 147 FrameView* frameView() const | 152 FrameView* frameView() const |
| 148 { | 153 { |
| 149 return m_layoutObject->document().view(); | 154 return m_layoutObject->document().view(); |
| 150 } | 155 } |
| 151 | 156 |
| 152 void setMayNeedPaintInvalidation() | 157 void setMayNeedPaintInvalidation() |
| 153 { | 158 { |
| 154 m_layoutObject->setMayNeedPaintInvalidation(); | 159 m_layoutObject->setMayNeedPaintInvalidation(); |
| (...skipping 23 matching lines...) Expand all 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 |