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 334ab82ab3910a692d6d4a4ae3aabc1124a526c2..3c6ca36ef8bf665bf84fc2ce6d74c2fb049ff6de 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp |
@@ -2784,8 +2784,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. |