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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 PaintLayerPaintingSkipRootBackground = 1 << 11, | 67 PaintLayerPaintingSkipRootBackground = 1 << 11, |
68 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, | 68 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, |
69 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) | 69 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) |
70 }; | 70 }; |
71 | 71 |
72 typedef unsigned PaintLayerFlags; | 72 typedef unsigned PaintLayerFlags; |
73 | 73 |
74 struct LayerPaintingInfo { | 74 struct LayerPaintingInfo { |
75 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, | 75 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, |
76 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 76 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, |
77 RenderObject* inPaintingRoot = 0, RenderRegion*inRegion = 0, | 77 RenderObject* inPaintingRoot = 0, |
78 OverlapTestRequestMap* inOverlapTestRequests = 0) | 78 OverlapTestRequestMap* inOverlapTestRequests = 0) |
79 : rootLayer(inRootLayer) | 79 : rootLayer(inRootLayer) |
80 , paintingRoot(inPaintingRoot) | 80 , paintingRoot(inPaintingRoot) |
81 , paintDirtyRect(inDirtyRect) | 81 , paintDirtyRect(inDirtyRect) |
82 , subPixelAccumulation(inSubPixelAccumulation) | 82 , subPixelAccumulation(inSubPixelAccumulation) |
83 , region(inRegion) | |
84 , overlapTestRequests(inOverlapTestRequests) | 83 , overlapTestRequests(inOverlapTestRequests) |
85 , paintBehavior(inPaintBehavior) | 84 , paintBehavior(inPaintBehavior) |
86 , clipToDirtyRect(true) | 85 , clipToDirtyRect(true) |
87 { } | 86 { } |
88 RenderLayer* rootLayer; | 87 RenderLayer* rootLayer; |
89 RenderObject* paintingRoot; // only paint descendants of this object | 88 RenderObject* paintingRoot; // only paint descendants of this object |
90 LayoutRect paintDirtyRect; // relative to rootLayer; | 89 LayoutRect paintDirtyRect; // relative to rootLayer; |
91 LayoutSize subPixelAccumulation; | 90 LayoutSize subPixelAccumulation; |
92 RenderRegion* region; // May be null. | |
93 OverlapTestRequestMap* overlapTestRequests; // May be null. | 91 OverlapTestRequestMap* overlapTestRequests; // May be null. |
94 PaintBehavior paintBehavior; | 92 PaintBehavior paintBehavior; |
95 bool clipToDirtyRect; | 93 bool clipToDirtyRect; |
96 }; | 94 }; |
97 | 95 |
98 } // namespace WebCore | 96 } // namespace WebCore |
99 | 97 |
100 #endif // LayerPaintingInfo_h | 98 #endif // LayerPaintingInfo_h |
OLD | NEW |