| Summary: | Use std::clamp for clarity at more call sites | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Darin Adler <darin> | ||||||||
| Component: | WebKit Misc. | Assignee: | Darin Adler <darin> | ||||||||
| Status: | RESOLVED WONTFIX | ||||||||||
| Severity: | Normal | CC: | benjamin, calvaris, cdumez, changseok, cmarcelo, dbarton, dino, eric.carlson, esprehn+autocc, ews-watchlist, fmalita, fred.wang, glenn, graouts, gyuyoung.kim, hta, jer.noble, jfernandez, kangil.han, keith_miller, kondapallykalyan, macpherson, mark.lam, menard, mifenton, mmaxfield, msaboff, pdr, philipj, rego, saam, sabouhallawa, sam, schenney, sergio, simon.fraser, svillar, tommyw, tzagallo, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | All | ||||||||||
| OS: | All | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Darin Adler
2020-07-19 22:54:21 PDT
Created attachment 404698 [details]
Patch
Created attachment 404725 [details]
Patch
Created attachment 404854 [details]
Patch
Unfortunately I have learned if high is less than low, then std::clamp(x, low, high) returns high. Might do this some day, but not going to keep a bug open. |