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

Unified Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.cpp

Issue 2246023002: SVG: Use counters for SMIL methods on <svg> root element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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/SVGSVGElement.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
index 494615291dc1ea470f4437ed1e6aa44cb4225605..083f21cb34782d33e1844187f0188f09e46e75d1 100644
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.cpp
@@ -531,33 +531,28 @@ void SVGSVGElement::removedFrom(ContainerNode* rootParent)
void SVGSVGElement::pauseAnimations()
{
- ASSERT(RuntimeEnabledFeatures::smilEnabled());
if (!m_timeContainer->isPaused())
m_timeContainer->pause();
}
void SVGSVGElement::unpauseAnimations()
{
- ASSERT(RuntimeEnabledFeatures::smilEnabled());
if (m_timeContainer->isPaused())
m_timeContainer->resume();
}
bool SVGSVGElement::animationsPaused() const
{
- ASSERT(RuntimeEnabledFeatures::smilEnabled());
return m_timeContainer->isPaused();
}
float SVGSVGElement::getCurrentTime() const
{
- ASSERT(RuntimeEnabledFeatures::smilEnabled());
return narrowPrecisionToFloat(m_timeContainer->elapsed().value());
}
void SVGSVGElement::setCurrentTime(float seconds)
{
- ASSERT(RuntimeEnabledFeatures::smilEnabled());
ASSERT(std::isfinite(seconds));
seconds = max(seconds, 0.0f);
m_timeContainer->setElapsed(seconds);
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/core/svg/SVGSVGElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698