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

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

Issue 264183002: RAL: Eliminate n^2 walk to find repaint containers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix for SVG Created 6 years, 7 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 bool hasNonCompositedChild() const { ASSERT(isAllowedToQueryCompositingState ()); return m_hasNonCompositedChild; } 233 bool hasNonCompositedChild() const { ASSERT(isAllowedToQueryCompositingState ()); return m_hasNonCompositedChild; }
234 234
235 bool usedTransparency() const { return m_usedTransparency; } 235 bool usedTransparency() const { return m_usedTransparency; }
236 236
237 // Gets the nearest enclosing positioned ancestor layer (also includes 237 // Gets the nearest enclosing positioned ancestor layer (also includes
238 // the <html> layer and the root layer). 238 // the <html> layer and the root layer).
239 RenderLayer* enclosingPositionedAncestor() const; 239 RenderLayer* enclosingPositionedAncestor() const;
240 240
241 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t; 241 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t;
242 242
243 bool isRepaintContainer() const;
243 // Enclosing compositing layer; if includeSelf is true, may return this. 244 // Enclosing compositing layer; if includeSelf is true, may return this.
244 RenderLayer* enclosingCompositingLayer(IncludeSelfOrNot = IncludeSelf) const ; 245 RenderLayer* enclosingCompositingLayer(IncludeSelfOrNot = IncludeSelf) const ;
245 RenderLayer* enclosingCompositingLayerForRepaint(IncludeSelfOrNot = IncludeS elf) const; 246 RenderLayer* enclosingCompositingLayerForRepaint(IncludeSelfOrNot = IncludeS elf) const;
246 // Ancestor compositing layer, excluding this. 247 // Ancestor compositing layer, excluding this.
247 RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingL ayer(ExcludeSelf); } 248 RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingL ayer(ExcludeSelf); }
248 249
249 // Ancestor composited scrolling layer at or above our containing block. 250 // Ancestor composited scrolling layer at or above our containing block.
250 RenderLayer* ancestorCompositedScrollingLayer() const; 251 RenderLayer* ancestorCompositedScrollingLayer() const;
251 252
252 // Ancestor scrolling layer at or above our containing block. 253 // Ancestor scrolling layer at or above our containing block.
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 766
766 } // namespace WebCore 767 } // namespace WebCore
767 768
768 #ifndef NDEBUG 769 #ifndef NDEBUG
769 // Outside the WebCore namespace for ease of invocation from gdb. 770 // Outside the WebCore namespace for ease of invocation from gdb.
770 void showLayerTree(const WebCore::RenderLayer*); 771 void showLayerTree(const WebCore::RenderLayer*);
771 void showLayerTree(const WebCore::RenderObject*); 772 void showLayerTree(const WebCore::RenderObject*);
772 #endif 773 #endif
773 774
774 #endif // RenderLayer_h 775 #endif // RenderLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698