Changeset 93150 in webkit


Ignore:
Timestamp:
Aug 16, 2011 1:44:51 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

Unmatrix algorithm implementation is wrong
https://bugs.webkit.org/show_bug.cgi?id=66080

Patch by Mihnea Ovidenie <mihnea@adobe.com> on 2011-08-16
Reviewed by Dean Jackson.

Source/WebCore:

Current version of the algorithm negates only the scaleX while
it should negate also scaleY and scaleZ when appropriate.

Test: animations/animation-matrix-negative-scale-unmatrix.html

  • platform/graphics/transforms/TransformationMatrix.cpp:

(WebCore::decompose):

LayoutTests:

  • animations/animation-matrix-negative-scale-unmatrix-expected.txt: Added.
  • animations/animation-matrix-negative-scale-unmatrix.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r93148 r93150  
     12011-08-16  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        Unmatrix algorithm implementation is wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=66080
     5
     6        Reviewed by Dean Jackson.
     7
     8        * animations/animation-matrix-negative-scale-unmatrix-expected.txt: Added.
     9        * animations/animation-matrix-negative-scale-unmatrix.html: Added.
     10
    1112011-08-16  Eric Carlson  <eric.carlson@apple.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r93149 r93150  
     12011-08-16  Mihnea Ovidenie  <mihnea@adobe.com>
     2
     3        Unmatrix algorithm implementation is wrong
     4        https://bugs.webkit.org/show_bug.cgi?id=66080
     5
     6        Reviewed by Dean Jackson.
     7
     8        Current version of the algorithm negates only the scaleX while
     9        it should negate also scaleY and scaleZ when appropriate.
     10
     11        Test: animations/animation-matrix-negative-scale-unmatrix.html
     12
     13        * platform/graphics/transforms/TransformationMatrix.cpp:
     14        (WebCore::decompose):
     15
    1162011-08-16  Joseph Pecoraro  <joepeck@webkit.org>
    217
  • trunk/Source/WebCore/platform/graphics/transforms/TransformationMatrix.cpp

    r90887 r93150  
    396396    v3Cross(row[1], row[2], pdum3);
    397397    if (v3Dot(row[0], pdum3) < 0) {
     398
     399        result.scaleX *= -1;
     400        result.scaleY *= -1;
     401        result.scaleZ *= -1;
     402
    398403        for (i = 0; i < 3; i++) {
    399             result.scaleX *= -1;
    400404            row[i][0] *= -1;
    401405            row[i][1] *= -1;
Note: See TracChangeset for help on using the changeset viewer.