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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt
ateDisabler. | 202 // These functions may only be accessed by LayoutStateMaintainer or LayoutSt
ateDisabler. |
203 void disableLayoutState() { m_layoutStateDisableCount++; } | 203 void disableLayoutState() { m_layoutStateDisableCount++; } |
204 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt
ateDisableCount--; } | 204 void enableLayoutState() { ASSERT(m_layoutStateDisableCount > 0); m_layoutSt
ateDisableCount--; } |
205 | 205 |
206 private: | 206 private: |
207 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; | 207 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai
ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed =
0) const OVERRIDE; |
208 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; | 208 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj
ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; |
209 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; | 209 virtual void mapAbsoluteToLocalPoint(MapCoordinatesFlags, TransformState&) c
onst OVERRIDE; |
210 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; | 210 virtual void computeSelfHitTestRects(Vector<LayoutRect>&, const LayoutPoint&
layerOffset) const OVERRIDE; |
211 | 211 |
| 212 virtual void invalidateTreeAfterLayout(const RenderLayerModelObject& paintIn
validationContainer) OVERRIDE FINAL; |
| 213 |
212 bool shouldRepaint(const LayoutRect&) const; | 214 bool shouldRepaint(const LayoutRect&) const; |
213 | 215 |
214 bool rootFillsViewportBackground(RenderBox* rootBox) const; | 216 bool rootFillsViewportBackground(RenderBox* rootBox) const; |
215 | 217 |
216 // These functions may only be accessed by LayoutStateMaintainer. | 218 // These functions may only be accessed by LayoutStateMaintainer. |
217 bool pushLayoutState(RenderBox& renderer, const LayoutSize& offset, LayoutUn
it pageHeight = 0, bool pageHeightChanged = false, ColumnInfo* colInfo = 0) | 219 bool pushLayoutState(RenderBox& renderer, const LayoutSize& offset, LayoutUn
it pageHeight = 0, bool pageHeightChanged = false, ColumnInfo* colInfo = 0) |
218 { | 220 { |
219 // We push LayoutState even if layoutState is disabled because it stores
layoutDelta too. | 221 // We push LayoutState even if layoutState is disabled because it stores
layoutDelta too. |
220 if ((!doingFullRepaint() || (RuntimeEnabledFeatures::repaintAfterLayoutE
nabled() && layoutStateEnabled())) || m_layoutState->isPaginated() || renderer.h
asColumns() || renderer.flowThreadContainingBlock() | 222 if ((!doingFullRepaint() || (RuntimeEnabledFeatures::repaintAfterLayoutE
nabled() && layoutStateEnabled())) || m_layoutState->isPaginated() || renderer.h
asColumns() || renderer.flowThreadContainingBlock() |
221 ) { | 223 ) { |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 { | 379 { |
378 m_view.enableLayoutState(); | 380 m_view.enableLayoutState(); |
379 } | 381 } |
380 private: | 382 private: |
381 RenderView& m_view; | 383 RenderView& m_view; |
382 }; | 384 }; |
383 | 385 |
384 } // namespace WebCore | 386 } // namespace WebCore |
385 | 387 |
386 #endif // RenderView_h | 388 #endif // RenderView_h |
OLD | NEW |