| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 142     const ComputedStyle& styleRef() const | 142     const ComputedStyle& styleRef() const | 
| 143     { | 143     { | 
| 144         return m_layoutObject->styleRef(); | 144         return m_layoutObject->styleRef(); | 
| 145     } | 145     } | 
| 146 | 146 | 
| 147     LayoutSize offsetFromContainer(const LayoutItem& item) const | 147     LayoutSize offsetFromContainer(const LayoutItem& item) const | 
| 148     { | 148     { | 
| 149         return m_layoutObject->offsetFromContainer(item.layoutObject()); | 149         return m_layoutObject->offsetFromContainer(item.layoutObject()); | 
| 150     } | 150     } | 
| 151 | 151 | 
| 152     LayoutSize columnOffset(const LayoutPoint& point) const |  | 
| 153     { |  | 
| 154         return m_layoutObject->columnOffset(point); |  | 
| 155     } |  | 
| 156 |  | 
| 157     FrameView* frameView() const | 152     FrameView* frameView() const | 
| 158     { | 153     { | 
| 159         return m_layoutObject->document().view(); | 154         return m_layoutObject->document().view(); | 
| 160     } | 155     } | 
| 161 | 156 | 
| 162     void setMayNeedPaintInvalidation() | 157     void setMayNeedPaintInvalidation() | 
| 163     { | 158     { | 
| 164         m_layoutObject->setMayNeedPaintInvalidation(); | 159         m_layoutObject->setMayNeedPaintInvalidation(); | 
| 165     } | 160     } | 
| 166 | 161 | 
| (...skipping 21 matching lines...) Expand all  Loading... | 
| 188     LayoutObject* layoutObject() { return m_layoutObject; } | 183     LayoutObject* layoutObject() { return m_layoutObject; } | 
| 189     const LayoutObject* layoutObject() const { return m_layoutObject; } | 184     const LayoutObject* layoutObject() const { return m_layoutObject; } | 
| 190 | 185 | 
| 191 private: | 186 private: | 
| 192     LayoutObject* m_layoutObject; | 187     LayoutObject* m_layoutObject; | 
| 193 }; | 188 }; | 
| 194 | 189 | 
| 195 } // namespace blink | 190 } // namespace blink | 
| 196 | 191 | 
| 197 #endif // LayoutItem_h | 192 #endif // LayoutItem_h | 
| OLD | NEW | 
|---|