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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.h

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/svg/graphics/SVGImage.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
index 01067ef703f33b36bd0c41c0c7d2e7d93ba1b0cf..9b721392228aa10e4981f83e32ad3e489fa6462d 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -183,6 +183,7 @@ class CORE_EXPORT SVGImage final : public Image {
void ScheduleTimelineRewind();
void FlushPendingTimelineRewind();
+ Page* GetPage() { return page_; }
fs 2017/05/17 11:14:45 Nit: GetPageForTesting to avoid given people wrong
chrishtr 2017/05/17 17:01:18 Done.
void LoadCompleted();
class SVGImageLocalFrameClient;
@@ -209,6 +210,7 @@ class CORE_EXPORT SVGImage final : public Image {
LoadState load_state_ = kDataChangedNotStarted;
Persistent<SVGImageLocalFrameClient> frame_client_;
+ FRIEND_TEST_ALL_PREFIXES(SVGImageTest, SupportsSubsequenceCaching);
};
DEFINE_IMAGE_TYPE_CASTS(SVGImage);

Powered by Google App Engine
This is Rietveld 408576698