Bug 86915 - BitmapImage::BitmapImage(CGImageRef, ImageObserver*) needs to set m_sizeRespectingOrientation
Summary: BitmapImage::BitmapImage(CGImageRef, ImageObserver*) needs to set m_sizeRespe...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Pratik Solanki
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2012-05-18 15:51 PDT by Pratik Solanki
Modified: 2012-05-18 16:34 PDT (History)
2 users (show)

See Also:


Attachments
Patch (1.68 KB, patch)
2012-05-18 16:05 PDT, Pratik Solanki
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Pratik Solanki 2012-05-18 15:51:24 PDT
The above constructor sets m_haveSize field of BitmapImage to true, but it fails to set m_sizeRespectingOrientation. Code that uses that constructor will fail to load image (because image size is 0x0) when shouldRespectImageOrientation is enabled.
Comment 1 Pratik Solanki 2012-05-18 15:53:14 PDT
<rdar://problem/11477182>
Comment 2 Pratik Solanki 2012-05-18 16:05:39 PDT
Created attachment 142811 [details]
Patch
Comment 3 Pratik Solanki 2012-05-18 16:34:08 PDT
Committed r117656: <http://trac.webkit.org/changeset/117656>