This source file includes following definitions.
- m_previousScale
- zoomRectScreen
- previousScale
- setPreviousScale
- previousTranslate
- newScale
- setNewScale
- newTranslate
- interfaceName
- trace
#include "config.h"
#include "core/svg/SVGZoomEvent.h"
#include "core/svg/SVGPointTearOff.h"
#include "core/svg/SVGRectTearOff.h"
namespace WebCore {
SVGZoomEvent::SVGZoomEvent()
: m_newScale(0.0f)
, m_previousScale(0.0f)
{
ScriptWrappable::init(this);
}
PassRefPtr<SVGRectTearOff> SVGZoomEvent::zoomRectScreen() const
{
RefPtr<SVGRectTearOff> rectTearOff = SVGRectTearOff::create(SVGRect::create(), 0, PropertyIsNotAnimVal);
rectTearOff->setIsReadOnlyProperty();
return rectTearOff.release();
}
float SVGZoomEvent::previousScale() const
{
return m_previousScale;
}
void SVGZoomEvent::setPreviousScale(float scale)
{
m_previousScale = scale;
}
PassRefPtr<SVGPointTearOff> SVGZoomEvent::previousTranslate() const
{
RefPtr<SVGPointTearOff> pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_previousTranslate), 0, PropertyIsNotAnimVal);
pointTearOff->setIsReadOnlyProperty();
return pointTearOff.release();
}
float SVGZoomEvent::newScale() const
{
return m_newScale;
}
void SVGZoomEvent::setNewScale(float scale)
{
m_newScale = scale;
}
PassRefPtr<SVGPointTearOff> SVGZoomEvent::newTranslate() const
{
RefPtr<SVGPointTearOff> pointTearOff = SVGPointTearOff::create(SVGPoint::create(m_newTranslate), 0, PropertyIsNotAnimVal);
pointTearOff->setIsReadOnlyProperty();
return pointTearOff.release();
}
const AtomicString& SVGZoomEvent::interfaceName() const
{
return EventNames::SVGZoomEvent;
}
void SVGZoomEvent::trace(Visitor* visitor)
{
UIEvent::trace(visitor);
}
}