| 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, |
| 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 * Library General Public License for more details. | 13 * Library General Public License for more details. |
| 14 * | 14 * |
| 15 * You should have received a copy of the GNU Library General Public License | 15 * You should have received a copy of the GNU Library General Public License |
| 16 * along with this library; see the file COPYING.LIB. If not, write to | 16 * along with this library; see the file COPYING.LIB. If not, write to |
| 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 * Boston, MA 02110-1301, USA. | 18 * Boston, MA 02110-1301, USA. |
| 19 * | 19 * |
| 20 */ | 20 */ |
| 21 | 21 |
| 22 #ifndef LayoutView_h | 22 #ifndef LayoutView_h |
| 23 #define LayoutView_h | 23 #define LayoutView_h |
| 24 | 24 |
| 25 #include "core/CoreExport.h" | 25 #include "core/CoreExport.h" |
| 26 #include "core/compositing/DisplayListCompositingBuilder.h" | 26 #include "core/compositing/DisplayListCompositingBuilder.h" |
| 27 #include "core/editing/Position.h" | |
| 28 #include "core/frame/FrameView.h" | 27 #include "core/frame/FrameView.h" |
| 29 #include "core/layout/HitTestCache.h" | 28 #include "core/layout/HitTestCache.h" |
| 30 #include "core/layout/HitTestResult.h" | 29 #include "core/layout/HitTestResult.h" |
| 31 #include "core/layout/LayoutBlockFlow.h" | 30 #include "core/layout/LayoutBlockFlow.h" |
| 32 #include "core/layout/LayoutState.h" | 31 #include "core/layout/LayoutState.h" |
| 33 #include "core/layout/PaintInvalidationState.h" | 32 #include "core/layout/PaintInvalidationState.h" |
| 34 #include "core/layout/PendingSelection.h" | 33 #include "core/layout/PendingSelection.h" |
| 35 #include "platform/PODFreeListArena.h" | 34 #include "platform/PODFreeListArena.h" |
| 36 #include "platform/RuntimeEnabledFeatures.h" | 35 #include "platform/RuntimeEnabledFeatures.h" |
| 37 #include "platform/heap/Handle.h" | 36 #include "platform/heap/Handle.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 | 184 |
| 186 LayoutRect visualOverflowRect() const override; | 185 LayoutRect visualOverflowRect() const override; |
| 187 | 186 |
| 188 // Invalidates paint for the entire view, including composited descendants,
but not including child frames. | 187 // 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. | 188 // It is very likely you do not want to call this method. |
| 190 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); | 189 void setShouldDoFullPaintInvalidationForViewAndAllDescendants(); |
| 191 | 190 |
| 192 private: | 191 private: |
| 193 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; | 192 void mapLocalToContainer(const LayoutBoxModelObject* paintInvalidationContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
nullptr, const PaintInvalidationState* = nullptr) const override; |
| 194 | 193 |
| 195 template <typename Strategy> | |
| 196 void commitPendingSelectionAlgorithm(); | |
| 197 | |
| 198 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; | 194 const LayoutObject* pushMappingToContainer(const LayoutBoxModelObject* ances
torToStopAt, LayoutGeometryMap&) const override; |
| 199 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; | 195 void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) const ove
rride; |
| 200 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; | 196 void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint& layerOf
fset) const override; |
| 201 | 197 |
| 202 void layoutContent(); | 198 void layoutContent(); |
| 203 #if ENABLE(ASSERT) | 199 #if ENABLE(ASSERT) |
| 204 void checkLayoutState(); | 200 void checkLayoutState(); |
| 205 #endif | 201 #endif |
| 206 | 202 |
| 207 friend class ForceHorriblySlowRectMapping; | 203 friend class ForceHorriblySlowRectMapping; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 260 m_paintInvalidationState->m_cachedOffsetsEnabled = true; | 256 m_paintInvalidationState->m_cachedOffsetsEnabled = true; |
| 261 } | 257 } |
| 262 private: | 258 private: |
| 263 const PaintInvalidationState* m_paintInvalidationState; | 259 const PaintInvalidationState* m_paintInvalidationState; |
| 264 bool m_didDisable; | 260 bool m_didDisable; |
| 265 }; | 261 }; |
| 266 | 262 |
| 267 } // namespace blink | 263 } // namespace blink |
| 268 | 264 |
| 269 #endif // LayoutView_h | 265 #endif // LayoutView_h |
| OLD | NEW |