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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayerClipper.h

Issue 2371523002: Apply SVG root viewport clips in PaintLayerClipper. (Closed)
Patch Set: none Created 4 years, 2 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
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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 , overlayScrollbarClipBehavior(overlayScrollbarClipBehavior) 67 , overlayScrollbarClipBehavior(overlayScrollbarClipBehavior)
68 , m_cacheSlot(slot) 68 , m_cacheSlot(slot)
69 , subPixelAccumulation(accumulation) 69 , subPixelAccumulation(accumulation)
70 , respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip ? Ig noreOverflowClip : RespectOverflowClip) 70 , respectOverflowClip(slot == PaintingClipRectsIgnoringOverflowClip ? Ig noreOverflowClip : RespectOverflowClip)
71 , respectOverflowClipForViewport(slot == RootRelativeClipRectsIgnoringVi ewportClip ? IgnoreOverflowClip : RespectOverflowClip) 71 , respectOverflowClipForViewport(slot == RootRelativeClipRectsIgnoringVi ewportClip ? IgnoreOverflowClip : RespectOverflowClip)
72 { 72 {
73 } 73 }
74 74
75 void setIgnoreOverflowClip() 75 void setIgnoreOverflowClip()
76 { 76 {
77 ASSERT(!usesCache() || m_cacheSlot == PaintingClipRects); 77 DCHECK(!usesCache() || m_cacheSlot == PaintingClipRects);
78 ASSERT(respectOverflowClip == RespectOverflowClip); 78 DCHECK(respectOverflowClip == RespectOverflowClip);
79 if (usesCache()) 79 if (usesCache())
80 m_cacheSlot = PaintingClipRectsIgnoringOverflowClip; 80 m_cacheSlot = PaintingClipRectsIgnoringOverflowClip;
81 respectOverflowClip = IgnoreOverflowClip; 81 respectOverflowClip = IgnoreOverflowClip;
82 } 82 }
83 83
84 bool usesCache() const 84 bool usesCache() const
85 { 85 {
86 return m_cacheSlot != UncachedClipRects; 86 return m_cacheSlot != UncachedClipRects;
87 } 87 }
88 88
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const; 180 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const;
181 181
182 bool shouldRespectOverflowClip(const ClipRectsContext&) const; 182 bool shouldRespectOverflowClip(const ClipRectsContext&) const;
183 183
184 const PaintLayer& m_layer; 184 const PaintLayer& m_layer;
185 }; 185 };
186 186
187 } // namespace blink 187 } // namespace blink
188 188
189 #endif // LayerClipper_h 189 #endif // LayerClipper_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/ClipRectsCache.h ('k') | third_party/WebKit/Source/core/paint/PaintLayerClipper.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698