Changeset 50561 in webkit
- Timestamp:
- Nov 5, 2009 7:28:37 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r50542 r50561 1 2009-11-05 Jeff Schiller <codedread@gmail.com> 2 3 Reviewed by Simon Fraser. 4 5 Added test to ensure proper order of matrix multiplication with SVGMatrix. 6 https://bugs.webkit.org/show_bug.cgi?id=16062 7 8 * svg/dom/SVGMatrix-interface-expected.txt: Added. 9 * svg/dom/SVGMatrix-interface.xhtml: Added. 10 1 11 2009-11-03 Justin Garcia <justin.garcia@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r50560 r50561 1 2009-11-05 Jeff Schiller <codedread@gmail.com> 2 3 Reviewed by Simon Fraser. 4 5 Correct order of matrix multiplication for SVGMatrix. 6 https://bugs.webkit.org/show_bug.cgi?id=16062 7 8 Test: svg/dom/SVGMatrix-interface.xhtml 9 10 * bindings/js/JSSVGMatrixCustom.cpp: 11 (WebCore::JSSVGMatrix::multiply): 12 * svg/SVGMatrix.idl: 13 1 14 2009-11-04 Pavel Feldman <pfeldman@chromium.org> 2 15 -
trunk/WebCore/bindings/js/JSSVGMatrixCustom.cpp
r46346 r50561 1 1 /* 2 2 * Copyright (C) 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde.org> 3 * Copyright (C) 2009 Jeff Schiller <codedread@gmail.com> 3 4 * 4 5 * This library is free software; you can redistribute it and/or … … 25 26 #include "TransformationMatrix.h" 26 27 #include "SVGException.h" 28 #include <runtime/Error.h> 27 29 28 30 using namespace JSC; 29 31 30 32 namespace WebCore { 33 34 JSValue JSSVGMatrix::multiply(ExecState* exec, const ArgList& args) 35 { 36 if (args.size() < 1) 37 return throwError(exec, SyntaxError, "Not enough arguments"); 38 39 if (!args.at(0).inherits(&JSSVGMatrix::s_info)) 40 return throwError(exec, TypeError, "secondMatrix argument was not a SVGMatrix"); 41 42 JSSVGMatrix* matrixObj = static_cast<JSSVGMatrix*>(asObject(args.at(0))); 43 44 TransformationMatrix m1(*impl()); 45 TransformationMatrix m2(*(matrixObj->impl())); 46 47 JSC::JSValue result = toJS(exec, deprecatedGlobalObjectForPrototype(exec), JSSVGStaticPODTypeWrapper<TransformationMatrix>::create(m1.multLeft(m2)).get(), m_context.get()); 48 49 return result; 50 } 31 51 32 52 JSValue JSSVGMatrix::inverse(ExecState* exec, const ArgList&) -
trunk/WebCore/svg/SVGMatrix.idl
r40265 r50561 35 35 attribute double f; 36 36 37 [ Immutable] SVGMatrix multiply(in SVGMatrix secondMatrix);37 [Custom] SVGMatrix multiply(in SVGMatrix secondMatrix); 38 38 [Custom] SVGMatrix inverse() 39 39 raises(SVGException);
Note: See TracChangeset
for help on using the changeset viewer.