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

Unified Diff: Source/core/rendering/RenderLayer.cpp

Issue 264013002: Allow layers that need squashing to draw into the squashing layer in some cases. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Adjust. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/compositing/CompositedLayerMappingPtr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 18e6c98024aa4ffa81209a36960c7ae22485de67..e246fb6e4e6fd19d02a893ed6d17431d0255dc8d 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -1134,6 +1134,26 @@ RenderLayer* RenderLayer::enclosingCompositingLayer(IncludeSelfOrNot includeSelf
return 0;
}
+RenderLayer* RenderLayer::containingGroupedLayer() const
+{
+ ASSERT(isAllowedToQueryCompositingState());
+
+ for (const RenderLayer* curr = this; curr; curr = curr->parent()) {
abarth-chromium 2014/05/05 21:37:40 Is this the right parent chain to walk? I would h
chrishtr 2014/05/05 21:58:51 Right this is I think the issue with this CL.
+ switch (curr->compositingState()) {
+ case NotComposited:
+ continue;
+ case PaintsIntoGroupedBacking:
+ return const_cast<RenderLayer*>(curr);
+ break;
+ default:
+ return 0;
+ break;
+ }
+ }
+
+ return 0;
+}
+
RenderLayer* RenderLayer::enclosingCompositingLayerForRepaint(IncludeSelfOrNot includeSelf) const
{
ASSERT(isAllowedToQueryCompositingState());
« no previous file with comments | « Source/core/rendering/RenderLayer.h ('k') | Source/core/rendering/compositing/CompositedLayerMappingPtr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698