| Index: Source/core/svg/SVGPointTearOff.h
|
| diff --git a/Source/core/svg/SVGRectTearOff.h b/Source/core/svg/SVGPointTearOff.h
|
| similarity index 69%
|
| copy from Source/core/svg/SVGRectTearOff.h
|
| copy to Source/core/svg/SVGPointTearOff.h
|
| index 46d3d9d583123be22dd4656f1602786fd5f80e60..88d0ad995d82f4efcd007a433d6344792b22fa96 100644
|
| --- a/Source/core/svg/SVGRectTearOff.h
|
| +++ b/Source/core/svg/SVGPointTearOff.h
|
| @@ -28,35 +28,35 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SVGRectTearOff_h
|
| -#define SVGRectTearOff_h
|
| +#ifndef SVGPointTearOff_h
|
| +#define SVGPointTearOff_h
|
|
|
| #include "bindings/v8/ScriptWrappable.h"
|
| -#include "core/svg/SVGRect.h"
|
| +#include "core/svg/SVGPoint.h"
|
| #include "core/svg/properties/NewSVGPropertyTearOff.h"
|
|
|
| namespace WebCore {
|
|
|
| -class SVGRectTearOff : public NewSVGPropertyTearOff<SVGRect>, public ScriptWrappable {
|
| +class SVGMatrix;
|
| +
|
| +class SVGPointTearOff : public NewSVGPropertyTearOff<SVGPoint>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<SVGRectTearOff> create(PassRefPtr<SVGRect> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| + static PassRefPtr<SVGPointTearOff> create(PassRefPtr<SVGPoint> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| {
|
| - return adoptRef(new SVGRectTearOff(target, contextElement, propertyIsAnimVal, attributeName));
|
| + return adoptRef(new SVGPointTearOff(target, contextElement, propertyIsAnimVal, attributeName));
|
| }
|
|
|
| void setX(float, ExceptionState&);
|
| void setY(float, ExceptionState&);
|
| - void setWidth(float, ExceptionState&);
|
| - void setHeight(float, ExceptionState&);
|
| float x() { return target()->x(); }
|
| float y() { return target()->y(); }
|
| - float width() { return target()->width(); }
|
| - float height() { return target()->height(); }
|
|
|
| -private:
|
| - SVGRectTearOff(PassRefPtr<SVGRect>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = nullQName());
|
| + PassRefPtr<SVGPointTearOff> matrixTransform(SVGMatrix);
|
| +
|
| +protected:
|
| + SVGPointTearOff(PassRefPtr<SVGPoint>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = nullQName());
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // SVGRectTearOff_h_
|
| +#endif // SVGPointTearOff_h_
|
|
|