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

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

Issue 2783133002: Implement Image::maybeAnimated for SVGImage (Closed)
Patch Set: Fix typo Created 3 years, 9 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 9a4ceac83a1f13cce3916086d2729b676fb31544..efade97cdcc756d9e43b1f05cd192d78caafb2e6 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -73,6 +73,9 @@ class CORE_EXPORT SVGImage final : public Image {
void startAnimation(CatchUpAnimation = CatchUp) override;
void resetAnimation() override;
+ // Does the SVG image/document contain any animations?
+ bool maybeAnimated() override;
+
// Advances an animated image. This will trigger an animation update for CSS
// and advance the SMIL timeline by one frame.
void advanceAnimationForTesting() override;
@@ -82,8 +85,6 @@ class CORE_EXPORT SVGImage final : public Image {
static FloatPoint offsetForCurrentFrame(const FloatRect& dstRect,
const FloatRect& srcRect);
- // Does the SVG image/document contain any animations?
- bool hasAnimations() const;
// Service CSS and SMIL animations.
void serviceAnimations(double monotonicAnimationStartTime);

Powered by Google App Engine
This is Rietveld 408576698