Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(412)

Unified Diff: Source/core/svg/SVGRectTearOff.h

Issue 132233010: [SVG] SVGAnimatedRect migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebsaed Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/svg/SVGRect.idl ('k') | Source/core/svg/SVGRectTearOff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « Source/core/svg/SVGRect.idl ('k') | Source/core/svg/SVGRectTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698