Bug 28785

Summary: ImageDecoderFoo.cpp contains lots of copy & pasted code and should be refactored
Product: WebKit Reporter: Peter Kasting <pkasting>
Component: ImagesAssignee: Peter Kasting <pkasting>
Status: RESOLVED FIXED    
Severity: Normal CC: yong.li.webkit
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 26467    
Attachments:
Description Flags
Prep work before moving functions into ImageDecoder.cpp
none
Refactor eric: review+

Description Peter Kasting 2009-08-27 14:24:10 PDT
Similar to bug 27965.

Skia and Qt are the odd platforms out; for now the others should use common implementations of this stuff.
Comment 1 Peter Kasting 2009-08-27 14:27:32 PDT
Created attachment 38687 [details]
Prep work before moving functions into ImageDecoder.cpp
Comment 2 Eric Seidel (no email) 2009-08-27 14:32:48 PDT
Comment on attachment 38687 [details]
Prep work before moving functions into ImageDecoder.cpp

LGTM.
Comment 3 Peter Kasting 2009-08-27 14:38:49 PDT
Comment on attachment 38687 [details]
Prep work before moving functions into ImageDecoder.cpp

Landed in r47836, clearing flags.
Comment 4 Peter Kasting 2009-08-27 16:35:58 PDT
Created attachment 38696 [details]
Refactor

Yay for removing duplicate copies of code.
Comment 5 Eric Seidel (no email) 2009-08-27 18:04:59 PDT
Comment on attachment 38696 [details]
Refactor

Why wouldn't we just move this into an RGBABuffer.cpp?  This is definitely better than before, but we generally try to do one-class per file.
Comment 6 Peter Kasting 2009-08-28 10:37:52 PDT
(In reply to comment #5)
> (From update of attachment 38696 [details])
> Why wouldn't we just move this into an RGBABuffer.cpp?  This is definitely
> better than before, but we generally try to do one-class per file.

Yes, my eventual plan is to move this into a different file, in a different folder, with a different name.
Comment 7 Peter Kasting 2009-08-28 11:00:55 PDT
Fixed in r47867.