SVGAttributeToPropertyMap.h [plain text]
#ifndef SVGAttributeToPropertyMap_h
#define SVGAttributeToPropertyMap_h
#include "SVGPropertyInfo.h"
#include <wtf/HashMap.h>
namespace WebCore {
class SVGAnimatedProperty;
class SVGElement;
class SVGAttributeToPropertyMap {
public:
bool isEmpty() const { return m_map.isEmpty(); }
void addProperty(const SVGPropertyInfo&);
void addProperties(const SVGAttributeToPropertyMap&);
Vector<RefPtr<SVGAnimatedProperty>> properties(SVGElement&, const QualifiedName& attributeName) const;
Vector<AnimatedPropertyType> types(const QualifiedName& attributeName) const;
void synchronizeProperties(SVGElement&) const;
bool synchronizeProperty(SVGElement&, const QualifiedName& attributeName) const;
private:
typedef Vector<const SVGPropertyInfo*> PropertyInfoVector;
HashMap<QualifiedName, PropertyInfoVector> m_map;
};
}
#endif