| Index: Source/core/svg/SVGRectTearOff.h
|
| diff --git a/Source/core/svg/SVGLengthListTearOff.h b/Source/core/svg/SVGRectTearOff.h
|
| similarity index 60%
|
| copy from Source/core/svg/SVGLengthListTearOff.h
|
| copy to Source/core/svg/SVGRectTearOff.h
|
| index b28dc8c94e6171147890fb606b6d1c0e53bed86f..46d3d9d583123be22dd4656f1602786fd5f80e60 100644
|
| --- a/Source/core/svg/SVGLengthListTearOff.h
|
| +++ b/Source/core/svg/SVGRectTearOff.h
|
| @@ -28,31 +28,35 @@
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
|
|
| -#ifndef SVGLengthListTearOff_h
|
| -#define SVGLengthListTearOff_h
|
| +#ifndef SVGRectTearOff_h
|
| +#define SVGRectTearOff_h
|
|
|
| -#include "core/svg/SVGLengthList.h"
|
| -#include "core/svg/properties/NewSVGListPropertyTearOffHelper.h"
|
| +#include "bindings/v8/ScriptWrappable.h"
|
| +#include "core/svg/SVGRect.h"
|
| +#include "core/svg/properties/NewSVGPropertyTearOff.h"
|
|
|
| namespace WebCore {
|
|
|
| -class SVGLengthListTearOff FINAL :
|
| - public NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>,
|
| - public ScriptWrappable {
|
| +class SVGRectTearOff : public NewSVGPropertyTearOff<SVGRect>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<SVGLengthListTearOff> create(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| + static PassRefPtr<SVGRectTearOff> create(PassRefPtr<SVGRect> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| {
|
| - return adoptRef(new SVGLengthListTearOff(target, contextElement, propertyIsAnimVal, attributeName));
|
| + return adoptRef(new SVGRectTearOff(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:
|
| - SVGLengthListTearOff(PassRefPtr<SVGLengthList> target, SVGElement* contextElement, PropertyIsAnimValType propertyIsAnimVal, const QualifiedName& attributeName = nullQName())
|
| - : NewSVGListPropertyTearOffHelper<SVGLengthListTearOff, SVGLengthList>(target, contextElement, propertyIsAnimVal, attributeName)
|
| - {
|
| - ScriptWrappable::init(this);
|
| - }
|
| + SVGRectTearOff(PassRefPtr<SVGRect>, SVGElement* contextElement, PropertyIsAnimValType, const QualifiedName& attributeName = nullQName());
|
| };
|
|
|
| } // namespace WebCore
|
|
|
| -#endif // SVGLengthListTearOff_h_
|
| +#endif // SVGRectTearOff_h_
|
|
|