Now that we have clamping functions in MathExtras, use them!
Created attachment 80543 [details] Patch
http://trac.webkit.org/changeset/77064