Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2889783003: Only allow subsequence caching for SVG documents, not inline SVG. (Closed)
Patch Set: none Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698