| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 | 162 |
| 163 // Notification from the renderer that its content changed (e.g. current fra
me of image changed). | 163 // Notification from the renderer that its content changed (e.g. current fra
me of image changed). |
| 164 // Allows updates of layer content without repainting. | 164 // Allows updates of layer content without repainting. |
| 165 void contentChanged(ContentChangeType); | 165 void contentChanged(ContentChangeType); |
| 166 | 166 |
| 167 bool canRender3DTransforms() const; | 167 bool canRender3DTransforms() const; |
| 168 | 168 |
| 169 enum UpdateLayerPositionsFlag { | 169 enum UpdateLayerPositionsFlag { |
| 170 CheckForRepaint = 1 << 0, | 170 CheckForRepaint = 1 << 0, |
| 171 NeedsFullRepaintInBacking = 1 << 1, | 171 NeedsFullRepaintInBacking = 1 << 1, |
| 172 IsCompositingUpdateRoot = 1 << 2, | 172 UpdatePagination = 1 << 2, |
| 173 UpdateCompositingLayers = 1 << 3, | |
| 174 UpdatePagination = 1 << 4 | |
| 175 }; | 173 }; |
| 176 typedef unsigned UpdateLayerPositionsFlags; | 174 typedef unsigned UpdateLayerPositionsFlags; |
| 177 static const UpdateLayerPositionsFlags defaultFlags = CheckForRepaint | IsCo
mpositingUpdateRoot | UpdateCompositingLayers; | |
| 178 | 175 |
| 179 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay
erPositionsFlags); | 176 void updateLayerPositionsAfterLayout(const RenderLayer* rootLayer, UpdateLay
erPositionsFlags); |
| 180 | |
| 181 void updateLayerPositionsAfterOverflowScroll(); | 177 void updateLayerPositionsAfterOverflowScroll(); |
| 182 void updateLayerPositionsAfterDocumentScroll(); | 178 void updateLayerPositionsAfterDocumentScroll(); |
| 183 | 179 |
| 180 // FIXME: Should updateLayerPositions be private? |
| 181 void updateLayerPositions(RenderGeometryMap*, UpdateLayerPositionsFlags = Ch
eckForRepaint); |
| 182 |
| 184 bool isPaginated() const { return m_isPaginated; } | 183 bool isPaginated() const { return m_isPaginated; } |
| 185 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } | 184 RenderLayer* enclosingPaginationLayer() const { return m_enclosingPagination
Layer; } |
| 186 | 185 |
| 187 void updateTransform(); | 186 void updateTransform(); |
| 188 RenderLayer* renderingContextRoot(); | 187 RenderLayer* renderingContextRoot(); |
| 189 | 188 |
| 190 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow
Position; } | 189 const LayoutSize& offsetForInFlowPosition() const { return m_offsetForInFlow
Position; } |
| 191 | 190 |
| 192 void addBlockSelectionGapsBounds(const LayoutRect&); | 191 void addBlockSelectionGapsBounds(const LayoutRect&); |
| 193 void clearBlockSelectionGapsBounds(); | 192 void clearBlockSelectionGapsBounds(); |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 bool hasNonCompositedChild() const { return m_compositingProperties.hasNonCo
mpositedChild; } | 501 bool hasNonCompositedChild() const { return m_compositingProperties.hasNonCo
mpositedChild; } |
| 503 void setHasNonCompositedChild(bool b) { m_compositingProperties.hasNonCompo
sitedChild = b; } | 502 void setHasNonCompositedChild(bool b) { m_compositingProperties.hasNonCompo
sitedChild = b; } |
| 504 | 503 |
| 505 bool shouldIsolateCompositedDescendants() const { return m_compositingProper
ties.shouldIsolateCompositedDescendants; } | 504 bool shouldIsolateCompositedDescendants() const { return m_compositingProper
ties.shouldIsolateCompositedDescendants; } |
| 506 void setShouldIsolateCompositedDescendants(bool b) { m_compositingPropertie
s.shouldIsolateCompositedDescendants = b; } | 505 void setShouldIsolateCompositedDescendants(bool b) { m_compositingPropertie
s.shouldIsolateCompositedDescendants = b; } |
| 507 | 506 |
| 508 void updateDescendantDependentFlags(); | 507 void updateDescendantDependentFlags(); |
| 509 | 508 |
| 510 void updateOrRemoveFilterEffectRenderer(); | 509 void updateOrRemoveFilterEffectRenderer(); |
| 511 | 510 |
| 512 void updateLayerPositions(RenderGeometryMap* = 0, UpdateLayerPositionsFlags
= defaultFlags); | |
| 513 | |
| 514 void updateSelfPaintingLayer(); | 511 void updateSelfPaintingLayer(); |
| 515 | 512 |
| 516 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay
erFlags); | 513 void paintLayerContents(GraphicsContext*, const LayerPaintingInfo&, PaintLay
erFlags); |
| 517 | 514 |
| 518 RenderLayer* enclosingTransformedAncestor() const; | 515 RenderLayer* enclosingTransformedAncestor() const; |
| 519 | 516 |
| 520 void didUpdateNeedsCompositedScrolling(); | 517 void didUpdateNeedsCompositedScrolling(); |
| 521 | 518 |
| 522 private: | 519 private: |
| 523 // FIXME: Merge with AncestorDependentProperties. | 520 // FIXME: Merge with AncestorDependentProperties. |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 | 802 |
| 806 } // namespace WebCore | 803 } // namespace WebCore |
| 807 | 804 |
| 808 #ifndef NDEBUG | 805 #ifndef NDEBUG |
| 809 // Outside the WebCore namespace for ease of invocation from gdb. | 806 // Outside the WebCore namespace for ease of invocation from gdb. |
| 810 void showLayerTree(const WebCore::RenderLayer*); | 807 void showLayerTree(const WebCore::RenderLayer*); |
| 811 void showLayerTree(const WebCore::RenderObject*); | 808 void showLayerTree(const WebCore::RenderObject*); |
| 812 #endif | 809 #endif |
| 813 | 810 |
| 814 #endif // RenderLayer_h | 811 #endif // RenderLayer_h |
| OLD | NEW |