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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 struct DeprecatedPaintLayerPaintingInfo { | 78 struct DeprecatedPaintLayerPaintingInfo { |
79 STACK_ALLOCATED(); | 79 STACK_ALLOCATED(); |
80 DeprecatedPaintLayerPaintingInfo(DeprecatedPaintLayer* inRootLayer, const La
youtRect& inDirtyRect, | 80 DeprecatedPaintLayerPaintingInfo(DeprecatedPaintLayer* inRootLayer, const La
youtRect& inDirtyRect, |
81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat
ion, | 81 GlobalPaintFlags globalPaintFlags, const LayoutSize& inSubPixelAccumulat
ion, |
82 LayoutObject* inPaintingRoot = 0) | 82 LayoutObject* inPaintingRoot = 0) |
83 : rootLayer(inRootLayer) | 83 : rootLayer(inRootLayer) |
84 , paintingRoot(inPaintingRoot) | 84 , paintingRoot(inPaintingRoot) |
85 , paintDirtyRect(inDirtyRect) | 85 , paintDirtyRect(inDirtyRect) |
86 , subPixelAccumulation(inSubPixelAccumulation) | 86 , subPixelAccumulation(inSubPixelAccumulation) |
87 , clipToDirtyRect(true) | 87 , clipToDirtyRect(true) |
| 88 , ancestorHasClipPathClipping(false) |
88 , m_globalPaintFlags(globalPaintFlags) | 89 , m_globalPaintFlags(globalPaintFlags) |
89 { } | 90 { } |
90 | 91 |
91 GlobalPaintFlags globalPaintFlags() const { return m_globalPaintFlags; } | 92 GlobalPaintFlags globalPaintFlags() const { return m_globalPaintFlags; } |
92 | 93 |
93 // TODO(jchaffraix): We should encapsulate all these fields. | 94 // TODO(jchaffraix): We should encapsulate all these fields. |
94 DeprecatedPaintLayer* rootLayer; | 95 DeprecatedPaintLayer* rootLayer; |
95 LayoutObject* paintingRoot; // only paint descendants of this object | 96 LayoutObject* paintingRoot; // only paint descendants of this object |
96 LayoutRect paintDirtyRect; // relative to rootLayer; | 97 LayoutRect paintDirtyRect; // relative to rootLayer; |
97 LayoutSize subPixelAccumulation; | 98 LayoutSize subPixelAccumulation; |
98 IntSize scrollOffsetAccumulation; | 99 IntSize scrollOffsetAccumulation; |
99 bool clipToDirtyRect; | 100 bool clipToDirtyRect; |
| 101 bool ancestorHasClipPathClipping; |
100 | 102 |
101 private: | 103 private: |
102 const GlobalPaintFlags m_globalPaintFlags; | 104 const GlobalPaintFlags m_globalPaintFlags; |
103 }; | 105 }; |
104 | 106 |
105 } // namespace blink | 107 } // namespace blink |
106 | 108 |
107 #endif // DeprecatedPaintLayerPaintingInfo_h | 109 #endif // DeprecatedPaintLayerPaintingInfo_h |
OLD | NEW |