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

Unified Diff: Source/core/svg/properties/NewSVGAnimatedProperty.cpp

Issue 141793002: Allow determining if an SVG value has been specified (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase again. Created 6 years, 11 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: Source/core/svg/properties/NewSVGAnimatedProperty.cpp
diff --git a/Source/core/svg/properties/NewSVGAnimatedProperty.cpp b/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
index af64b7a5b0586afbf37580dd75c3a668419c93ed..492d1e5d6f3d5b244d92b0d6f192b490ed915137 100644
--- a/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
+++ b/Source/core/svg/properties/NewSVGAnimatedProperty.cpp
@@ -81,6 +81,11 @@ void NewSVGAnimatedPropertyBase::synchronizeAttribute()
m_contextElement->setSynchronizedLazyAttribute(m_attributeName, value);
}
+bool NewSVGAnimatedPropertyBase::isSpecified() const
+{
+ return isAnimating() || contextElement()->hasAttribute(attributeName());
+}
+
void NewSVGAnimatedPropertyBase::commitChange()
{
contextElement()->invalidateSVGAttributes();
« no previous file with comments | « Source/core/svg/properties/NewSVGAnimatedProperty.h ('k') | Source/core/svg/properties/SVGAnimatedPropertyMacros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698