So says the comment above the function: // color will only be changed when string contains a valid css color, making it // possible to set up a default color.
Created attachment 55910 [details] Proposed patch
I can't think of a good way to LayoutTest this, but it doesn't break any existing tests and is obviously correct (famous last words..)
Comment on attachment 55910 [details] Proposed patch How did you check all the call sites to make sure that none were depending on the old behavior?
Created attachment 55927 [details] Proposed patch v2 By insufficient grepping, apparently. :( Updated patch to remove dependency on old behavior.
Comment on attachment 55927 [details] Proposed patch v2 Looks OK. r=me
Comment on attachment 55927 [details] Proposed patch v2 Clearing flags on attachment: 55927 Committed r59473: <http://trac.webkit.org/changeset/59473>
All reviewed patches have been landed. Closing bug.
Revision r59473 cherry-picked into qtwebkit-2.0 with commit 2b20c8dabe7670fe4c99b83156cdd5f4544c8c30