| 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 // FIXME(sky): Get rid of this bitmasking and just use a regular enum. | 55 // FIXME(sky): Get rid of this bitmasking and just use a regular enum. |
| 56 enum PaintLayerFlag { | 56 enum PaintLayerFlag { |
| 57 PaintLayerPaintingOverlayScrollbars = 1, | 57 PaintLayerPaintingOverlayScrollbars = 1, |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 typedef unsigned PaintLayerFlags; | 60 typedef unsigned PaintLayerFlags; |
| 61 | 61 |
| 62 struct LayerPaintingInfo { | 62 struct LayerPaintingInfo { |
| 63 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, | 63 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, |
| 64 PaintBehavior inPaintBehavior, const LayoutSize& inSubPixelAccumulation, | 64 const LayoutSize& inSubPixelAccumulation, RenderObject* inPaintingRoot =
0) |
| 65 RenderObject* inPaintingRoot = 0) | |
| 66 : rootLayer(inRootLayer) | 65 : rootLayer(inRootLayer) |
| 67 , paintingRoot(inPaintingRoot) | 66 , paintingRoot(inPaintingRoot) |
| 68 , paintDirtyRect(inDirtyRect) | 67 , paintDirtyRect(inDirtyRect) |
| 69 , subPixelAccumulation(inSubPixelAccumulation) | 68 , subPixelAccumulation(inSubPixelAccumulation) |
| 70 , paintBehavior(inPaintBehavior) | |
| 71 , clipToDirtyRect(true) | 69 , clipToDirtyRect(true) |
| 72 { } | 70 { } |
| 73 RenderLayer* rootLayer; | 71 RenderLayer* rootLayer; |
| 74 RenderObject* paintingRoot; // only paint descendants of this object | 72 RenderObject* paintingRoot; // only paint descendants of this object |
| 75 LayoutRect paintDirtyRect; // relative to rootLayer; | 73 LayoutRect paintDirtyRect; // relative to rootLayer; |
| 76 LayoutSize subPixelAccumulation; | 74 LayoutSize subPixelAccumulation; |
| 77 PaintBehavior paintBehavior; | |
| 78 bool clipToDirtyRect; | 75 bool clipToDirtyRect; |
| 79 }; | 76 }; |
| 80 | 77 |
| 81 } // namespace blink | 78 } // namespace blink |
| 82 | 79 |
| 83 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ | 80 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ |
| OLD | NEW |