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

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

Issue 2617903002: Convert recursion to iteration in clearClipRectsIncludingDescendants (Closed)
Patch Set: none Created 3 years, 11 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 LayoutRect& layerBounds, 193 LayoutRect& layerBounds,
194 ClipRect& backgroundRect, 194 ClipRect& backgroundRect,
195 ClipRect& foregroundRect, 195 ClipRect& foregroundRect,
196 const LayoutPoint* offsetFromRoot = 0) const; 196 const LayoutPoint* offsetFromRoot = 0) const;
197 197
198 ClipRects& paintingClipRects(const PaintLayer* rootLayer, 198 ClipRects& paintingClipRects(const PaintLayer* rootLayer,
199 ShouldRespectOverflowClipType, 199 ShouldRespectOverflowClipType,
200 const LayoutSize& subpixelAccumulation) const; 200 const LayoutSize& subpixelAccumulation) const;
201 201
202 private: 202 private:
203 void clearCache(ClipRectsCacheSlot);
203 ClipRects& getClipRects(const ClipRectsContext&) const; 204 ClipRects& getClipRects(const ClipRectsContext&) const;
204 205
205 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; 206 void calculateClipRects(const ClipRectsContext&, ClipRects&) const;
206 ClipRects* clipRectsIfCached(const ClipRectsContext&) const; 207 ClipRects* clipRectsIfCached(const ClipRectsContext&) const;
207 ClipRects& storeClipRectsInCache(const ClipRectsContext&, 208 ClipRects& storeClipRectsInCache(const ClipRectsContext&,
208 ClipRects* parentClipRects, 209 ClipRects* parentClipRects,
209 const ClipRects&) const; 210 const ClipRects&) const;
210 211
211 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const; 212 void getOrCalculateClipRects(const ClipRectsContext&, ClipRects&) const;
212 213
(...skipping 16 matching lines...) Expand all
229 const ClipRectsContext&, 230 const ClipRectsContext&,
230 const ClipRect&) const; 231 const ClipRect&) const;
231 232
232 const PaintLayer& m_layer; 233 const PaintLayer& m_layer;
233 std::unique_ptr<GeometryMapper> m_geometryMapper; 234 std::unique_ptr<GeometryMapper> m_geometryMapper;
234 }; 235 };
235 236
236 } // namespace blink 237 } // namespace blink
237 238
238 #endif // LayerClipper_h 239 #endif // LayerClipper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698