| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2009, 2012 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
| 4 * | 4 * |
| 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. | 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. |
| 6 * | 6 * |
| 7 * Other contributors: | 7 * Other contributors: |
| 8 * Robert O'Callahan <roc+@cs.cmu.edu> | 8 * Robert O'Callahan <roc+@cs.cmu.edu> |
| 9 * David Baron <dbaron@fas.harvard.edu> | 9 * David Baron <dbaron@fas.harvard.edu> |
| 10 * Christian Biesinger <cbiesinger@web.de> | 10 * Christian Biesinger <cbiesinger@web.de> |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 UpdatePagination = 1 << 4 | 189 UpdatePagination = 1 << 4 |
| 190 }; | 190 }; |
| 191 typedef unsigned UpdateLayerPositionsFlags; | 191 typedef unsigned UpdateLayerPositionsFlags; |
| 192 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo
mpositingUpdateRoot | UpdateCompositingLayers; | 192 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo
mpositingUpdateRoot | UpdateCompositingLayers; |
| 193 | 193 |
| 194 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay
erPositionsFlags); | 194 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay
erPositionsFlags); |
| 195 | 195 |
| 196 void updateLayerPositionsAfterOverflowScroll(); | 196 void updateLayerPositionsAfterOverflowScroll(); |
| 197 void updateLayerPositionsAfterDocumentScroll(); | 197 void updateLayerPositionsAfterDocumentScroll(); |
| 198 | 198 |
| 199 void positionNewlyCreatedOverflowControls(); | |
| 200 | 199 |
| 201 bool isPaginated() const { return m_isPaginated; } | 200 bool isPaginated() const { return m_isPaginated; } |
| 202 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } | 201 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } |
| 203 | 202 |
| 204 void updateTransform(); | 203 void updateTransform(); |
| 205 | 204 |
| 206 void updateBlendMode(); | 205 void updateBlendMode(); |
| 207 | 206 |
| 208 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow
Position; } | 207 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow
Position; } |
| 209 | 208 |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 void updateOrRemoveFilterClients(); | 763 void updateOrRemoveFilterClients(); |
| 765 void updateOrRemoveFilterEffectRenderer(); | 764 void updateOrRemoveFilterEffectRenderer(); |
| 766 | 765 |
| 767 void parentClipRects(const ClipRectsContext&, ClipRects&) const; | 766 void parentClipRects(const ClipRectsContext&, ClipRects&) const; |
| 768 ClipRect backgroundClipRect(const ClipRectsContext&) const; | 767 ClipRect backgroundClipRect(const ClipRectsContext&) const; |
| 769 | 768 |
| 770 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa
intDirtyRect, PaintBehavior); | 769 LayoutRect paintingExtent(const RenderLayer* rootLayer, const LayoutRect& pa
intDirtyRect, PaintBehavior); |
| 771 | 770 |
| 772 RenderLayer* enclosingTransformedAncestor() const; | 771 RenderLayer* enclosingTransformedAncestor() const; |
| 773 | 772 |
| 773 // If IntSize is not given, then we must incur additional overhead to instan
tiate a RenderGeometryMap |
| 774 // and compute the correct offset ourselves. |
| 775 void positionOverflowControls(); |
| 774 void positionOverflowControls(const IntSize&); | 776 void positionOverflowControls(const IntSize&); |
| 775 | 777 |
| 776 void updatePagination(); | 778 void updatePagination(); |
| 777 | 779 |
| 778 // FIXME: Temporary. Remove when new columns come online. | 780 // FIXME: Temporary. Remove when new columns come online. |
| 779 bool useRegionBasedColumns() const; | 781 bool useRegionBasedColumns() const; |
| 780 | 782 |
| 781 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo
mpositingDescendant; } | 783 bool hasCompositingDescendant() const { return m_compositingProperties.hasCo
mpositingDescendant; } |
| 782 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo
sitingDescendant = b; } | 784 void setHasCompositingDescendant(bool b) { m_compositingProperties.hasCompo
sitingDescendant = b; } |
| 783 | 785 |
| (...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 979 | 981 |
| 980 } // namespace WebCore | 982 } // namespace WebCore |
| 981 | 983 |
| 982 #ifndef NDEBUG | 984 #ifndef NDEBUG |
| 983 // Outside the WebCore namespace for ease of invocation from gdb. | 985 // Outside the WebCore namespace for ease of invocation from gdb. |
| 984 void showLayerTree(const WebCore::RenderLayer*); | 986 void showLayerTree(const WebCore::RenderLayer*); |
| 985 void showLayerTree(const WebCore::RenderObject*); | 987 void showLayerTree(const WebCore::RenderObject*); |
| 986 #endif | 988 #endif |
| 987 | 989 |
| 988 #endif // RenderLayer_h | 990 #endif // RenderLayer_h |
| OLD | NEW |