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

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

Issue 132233016: [SVG] SVGAnimatedPointList migration to new SVG property impl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: set NeedsRebaseline 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/SVGPointListTearOff.h ('k') | Source/core/svg/SVGPointTearOff.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « Source/core/svg/SVGPointListTearOff.h ('k') | Source/core/svg/SVGPointTearOff.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698