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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 enum PaintLayerFlag { | 55 enum PaintLayerFlag { |
56 PaintLayerHaveTransparency = 1, | 56 PaintLayerHaveTransparency = 1, |
57 // FIXME(sky): This is unused. Remove it. | 57 // FIXME(sky): This is unused. Remove it. |
58 PaintLayerUncachedClipRects = 1 << 2, | 58 PaintLayerUncachedClipRects = 1 << 2, |
59 PaintLayerPaintingOverlayScrollbars = 1 << 4, | 59 PaintLayerPaintingOverlayScrollbars = 1 << 4, |
60 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, | 60 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, |
61 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, | 61 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, |
62 PaintLayerPaintingCompositingMaskPhase = 1 << 7, | 62 PaintLayerPaintingCompositingMaskPhase = 1 << 7, |
63 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, | 63 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, |
64 PaintLayerPaintingOverflowContents = 1 << 9, | |
65 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) | 64 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) |
66 }; | 65 }; |
67 | 66 |
68 typedef unsigned PaintLayerFlags; | 67 typedef unsigned PaintLayerFlags; |
69 | 68 |
70 struct LayerPaintingInfo { | 69 struct LayerPaintingInfo { |
71 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, | 70 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, |
72 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 71 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, |
73 RenderObject* inPaintingRoot = 0) | 72 RenderObject* inPaintingRoot = 0) |
74 : rootLayer(inRootLayer) | 73 : rootLayer(inRootLayer) |
75 , paintingRoot(inPaintingRoot) | 74 , paintingRoot(inPaintingRoot) |
76 , paintDirtyRect(inDirtyRect) | 75 , paintDirtyRect(inDirtyRect) |
77 , subPixelAccumulation(inSubPixelAccumulation) | 76 , subPixelAccumulation(inSubPixelAccumulation) |
78 , paintBehavior(inPaintBehavior) | 77 , paintBehavior(inPaintBehavior) |
79 , clipToDirtyRect(true) | 78 , clipToDirtyRect(true) |
80 { } | 79 { } |
81 RenderLayer* rootLayer; | 80 RenderLayer* rootLayer; |
82 RenderObject* paintingRoot; // only paint descendants of this object | 81 RenderObject* paintingRoot; // only paint descendants of this object |
83 LayoutRect paintDirtyRect; // relative to rootLayer; | 82 LayoutRect paintDirtyRect; // relative to rootLayer; |
84 LayoutSize subPixelAccumulation; | 83 LayoutSize subPixelAccumulation; |
85 PaintBehavior paintBehavior; | 84 PaintBehavior paintBehavior; |
86 bool clipToDirtyRect; | 85 bool clipToDirtyRect; |
87 }; | 86 }; |
88 | 87 |
89 } // namespace blink | 88 } // namespace blink |
90 | 89 |
91 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ | 90 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ |
OLD | NEW |