Bug 35386

Summary: Color stops are not sorted stably on Windows
Product: WebKit Reporter: Adam Roben (:aroben) <aroben>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: bdakin
Priority: P2 Keywords: InRadar, PlatformOnly
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Windows XP   
Attachments:
Description Flags
testcase none

Description Adam Roben (:aroben) 2010-02-25 08:24:50 PST
Created attachment 49490 [details]
testcase

To reproduce:

1. Load the attached testcase

Note that the "Actual" and "Expected" images are not identical. On Mac, they are identical.
Comment 1 Adam Roben (:aroben) 2010-02-25 08:25:27 PST
<rdar://problem/7689753>
Comment 2 Adam Roben (:aroben) 2010-02-25 08:27:57 PST
It looks like WebCore is sorting the stops correctly. Debugging shows that CG is using qsort() to sort the stops we pass it. qsort() is not stable.

I've filed the CG bug as <rdar://problem/7689763>. This bug can be used to represent finding a workaround in WebCore.