Bug 313675
| Summary: | Add GenericTimeMixin::approximate() template function. | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> |
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Mark Lam
This removes the need to manually add approximate conversion functions in each Time type e.g. approximateMonotonicTime() and approximateWallTime(). Every single one of these approximate conversion functions applies the exact same conversion algorithm. We can capture this in GenericTimeMixin::approximate(), and avoid all the duplication.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/175876462>
Mark Lam
Pull request: https://github.com/WebKit/WebKit/pull/63915
EWS
Committed 312332@main (23248aa32f59): <https://commits.webkit.org/312332@main>
Reviewed commits have been landed. Closing PR #63915 and removing active labels.