| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 */ | 43 */ |
| 44 | 44 |
| 45 #ifndef LayerPaintingInfo_h | 45 #ifndef LayerPaintingInfo_h |
| 46 #define LayerPaintingInfo_h | 46 #define LayerPaintingInfo_h |
| 47 | 47 |
| 48 #include "core/rendering/PaintInfo.h" | 48 #include "core/rendering/PaintInfo.h" |
| 49 #include "platform/geometry/LayoutRect.h" | 49 #include "platform/geometry/LayoutRect.h" |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 class RenderLayer; | 53 class Layer; |
| 54 | 54 |
| 55 enum PaintLayerFlag { | 55 enum PaintLayerFlag { |
| 56 PaintLayerHaveTransparency = 1, | 56 PaintLayerHaveTransparency = 1, |
| 57 PaintLayerAppliedTransform = 1 << 1, | 57 PaintLayerAppliedTransform = 1 << 1, |
| 58 PaintLayerUncachedClipRects = 1 << 2, | 58 PaintLayerUncachedClipRects = 1 << 2, |
| 59 PaintLayerPaintingReflection = 1 << 3, | 59 PaintLayerPaintingReflection = 1 << 3, |
| 60 PaintLayerPaintingOverlayScrollbars = 1 << 4, | 60 PaintLayerPaintingOverlayScrollbars = 1 << 4, |
| 61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, | 61 PaintLayerPaintingCompositingBackgroundPhase = 1 << 5, |
| 62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, | 62 PaintLayerPaintingCompositingForegroundPhase = 1 << 6, |
| 63 PaintLayerPaintingCompositingMaskPhase = 1 << 7, | 63 PaintLayerPaintingCompositingMaskPhase = 1 << 7, |
| 64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, | 64 PaintLayerPaintingCompositingScrollingPhase = 1 << 8, |
| 65 PaintLayerPaintingOverflowContents = 1 << 9, | 65 PaintLayerPaintingOverflowContents = 1 << 9, |
| 66 PaintLayerPaintingRootBackgroundOnly = 1 << 10, | 66 PaintLayerPaintingRootBackgroundOnly = 1 << 10, |
| 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(Layer* inRootLayer, const LayoutRect& inDirtyRect, |
| 76 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 76 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, |
| 77 RenderObject* inPaintingRoot = 0) | 77 RenderObject* inPaintingRoot = 0) |
| 78 : rootLayer(inRootLayer) | 78 : rootLayer(inRootLayer) |
| 79 , paintingRoot(inPaintingRoot) | 79 , paintingRoot(inPaintingRoot) |
| 80 , paintDirtyRect(inDirtyRect) | 80 , paintDirtyRect(inDirtyRect) |
| 81 , subPixelAccumulation(inSubPixelAccumulation) | 81 , subPixelAccumulation(inSubPixelAccumulation) |
| 82 , paintBehavior(inPaintBehavior) | 82 , paintBehavior(inPaintBehavior) |
| 83 , clipToDirtyRect(true) | 83 , clipToDirtyRect(true) |
| 84 { } | 84 { } |
| 85 RenderLayer* rootLayer; | 85 Layer* rootLayer; |
| 86 RenderObject* paintingRoot; // only paint descendants of this object | 86 RenderObject* paintingRoot; // only paint descendants of this object |
| 87 LayoutRect paintDirtyRect; // relative to rootLayer; | 87 LayoutRect paintDirtyRect; // relative to rootLayer; |
| 88 LayoutSize subPixelAccumulation; | 88 LayoutSize subPixelAccumulation; |
| 89 PaintBehavior paintBehavior; | 89 PaintBehavior paintBehavior; |
| 90 bool clipToDirtyRect; | 90 bool clipToDirtyRect; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 } // namespace blink | 93 } // namespace blink |
| 94 | 94 |
| 95 #endif // LayerPaintingInfo_h | 95 #endif // LayerPaintingInfo_h |
| OLD | NEW |