| 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 | 10 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() | 173 void setShouldDoFullPaintInvalidationIncludingNonCompositingDescendants() |
| 174 { | 174 { |
| 175 m_layoutObject->setShouldDoFullPaintInvalidationIncludingNonCompositingD
escendants(); | 175 m_layoutObject->setShouldDoFullPaintInvalidationIncludingNonCompositingD
escendants(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void computeLayerHitTestRects(LayerHitTestRects& layerRects) const | 178 void computeLayerHitTestRects(LayerHitTestRects& layerRects) const |
| 179 { | 179 { |
| 180 m_layoutObject->computeLayerHitTestRects(layerRects); | 180 m_layoutObject->computeLayerHitTestRects(layerRects); |
| 181 } | 181 } |
| 182 | 182 |
| 183 FloatQuad localToAbsoluteQuad(const FloatQuad& quad, MapCoordinatesFlags mod
e = 0) const |
| 184 { |
| 185 return m_layoutObject->localToAbsoluteQuad(quad, mode); |
| 186 } |
| 187 |
| 183 FloatPoint absoluteToLocal(const FloatPoint& point, MapCoordinatesFlags mode
= 0) const | 188 FloatPoint absoluteToLocal(const FloatPoint& point, MapCoordinatesFlags mode
= 0) const |
| 184 { | 189 { |
| 185 return m_layoutObject->absoluteToLocal(point, mode); | 190 return m_layoutObject->absoluteToLocal(point, mode); |
| 186 } | 191 } |
| 187 | 192 |
| 188 void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing re
ason) | 193 void setNeedsLayoutAndPrefWidthsRecalc(LayoutInvalidationReasonForTracing re
ason) |
| 189 { | 194 { |
| 190 m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason); | 195 m_layoutObject->setNeedsLayoutAndPrefWidthsRecalc(reason); |
| 191 } | 196 } |
| 192 | 197 |
| 193 protected: | 198 protected: |
| 194 LayoutObject* layoutObject() { return m_layoutObject; } | 199 LayoutObject* layoutObject() { return m_layoutObject; } |
| 195 const LayoutObject* layoutObject() const { return m_layoutObject; } | 200 const LayoutObject* layoutObject() const { return m_layoutObject; } |
| 196 | 201 |
| 197 private: | 202 private: |
| 198 LayoutObject* m_layoutObject; | 203 LayoutObject* m_layoutObject; |
| 199 }; | 204 }; |
| 200 | 205 |
| 201 } // namespace blink | 206 } // namespace blink |
| 202 | 207 |
| 203 #endif // LayoutItem_h | 208 #endif // LayoutItem_h |
| OLD | NEW |