| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 #include "sky/engine/core/rendering/PaintInfo.h" | 48 #include "sky/engine/core/rendering/PaintInfo.h" |
| 49 #include "sky/engine/platform/geometry/LayoutRect.h" | 49 #include "sky/engine/platform/geometry/LayoutRect.h" |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 class RenderLayer; | 53 class RenderLayer; |
| 54 | 54 |
| 55 struct LayerPaintingInfo { | 55 struct LayerPaintingInfo { |
| 56 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, | 56 LayerPaintingInfo(RenderLayer* inRootLayer, const LayoutRect& inDirtyRect, |
| 57 const LayoutSize& inSubPixelAccumulation, RenderObject* inPaintingRoot) | 57 const LayoutSize& inSubPixelAccumulation) |
| 58 : rootLayer(inRootLayer) | 58 : rootLayer(inRootLayer) |
| 59 , paintingRoot(inPaintingRoot) | |
| 60 , paintDirtyRect(inDirtyRect) | 59 , paintDirtyRect(inDirtyRect) |
| 61 , subPixelAccumulation(inSubPixelAccumulation) | 60 , subPixelAccumulation(inSubPixelAccumulation) |
| 62 , clipToDirtyRect(true) | 61 , clipToDirtyRect(true) |
| 63 { } | 62 { } |
| 64 RenderLayer* rootLayer; | 63 RenderLayer* rootLayer; |
| 65 RenderObject* paintingRoot; // only paint descendants of this object | |
| 66 LayoutRect paintDirtyRect; // relative to rootLayer; | 64 LayoutRect paintDirtyRect; // relative to rootLayer; |
| 67 LayoutSize subPixelAccumulation; | 65 LayoutSize subPixelAccumulation; |
| 68 bool clipToDirtyRect; | 66 bool clipToDirtyRect; |
| 69 }; | 67 }; |
| 70 | 68 |
| 71 } // namespace blink | 69 } // namespace blink |
| 72 | 70 |
| 73 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ | 71 #endif // SKY_ENGINE_CORE_RENDERING_LAYERPAINTINGINFO_H_ |
| OLD | NEW |