SVGExternalResourcesRequired.cpp [plain text]
#include "config.h"
#if SVG_SUPPORT
#include "SVGExternalResourcesRequired.h"
#include "Attr.h"
#include "SVGNames.h"
#include "SVGHelper.h"
#include "SVGElement.h"
#include "SVGAnimatedBoolean.h"
namespace WebCore {
SVGExternalResourcesRequired::SVGExternalResourcesRequired()
{
}
SVGExternalResourcesRequired::~SVGExternalResourcesRequired()
{
}
SVGAnimatedBoolean *SVGExternalResourcesRequired::externalResourcesRequired() const
{
return lazy_create<SVGAnimatedBoolean>(m_external, static_cast<const SVGStyledElement *>(0));
}
bool SVGExternalResourcesRequired::parseMappedAttribute(MappedAttribute* attr)
{
const AtomicString& value = attr->value();
if (attr->name() == SVGNames::externalResourcesRequiredAttr) {
externalResourcesRequired()->setBaseVal(value == "true");
return true;
}
return false;
}
}
#endif // SVG_SUPPORT