| 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 d32a33b2099e1afdf3d1bd22c7f86039d7e7428b..caf36990c0ef80aa34b59ccb996b41730929bc18 100644
|
| --- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| +++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
|
| @@ -2772,8 +2772,9 @@ bool PaintLayer::SupportsSubsequenceCaching() const {
|
| if (EnclosingPaginationLayer())
|
| return false;
|
|
|
| - // SVG paints atomically.
|
| - if (GetLayoutObject().IsSVGRoot())
|
| + // SVG documents paint atomically.
|
| + if (GetLayoutObject().IsSVGRoot() &&
|
| + GetLayoutObject().GetDocument().IsSVGDocument())
|
| return true;
|
|
|
| // Create subsequence for only stacking contexts whose painting are atomic.
|
|
|