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

Side by Side Diff: Source/core/rendering/RenderLayerClipper.h

Issue 211683003: Return an infinite rect when calling RenderLayerClipper::parentClipRects on the root context layer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Comment. Created 6 years, 9 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
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Compute and return the clip rects. If useCached is true, will used previo usly computed clip rects on ancestors 108 // Compute and return the clip rects. If useCached is true, will used previo usly computed clip rects on ancestors
109 // (rather than computing them all from scratch up the parent chain). 109 // (rather than computing them all from scratch up the parent chain).
110 void calculateClipRects(const ClipRectsContext&, ClipRects&) const; 110 void calculateClipRects(const ClipRectsContext&, ClipRects&) const;
111 111
112 private: 112 private:
113 void parentClipRects(const ClipRectsContext&, ClipRects&) const; 113 void parentClipRects(const ClipRectsContext&, ClipRects&) const;
114 114
115 // The layer relative to which clipping rects for this layer are computed. 115 // The layer relative to which clipping rects for this layer are computed.
116 RenderLayer* clippingRootForPainting() const; 116 RenderLayer* clippingRootForPainting() const;
117 117
118 bool isClippingRootForContext(const ClipRectsContext&) const;
119
118 // FIXME: Could this be a RenderBox? 120 // FIXME: Could this be a RenderBox?
119 RenderLayerModelObject* m_renderer; 121 RenderLayerModelObject* m_renderer;
120 OwnPtr<ClipRectsCache> m_clipRectsCache; 122 OwnPtr<ClipRectsCache> m_clipRectsCache;
121 unsigned m_compositingClipRectsDirty : 1; 123 unsigned m_compositingClipRectsDirty : 1;
122 }; 124 };
123 125
124 } // namespace WebCore 126 } // namespace WebCore
125 127
126 #endif // RenderLayerClipper_h 128 #endif // RenderLayerClipper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698