Summary: | RenderTableCell::sortBorderStyles does not meet qsort's contract | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Patrick <phanna> | ||||
Component: | CSS | Assignee: | Dave Hyatt <hyatt> | ||||
Status: | RESOLVED DUPLICATE | ||||||
Severity: | Normal | CC: | steveblock | ||||
Priority: | P2 | ||||||
Version: | 523.x (Safari 3) | ||||||
Hardware: | All | ||||||
OS: | OS X 10.4 | ||||||
Attachments: |
|
Description
Patrick
2007-03-21 13:04:17 PDT
Created attachment 13748 [details]
Patch to use a stable sort instead.
This patch switching border style comparison to use a stable sort instead.
stable_sort will work but it is not the correct solution. A better solution is to fix the comparison function so that a < b => b > a. It looks to me like this is fixed with http://trac.webkit.org/changeset/67862 (https://bugs.webkit.org/show_bug.cgi?id=39966) as compareBorders() now returns 0 in the case when borders differ only in colour. > if (border1.precedence() == border2.precedence()) > return 0; *** This bug has been marked as a duplicate of bug 39966 *** |