[Webkit-unassigned] [Bug 35101] New: Calculation of transform in RenderLayer::paintLayer can be simplified

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Feb 18 08:55:37 PST 2010


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

           Summary: Calculation of transform in RenderLayer::paintLayer
                    can be simplified
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebCore Misc.
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: steveblock at google.com
                CC: android-webkit-unforking at google.com


In RenderLayer::paintLayer, when calculating the transform to be applied, the
following code is used ...

TransformationMatrix transform;
transform.translate(x, y);
transform = layerTransform * transform;

This can instead be achieved in a single step ...

TransformationMatrix transform(layerTransform);
transform.translateRight(x, y);

This avoids most of the calculation in transform(), which is redundant as
transform is initially the identity matrix.

-- 
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