Though alpha() returns a signed value (int), its value is stored on an unsigned typedef (RGBA32) and is safeguarded by alphaChannel() that its value never goes beyond 255, so no integer overflow, thus we can safely remove redundant check for negative values while using it.
Created attachment 160158 [details] Patch Proposed patch.
Comment on attachment 160158 [details] Patch OK.
Comment on attachment 160158 [details] Patch Clearing flags on attachment: 160158 Committed r126452: <http://trac.webkit.org/changeset/126452>
All reviewed patches have been landed. Closing bug.