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

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

Issue 344733003: Clean up ancestorScrollingLayer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make sure we pass Adam's layout test. Created 6 years, 6 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t; 222 RenderLayer* enclosingOverflowClipLayer(IncludeSelfOrNot = IncludeSelf) cons t;
223 223
224 bool isRepaintContainer() const; 224 bool isRepaintContainer() const;
225 // Enclosing compositing layer; if includeSelf is true, may return this. 225 // Enclosing compositing layer; if includeSelf is true, may return this.
226 RenderLayer* enclosingCompositingLayer(IncludeSelfOrNot = IncludeSelf) const ; 226 RenderLayer* enclosingCompositingLayer(IncludeSelfOrNot = IncludeSelf) const ;
227 RenderLayer* enclosingCompositingLayerForRepaint(IncludeSelfOrNot = IncludeS elf) const; 227 RenderLayer* enclosingCompositingLayerForRepaint(IncludeSelfOrNot = IncludeS elf) const;
228 // Ancestor compositing layer, excluding this. 228 // Ancestor compositing layer, excluding this.
229 RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingL ayer(ExcludeSelf); } 229 RenderLayer* ancestorCompositingLayer() const { return enclosingCompositingL ayer(ExcludeSelf); }
230 230
231 // Ancestor composited scrolling layer at or above our containing block.
232 RenderLayer* ancestorCompositedScrollingLayer() const;
233
234 // Ancestor scrolling layer at or above our containing block. 231 // Ancestor scrolling layer at or above our containing block.
235 RenderLayer* ancestorScrollingLayer() const; 232 RenderLayer* ancestorScrollingLayer() const;
236 233
237 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const; 234 RenderLayer* enclosingFilterLayer(IncludeSelfOrNot = IncludeSelf) const;
238 bool hasAncestorWithFilterOutsets() const; 235 bool hasAncestorWithFilterOutsets() const;
239 236
240 bool canUseConvertToLayerCoords() const 237 bool canUseConvertToLayerCoords() const
241 { 238 {
242 // These RenderObjects have an impact on their layers without the render ers knowing about it. 239 // These RenderObjects have an impact on their layers without the render ers knowing about it.
243 return !renderer()->hasColumns() && !renderer()->hasTransform() && !rend erer()->isSVGRoot(); 240 return !renderer()->hasColumns() && !renderer()->hasTransform() && !rend erer()->isSVGRoot();
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
724 721
725 } // namespace WebCore 722 } // namespace WebCore
726 723
727 #ifndef NDEBUG 724 #ifndef NDEBUG
728 // Outside the WebCore namespace for ease of invocation from gdb. 725 // Outside the WebCore namespace for ease of invocation from gdb.
729 void showLayerTree(const WebCore::RenderLayer*); 726 void showLayerTree(const WebCore::RenderLayer*);
730 void showLayerTree(const WebCore::RenderObject*); 727 void showLayerTree(const WebCore::RenderObject*);
731 #endif 728 #endif
732 729
733 #endif // RenderLayer_h 730 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « LayoutTests/compositing/overflow/scroll-parent-absolute-expected.txt ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698