summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/svg/properties/SVGListPropertyTearOff.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/svg/properties/SVGListPropertyTearOff.h')
-rw-r--r--Source/WebCore/svg/properties/SVGListPropertyTearOff.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/svg/properties/SVGListPropertyTearOff.h b/Source/WebCore/svg/properties/SVGListPropertyTearOff.h
index 415df822b..c3bba4be1 100644
--- a/Source/WebCore/svg/properties/SVGListPropertyTearOff.h
+++ b/Source/WebCore/svg/properties/SVGListPropertyTearOff.h
@@ -37,6 +37,7 @@ public:
typedef SVGAnimatedListPropertyTearOff<PropertyType> AnimatedListPropertyTearOff;
typedef typename SVGAnimatedListPropertyTearOff<PropertyType>::ListWrapperCache ListWrapperCache;
+ using Base::m_role;
using Base::m_values;
using Base::m_wrappers;
@@ -115,6 +116,15 @@ protected:
{
}
+ virtual bool isReadOnly() const
+ {
+ if (m_role == AnimValRole)
+ return true;
+ if (m_animatedProperty && m_animatedProperty->isReadOnly())
+ return true;
+ return false;
+ }
+
virtual void commitChange()
{
ASSERT(m_values);