| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, | 71 PaintLayerPaintingChildClippingMaskPhase = 1 << 12, |
| 72 PaintLayerPaintingRenderingClipPathAsMask = 1 << 13, | 72 PaintLayerPaintingRenderingClipPathAsMask = 1 << 13, |
| 73 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) | 73 PaintLayerPaintingCompositingAllPhases = (PaintLayerPaintingCompositingBackg
roundPhase | PaintLayerPaintingCompositingForegroundPhase | PaintLayerPaintingCo
mpositingMaskPhase) |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 typedef unsigned PaintLayerFlags; | 76 typedef unsigned PaintLayerFlags; |
| 77 | 77 |
| 78 struct PaintLayerPaintingInfo { | 78 struct PaintLayerPaintingInfo { |
| 79 STACK_ALLOCATED(); | 79 STACK_ALLOCATED(); |
| 80 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec
t, | 80 PaintLayerPaintingInfo(PaintLayer* inRootLayer, const LayoutRect& inDirtyRec
t, |
| 81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat
ion, | 81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat
ion) |
| 82 LayoutObject* inPaintingRoot = 0) | |
| 83 : rootLayer(inRootLayer) | 82 : rootLayer(inRootLayer) |
| 84 , paintingRoot(inPaintingRoot) | |
| 85 , paintDirtyRect(inDirtyRect) | 83 , paintDirtyRect(inDirtyRect) |
| 86 , subPixelAccumulation(inSubPixelAccumulation) | 84 , subPixelAccumulation(inSubPixelAccumulation) |
| 87 , clipToDirtyRect(true) | 85 , clipToDirtyRect(true) |
| 88 , ancestorHasClipPathClipping(false) | 86 , ancestorHasClipPathClipping(false) |
| 89 , m_globalPaintFlags(globalPaintFlags) | 87 , m_globalPaintFlags(globalPaintFlags) |
| 90 { } | 88 { } |
| 91 | 89 |
| 92 GlobalPaintFlags getGlobalPaintFlags() const { return m_globalPaintFlags; } | 90 GlobalPaintFlags getGlobalPaintFlags() const { return m_globalPaintFlags; } |
| 93 | 91 |
| 94 // TODO(jchaffraix): We should encapsulate all these fields. | 92 // TODO(jchaffraix): We should encapsulate all these fields. |
| 95 PaintLayer* rootLayer; | 93 PaintLayer* rootLayer; |
| 96 LayoutObject* paintingRoot; // only paint descendants of this object | |
| 97 LayoutRect paintDirtyRect; // relative to rootLayer; | 94 LayoutRect paintDirtyRect; // relative to rootLayer; |
| 98 LayoutSize subPixelAccumulation; | 95 LayoutSize subPixelAccumulation; |
| 99 IntSize scrollOffsetAccumulation; | 96 IntSize scrollOffsetAccumulation; |
| 100 bool clipToDirtyRect; | 97 bool clipToDirtyRect; |
| 101 bool ancestorHasClipPathClipping; | 98 bool ancestorHasClipPathClipping; |
| 102 | 99 |
| 103 private: | 100 private: |
| 104 const GlobalPaintFlags m_globalPaintFlags; | 101 const GlobalPaintFlags m_globalPaintFlags; |
| 105 }; | 102 }; |
| 106 | 103 |
| 107 } // namespace blink | 104 } // namespace blink |
| 108 | 105 |
| 109 #endif // PaintLayerPaintingInfo_h | 106 #endif // PaintLayerPaintingInfo_h |
| OLD | NEW |