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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp

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/SVGImageChromeClient.cpp
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
index 653832ffc6df0c66e85e6669f6baa75e26ca6659..2b0b403ce86a116a2949b7f60399c9381293150c 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImageChromeClient.cpp
@@ -63,7 +63,7 @@ void SVGImageChromeClient::invalidateRect(const IntRect& r) {
}
void SVGImageChromeClient::suspendAnimation() {
- if (m_image->hasAnimations()) {
+ if (m_image->maybeAnimated()) {
m_timelineState = SuspendedWithAnimationPending;
} else {
// Preserve SuspendedWithAnimationPending if set.
@@ -95,7 +95,7 @@ void SVGImageChromeClient::scheduleAnimation(FrameViewBase*) {
// animations. Checking for pending/active animations could be more
// stringent.
double fireTime = 0;
- if (m_image->hasAnimations()) {
+ if (m_image->maybeAnimated()) {
if (m_timelineState >= Suspended)
return;
fireTime = animationFrameDelay;

Powered by Google App Engine
This is Rietveld 408576698