Bug 133347

Summary: Remove redundant GraphicsContext::drawImage() function.
Product: WebKit Reporter: zalan <zalan>
Component: Layout and RenderingAssignee: zalan <zalan>
Status: RESOLVED FIXED    
Severity: Normal CC: agomez, calvaris, cgarcia, cmarcelo, commit-queue, eric.carlson, esprehn+autocc, glenn, gustavo, gyuyoung.kim, jer.noble, kondapallykalyan, luiz, menard, mrobinson, noam, philipj, pnormand, sergio, simon.fraser, vjaquez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description zalan 2014-05-28 09:01:43 PDT
These 2 functions have very similar parameter list and by looking at WebCore code, people sometimes get confused which one to call. (and provide default values for parameters when they are not needed at all)

        void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator = CompositeSourceOver, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
        void drawImage(Image*, ColorSpace styleColorSpace, const FloatRect& destRect, const FloatRect& srcRect, CompositeOperator, BlendMode, ImageOrientationDescription = ImageOrientationDescription(), bool useLowQualityScale = false);
Comment 1 zalan 2014-05-28 09:20:33 PDT
Created attachment 232201 [details]
Patch
Comment 2 zalan 2014-05-28 09:31:48 PDT
Created attachment 232203 [details]
Patch
Comment 3 zalan 2014-05-29 18:59:01 PDT
Created attachment 232277 [details]
Patch
Comment 4 zalan 2014-05-29 19:05:01 PDT
A follow-up patch will consolidate the drawImage parameters to a struct.
Comment 5 Simon Fraser (smfr) 2014-05-29 21:51:29 PDT
Comment on attachment 232277 [details]
Patch

ImageOrientationDescription() is so mysterious.
Comment 6 WebKit Commit Bot 2014-05-30 07:17:25 PDT
Comment on attachment 232277 [details]
Patch

Clearing flags on attachment: 232277

Committed r169484: <http://trac.webkit.org/changeset/169484>
Comment 7 WebKit Commit Bot 2014-05-30 07:17:32 PDT
All reviewed patches have been landed.  Closing bug.