[Webkit-unassigned] [Bug 162109] New: The dragged image should be the first frame of the animated image

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Sep 16 19:03:15 PDT 2016


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

            Bug ID: 162109
           Summary: The dragged image should be the first frame of the
                    animated image
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: Images
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: sabouhallawa at apple.com

The animated image can have many frames. Decoding all of the frames, getting them as tiffRepresentation then and converting them to an NSImage is needlessly expensive. The dragged image does not animate anyway when dragging it so it make sense to get the first frame only.

In BitmapImage.h there is a comment saying that the member m_nsImage is a cached NSImage of frame 0. This comment is no longer correct. But it seems this was the intention for this member and later it was changed.

The fix to have two functions in Image and BitmapImage which both return NSImage. The first returns the all the frames and the second returns the first frame only.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20160917/3647f02f/attachment.html>


More information about the webkit-unassigned mailing list