| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat
e; } | 182 void pushLayoutState(LayoutState& layoutState) { m_layoutState = &layoutStat
e; } |
| 183 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState
->next(); } | 183 void popLayoutState() { ASSERT(m_layoutState); m_layoutState = m_layoutState
->next(); } |
| 184 void invalidateTreeIfNeeded(PaintInvalidationState&) final; | 184 void invalidateTreeIfNeeded(PaintInvalidationState&) final; |
| 185 | 185 |
| 186 LayoutRect visualOverflowRect() const override; | 186 LayoutRect visualOverflowRect() const override; |
| 187 | 187 |
| 188 // Invalidates paint for the entire view, including composited descendants,
but not including child frames. | 188 // Invalidates paint for the entire view, including composited descendants,
but not including child frames. |
| 189 // It is very likely you do not want to call this method. | 189 // It is very likely you do not want to call this method. |
| 190 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); | 190 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); |
| 191 | 191 |
| 192 void setCompositedDisplayList(PassOwnPtr<const CompositedDisplayList> compos
itedDisplayList) { m_compositedDisplayList = compositedDisplayList; } | |
| 193 const CompositedDisplayList* compositedDisplayList() const { return m_compos
itedDisplayList.get(); } | |
| 194 | |
| 195 private: | 192 private: |
| 196 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; | 193 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; |
| 197 | 194 |
| 198 template <typename Strategy> | 195 template <typename Strategy> |
| 199 void commitPendingSelectionAlgorithm(); | 196 void commitPendingSelectionAlgorithm(); |
| 200 | 197 |
| 201 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; | 198 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; |
| 202 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; | 199 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; |
| 203 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 200 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
| 204 | 201 |
| (...skipping 25 matching lines...) Expand all Loading... |
| 230 RefPtr<IntervalArena> m_intervalArena; | 227 RefPtr<IntervalArena> m_intervalArena; |
| 231 | 228 |
| 232 LayoutQuote* m_layoutQuoteHead; | 229 LayoutQuote* m_layoutQuoteHead; |
| 233 unsigned m_layoutCounterCount; | 230 unsigned m_layoutCounterCount; |
| 234 | 231 |
| 235 unsigned m_hitTestCount; | 232 unsigned m_hitTestCount; |
| 236 unsigned m_hitTestCacheHits; | 233 unsigned m_hitTestCacheHits; |
| 237 OwnPtrWillBePersistent<HitTestCache> m_hitTestCache; | 234 OwnPtrWillBePersistent<HitTestCache> m_hitTestCache; |
| 238 | 235 |
| 239 OwnPtrWillBePersistent<PendingSelection> m_pendingSelection; | 236 OwnPtrWillBePersistent<PendingSelection> m_pendingSelection; |
| 240 | |
| 241 // TODO(pdr): This is only temporarily here and will be moving | |
| 242 // when the API to cc is specified. | |
| 243 OwnPtr<const CompositedDisplayList> m_compositedDisplayList; | |
| 244 }; | 237 }; |
| 245 | 238 |
| 246 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); | 239 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutView, isLayoutView()); |
| 247 | 240 |
| 248 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms | 241 // Suspends the LayoutState cached offset and clipRect optimization. Used under
transforms |
| 249 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the layout | 242 // that cannot be represented by LayoutState (common in SVG) and when manipulati
ng the layout |
| 250 // tree during layout in ways that can trigger paint invalidation of a non-child
(e.g. when a list item | 243 // tree during layout in ways that can trigger paint invalidation of a non-child
(e.g. when a list item |
| 251 // moves its list marker around). Note that even when disabled, LayoutState is s
till used to | 244 // moves its list marker around). Note that even when disabled, LayoutState is s
till used to |
| 252 // store layoutDelta. | 245 // store layoutDelta. |
| 253 class ForceHorriblySlowRectMapping { | 246 class ForceHorriblySlowRectMapping { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 267 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 260 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 268 } | 261 } |
| 269 private: | 262 private: |
| 270 const PaintInvalidationState* m_paintInvalidationState; | 263 const PaintInvalidationState* m_paintInvalidationState; |
| 271 bool m_didDisable; | 264 bool m_didDisable; |
| 272 }; | 265 }; |
| 273 | 266 |
| 274 } // namespace blink | 267 } // namespace blink |
| 275 | 268 |
| 276 #endif // LayoutView_h | 269 #endif // LayoutView_h |
| OLD | NEW |