[webkit-changes] [WebKit/WebKit] bc1411: Use `std::sort()` instead of `qsort()` in RenderTa...
Ahmad Saleem
noreply at github.com
Mon Dec 30 18:11:02 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: bc1411b114932802ab21784429fc4e5c3b221230
https://github.com/WebKit/WebKit/commit/bc1411b114932802ab21784429fc4e5c3b221230
Author: Ahmad Saleem <ahmad.saleem792+github at gmail.com>
Date: 2024-12-30 (Mon, 30 Dec 2024)
Changed paths:
M Source/WebCore/rendering/RenderTableCell.cpp
Log Message:
-----------
Use `std::sort()` instead of `qsort()` in RenderTableCell::sortBorderValues() and other clean-up
https://bugs.webkit.org/show_bug.cgi?id=285202
rdar://142108478
Reviewed by Alan Baradlay.
Merge: https://chromium.googlesource.com/chromium/src.git/+/0d6b4d71d9d7fdbc59d15e10b364be8b38089cb8
This patch is to use `std::sort` instead of `qsort()` in `sortBorderValues`
and also do other clean-up such as change function `compareBorders` to bool
and return true / false rather than 1, -1 etc.
* Source/WebCore/rendering/RenderTableCell.cpp:
(WebCore::compareBorders):
(WebCore::chooseBorder):
(WebCore::RenderTableCell::sortBorderValues):
(WebCore::compareBorderValuesForQSort): Deleted.
Canonical link: https://commits.webkit.org/288337@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list