Changeset 286974 in webkit
- Timestamp:
- Dec 13, 2021, 12:56:53 PM (5 years ago)
- Location:
- branches/safari-612-branch/Source
- Files:
-
- 6 edited
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/ListDump.h (modified) (1 diff)
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/testing/InternalsMapLike.cpp (modified) (1 diff)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612-branch/Source/WTF/ChangeLog
r286698 r286974 1 2021-12-13 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r286858. rdar://problem/86423741 4 5 Use simpler idioms for std::less and std::greater possible in modern C++ 6 https://bugs.webkit.org/show_bug.cgi?id=234117 7 8 Reviewed by Anders Carlsson. 9 10 Source/WebCore: 11 12 * testing/InternalsMapLike.cpp: 13 (WebCore::InternalsMapLike::inspectValues const): Remove unneeded explicit 14 use of std:less, because this is what std::sort by default. 15 16 Source/WebKit: 17 18 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 19 (WebKit::MomentumEventDispatcher::equalizeTailGaps): Removed unneeded 20 template arguments for std::greater, and removed explicit use of std::less, 21 since that's what std::sort does by default. 22 23 Source/WTF: 24 25 * wtf/ListDump.h: 26 (WTF::sortedListDump): Removed unnecessary template arguments to std::less. 27 28 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286858 268f45cc-cd09-0410-ab3c-d52691b4dbfc 29 30 2021-12-09 Darin Adler <darin@apple.com> 31 32 Use simpler idioms for std::less and std::greater possible in modern C++ 33 https://bugs.webkit.org/show_bug.cgi?id=234117 34 35 Reviewed by Anders Carlsson. 36 37 * wtf/ListDump.h: 38 (WTF::sortedListDump): Removed unnecessary template arguments to std::less. 39 1 40 2021-12-06 Alan Coon <alancoon@apple.com> 2 41 -
branches/safari-612-branch/Source/WTF/wtf/ListDump.h
r237099 r286974 122 122 CString sortedListDump(const T& list, const char* comma = ", ") 123 123 { 124 return sortedListDump(list, std::less< typename T::ValueType>(), comma);124 return sortedListDump(list, std::less<>(), comma); 125 125 } 126 126 -
branches/safari-612-branch/Source/WebCore/ChangeLog
r286793 r286974 1 2021-12-13 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r286858. rdar://problem/86423741 4 5 Use simpler idioms for std::less and std::greater possible in modern C++ 6 https://bugs.webkit.org/show_bug.cgi?id=234117 7 8 Reviewed by Anders Carlsson. 9 10 Source/WebCore: 11 12 * testing/InternalsMapLike.cpp: 13 (WebCore::InternalsMapLike::inspectValues const): Remove unneeded explicit 14 use of std:less, because this is what std::sort by default. 15 16 Source/WebKit: 17 18 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 19 (WebKit::MomentumEventDispatcher::equalizeTailGaps): Removed unneeded 20 template arguments for std::greater, and removed explicit use of std::less, 21 since that's what std::sort does by default. 22 23 Source/WTF: 24 25 * wtf/ListDump.h: 26 (WTF::sortedListDump): Removed unnecessary template arguments to std::less. 27 28 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286858 268f45cc-cd09-0410-ab3c-d52691b4dbfc 29 30 2021-12-09 Darin Adler <darin@apple.com> 31 32 Use simpler idioms for std::less and std::greater possible in modern C++ 33 https://bugs.webkit.org/show_bug.cgi?id=234117 34 35 Reviewed by Anders Carlsson. 36 37 * testing/InternalsMapLike.cpp: 38 (WebCore::InternalsMapLike::inspectValues const): Remove unneeded explicit 39 use of std:less, because this is what std::sort by default. 40 1 41 2021-12-09 Alan Coon <alancoon@apple.com> 2 42 -
branches/safari-612-branch/Source/WebCore/testing/InternalsMapLike.cpp
r253276 r286974 69 69 { 70 70 auto result = copyToVector(m_values.values()); 71 std::sort(result.begin(), result.end() , std::less<unsigned>());71 std::sort(result.begin(), result.end()); 72 72 return result; 73 73 } -
branches/safari-612-branch/Source/WebKit/ChangeLog
r286973 r286974 1 2021-12-13 Alan Coon <alancoon@apple.com> 2 3 Cherry-pick r286858. rdar://problem/86423741 4 5 Use simpler idioms for std::less and std::greater possible in modern C++ 6 https://bugs.webkit.org/show_bug.cgi?id=234117 7 8 Reviewed by Anders Carlsson. 9 10 Source/WebCore: 11 12 * testing/InternalsMapLike.cpp: 13 (WebCore::InternalsMapLike::inspectValues const): Remove unneeded explicit 14 use of std:less, because this is what std::sort by default. 15 16 Source/WebKit: 17 18 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 19 (WebKit::MomentumEventDispatcher::equalizeTailGaps): Removed unneeded 20 template arguments for std::greater, and removed explicit use of std::less, 21 since that's what std::sort does by default. 22 23 Source/WTF: 24 25 * wtf/ListDump.h: 26 (WTF::sortedListDump): Removed unnecessary template arguments to std::less. 27 28 git-svn-id: https://svn.webkit.org/repository/webkit/trunk@286858 268f45cc-cd09-0410-ab3c-d52691b4dbfc 29 30 2021-12-09 Darin Adler <darin@apple.com> 31 32 Use simpler idioms for std::less and std::greater possible in modern C++ 33 https://bugs.webkit.org/show_bug.cgi?id=234117 34 35 Reviewed by Anders Carlsson. 36 37 * WebProcess/WebPage/MomentumEventDispatcher.cpp: 38 (WebKit::MomentumEventDispatcher::equalizeTailGaps): Removed unneeded 39 template arguments for std::greater, and removed explicit use of std::less, 40 since that's what std::sort does by default. 41 1 42 2021-12-13 Alan Coon <alancoon@apple.com> 2 43 -
branches/safari-612-branch/Source/WebKit/WebProcess/WebPage/MomentumEventDispatcher.cpp
r286806 r286974 438 438 439 439 if (deltas[axis][0] > 0) 440 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]), std::greater <float>());440 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]), std::greater()); 441 441 else 442 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis]) , std::less<float>());442 std::sort(deltas[axis].begin(), std::next(deltas[axis].begin(), firstZeroIndex[axis])); 443 443 }; 444 444
Note:
See TracChangeset
for help on using the changeset viewer.