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

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

Issue 354223002: Add methods to RenderLayer to get at the painting or scrolling graphics layers, if present. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Edited comments. Created 6 years, 5 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 void* operator new(size_t); 306 void* operator new(size_t);
307 // Only safe to call from RenderLayerModelObject::destroyLayer() 307 // Only safe to call from RenderLayerModelObject::destroyLayer()
308 void operator delete(void*); 308 void operator delete(void*);
309 309
310 CompositingState compositingState() const; 310 CompositingState compositingState() const;
311 311
312 // This returns true if our document is in a phase of its lifestyle during w hich 312 // This returns true if our document is in a phase of its lifestyle during w hich
313 // compositing state may legally be read. 313 // compositing state may legally be read.
314 bool isAllowedToQueryCompositingState() const; 314 bool isAllowedToQueryCompositingState() const;
315 315
316 // NOTE: Don't call these compositing methods unless you know what you are d oing and are sure it is the best approach!
316 CompositedLayerMappingPtr compositedLayerMapping() const; 317 CompositedLayerMappingPtr compositedLayerMapping() const;
317 CompositedLayerMappingPtr ensureCompositedLayerMapping(); 318 CompositedLayerMappingPtr ensureCompositedLayerMapping();
318 319 GraphicsLayer* graphicsLayerBacking() const;
320 GraphicsLayer* graphicsLayerBackingForScrolling() const;
319 // NOTE: If you are using hasCompositedLayerMapping to determine the state o f compositing for this layer, 321 // NOTE: If you are using hasCompositedLayerMapping to determine the state o f compositing for this layer,
320 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping), 322 // (and not just to do bookkeeping related to the mapping like, say, allocat ing or deallocating a mapping),
321 // then you may have incorrect logic. Use compositingState() instead. 323 // then you may have incorrect logic. Use compositingState() instead.
322 bool hasCompositedLayerMapping() const { return m_compositedLayerMapping.get (); } 324 bool hasCompositedLayerMapping() const { return m_compositedLayerMapping.get (); }
323 void clearCompositedLayerMapping(bool layerBeingDestroyed = false); 325 void clearCompositedLayerMapping(bool layerBeingDestroyed = false);
324
325 CompositedLayerMapping* groupedMapping() const { return m_groupedMapping; } 326 CompositedLayerMapping* groupedMapping() const { return m_groupedMapping; }
326 void setGroupedMapping(CompositedLayerMapping* groupedMapping, bool layerBei ngDestroyed = false); 327 void setGroupedMapping(CompositedLayerMapping* groupedMapping, bool layerBei ngDestroyed = false);
327 328
328 bool hasCompositedMask() const; 329 bool hasCompositedMask() const;
329 bool hasCompositedClippingMask() const; 330 bool hasCompositedClippingMask() const;
330 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); } 331 bool needsCompositedScrolling() const { return m_scrollableArea && m_scrolla bleArea->needsCompositedScrolling(); }
331 332
332 bool clipsCompositingDescendantsWithBorderRadius() const; 333 bool clipsCompositingDescendantsWithBorderRadius() const;
333 334
334 RenderLayer* scrollParent() const 335 RenderLayer* scrollParent() const
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 728
728 } // namespace WebCore 729 } // namespace WebCore
729 730
730 #ifndef NDEBUG 731 #ifndef NDEBUG
731 // Outside the WebCore namespace for ease of invocation from gdb. 732 // Outside the WebCore namespace for ease of invocation from gdb.
732 void showLayerTree(const WebCore::RenderLayer*); 733 void showLayerTree(const WebCore::RenderLayer*);
733 void showLayerTree(const WebCore::RenderObject*); 734 void showLayerTree(const WebCore::RenderObject*);
734 #endif 735 #endif
735 736
736 #endif // RenderLayer_h 737 #endif // RenderLayer_h
OLDNEW
« no previous file with comments | « Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | Source/core/rendering/RenderLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698