Summary: | GW: Several additions to KWQColor | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Eric Seidel (no email) <eric> | ||||||
Component: | New Bugs | Assignee: | Eric Seidel (no email) <eric> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Enhancement | ||||||||
Priority: | P4 | ||||||||
Version: | 420+ | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.4 | ||||||||
Bug Depends on: | |||||||||
Bug Blocks: | 3250 | ||||||||
Attachments: |
|
Description
Eric Seidel (no email)
2005-07-02 20:45:49 PDT
Created attachment 2768 [details]
necessary additions to KWQColor
Comment on attachment 2768 [details] necessary additions to KWQColor > +bool parseHexColor(const QString &name, QRgb &rgb) { No need to make this a member function, suggest just making it a vanilla static function (maybe inline since it is used exactly once). Also, don't put the open brace on the line with the function prototype (this occurs elsehwere in the file as well). I suggest making the CGColor conversion a free function, and moving hte CIColor conversion out of this file entirely to avoid requiring an SVG_SUPPORT ifdef. Comment on attachment 2768 [details] necessary additions to KWQColor > +bool parseHexColor(const QString &name, QRgb &rgb) { No need to make this a member function, suggest just making it a vanilla static function (maybe inline since it is used exactly once). Also, don't put the open brace on the line with the function prototype (this occurs elsehwere in the file as well). I suggest making the CGColor conversion a free function, and moving hte CIColor conversion out of this file entirely to avoid requiring an SVG_SUPPORT ifdef. Created attachment 2802 [details]
Per mjs and my talks -- a much larger patch, making cgColor, nsColor free functions.
Comment on attachment 2802 [details]
Per mjs and my talks -- a much larger patch, making cgColor, nsColor free functions.
r=me
|