Index: third_party/WebKit/Source/core/paint/PaintLayer.h |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h |
index 3468e4b0c75fc06240ea0502be045974a012aeef..4749c706032e32bc76e0331be327bd09f87e4ff1 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h |
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h |
@@ -610,6 +610,9 @@ public: |
void updateOrRemoveFilterEffectBuilder(); |
void updateSelfPaintingLayer(); |
+ // This is O(depth) so avoid calling this in loops. Instead use optimizations like |
+ // those in PaintInvalidationState. |
+ PaintLayer* enclosingSelfPaintingLayer(); |
PaintLayer* enclosingTransformedAncestor() const; |
LayoutPoint computeOffsetFromTransformedAncestor() const; |