WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
313675
Add GenericTimeMixin::approximate() template function.
https://bugs.webkit.org/show_bug.cgi?id=313675
Summary
Add GenericTimeMixin::approximate() template function.
Mark Lam
Reported
2026-04-29 12:39:46 PDT
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
Comment 1
2026-04-29 12:40:23 PDT
<
rdar://problem/175876462
>
Mark Lam
Comment 2
2026-04-29 12:49:19 PDT
Pull request:
https://github.com/WebKit/WebKit/pull/63915
EWS
Comment 3
2026-04-29 20:32:26 PDT
Committed
312332@main
(23248aa32f59): <
https://commits.webkit.org/312332@main
> Reviewed commits have been landed. Closing PR #63915 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug