[Webkit-unassigned] [Bug 30442] Add helper methods to determine whether a transformation matrix is only scaled or translated

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Oct 16 14:28:22 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30442


Jakob Petsovits <jpetsovits at rim.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #41327|                            |review?, commit-queue?
               Flag|                            |
  Attachment #41290|0                           |1
        is obsolete|                            |
  Attachment #41290|review?, commit-queue?      |
               Flag|                            |




--- Comment #3 from Jakob Petsovits <jpetsovits at rim.com>  2009-10-16 14:28:22 PDT ---
Created an attachment (id=41327)
 --> (https://bugs.webkit.org/attachment.cgi?id=41327)
Add a mapsRectToRect() helper method to TransformationMatrix.

Incorporate feedback from smfr and manyoso, stripping down the patch to the
bare minimum and tailoring it for the actual use case it is intended to cover
(checking if a rect is still a rect after the transformation). The isScale()
and isTranslation() methods that I included as "bonus extra" were removed, and
the isScaleOrTranslation() method has been renamed to mapsRectToRect(),
throwing out the 3D parts that are not used for mapRect() calculations.

Please review, thanks!

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list