Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(970)

Side by Side Diff: Source/core/paint/DeprecatedPaintLayerPaintingInfo.h

Issue 1318963006: Add a UseCounter for clip CSS or -webkit-clip-path that clips positioned descendants. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerPainter.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/paint/DeprecatedPaintLayerPainter.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698