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

Unified Diff: Source/core/rendering/compositing/CompositingPropertyUpdater.h

Issue 309743002: Move computation of RenderLayer::isUnclippedDescendant into CompositingPropertyUpdater (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: less assert 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
Index: Source/core/rendering/compositing/CompositingPropertyUpdater.h
diff --git a/Source/core/rendering/compositing/CompositingPropertyUpdater.h b/Source/core/rendering/compositing/CompositingPropertyUpdater.h
index 3c05ffa369f9777d153243c45f42d6380b36c139..8d47240d58cb3c5234f52dfe29009aea88081b92 100644
--- a/Source/core/rendering/compositing/CompositingPropertyUpdater.h
+++ b/Source/core/rendering/compositing/CompositingPropertyUpdater.h
@@ -12,6 +12,18 @@ namespace WebCore {
class RenderLayer;
class CompositingPropertyUpdater {
+private:
+ struct AncestorInfo {
+ AncestorInfo()
+ : enclosingCompositedLayer(0)
+ , ancestorScrollingLayer(0)
+ {
+ }
+
+ RenderLayer* enclosingCompositedLayer;
+ RenderLayer* ancestorScrollingLayer;
+ };
+
public:
explicit CompositingPropertyUpdater(RenderLayer* rootRenderLayer);
~CompositingPropertyUpdater();
@@ -21,7 +33,7 @@ public:
ForceUpdate,
};
- void updateAncestorDependentProperties(RenderLayer*, UpdateType, RenderLayer* enclosingCompositedLayer);
+ void updateAncestorDependentProperties(RenderLayer*, UpdateType, AncestorInfo = AncestorInfo());
#if !ASSERT_DISABLED
static void assertNeedsToUpdateAncestorDependantPropertiesBitsCleared(RenderLayer*);

Powered by Google App Engine
This is Rietveld 408576698