Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp |
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
index f1f683b47c1d4b69f10391d4f6de1780a9c81348..4bae92051e7f814009e95c528fd81d6191439e9b 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
@@ -127,6 +127,7 @@ PaintLayer::PaintLayer(LayoutBoxModelObject* layoutObject, PaintLayerType type) |
, m_lostGroupedMapping(false) |
, m_needsRepaint(false) |
, m_previousPaintResult(PaintLayerPainter::FullyPainted) |
+ , m_needsPaintPhaseDescendantOutlines(false) |
, m_layoutObject(layoutObject) |
, m_parent(0) |
, m_previous(0) |
@@ -945,6 +946,15 @@ PaintLayer* PaintLayer::enclosingLayerForPaintInvalidation() const |
return nullptr; |
} |
+PaintLayer* PaintLayer::enclosingSelfPaintingLayer() const |
+{ |
+ for (PaintLayer* layer = const_cast<PaintLayer*>(this); layer; layer = layer->parent()) { |
+ if (layer->isSelfPaintingLayer()) |
+ return layer; |
+ } |
+ return nullptr; |
+} |
+ |
void PaintLayer::setNeedsCompositingInputsUpdate() |
{ |
m_needsAncestorDependentCompositingInputsUpdate = true; |