Bug 4529

Summary: Forgotten memcpy() in CGShading code
Product: WebKit Reporter: Eric Seidel (no email) <eric>
Component: SVGAssignee: Eric Seidel (no email) <eric>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P4    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Fixes forgotten memcpy darin: review+

Description Eric Seidel (no email) 2005-08-19 09:47:14 PDT
Looks fine to me.  You should not have to do any range clamping yourself.

Perhaps the bug is in 

static void cgGradientCallback(void *info, const float *inValues, float *outColor)
{
    ...

    } else if (!(inValue < stops[stopsCount-1].offset)) {
        outColor = stops[stopsCount-1].colorArray;
        // How does this work again !!!
    } else {

}
Comment 1 Eric Seidel (no email) 2005-08-19 09:51:52 PDT
Created attachment 3470 [details]
Fixes forgotten memcpy