diff options
Diffstat (limited to 'third_party/WebKit/Source/core/paint/PaintLayer.cpp')
-rw-r--r-- | third_party/WebKit/Source/core/paint/PaintLayer.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp index 2a34031c..4ae5132 100644 --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp @@ -2452,6 +2452,14 @@ void PaintLayer::updateSelfPaintingLayer() parent()->dirtyAncestorChainHasSelfPaintingLayerDescendantStatus(); } +PaintLayer* PaintLayer::enclosingSelfPaintingLayer() +{ + PaintLayer* layer = this; + while (layer && !layer->isSelfPaintingLayer()) + layer = layer->parent(); + return layer; +} + bool PaintLayer::hasNonEmptyChildLayoutObjects() const { // Some HTML can cause whitespace text nodes to have layoutObjects, like: |