| 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 2a34031c6b1d79a03a3b2f3a87ac1de8cee6a7d8..4ae5132c89708c12992b47244806223ba351709d 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:
|
|
|