Bug 305822
| Summary: | Allow constructing a Ref / RefPtr from a WeakRef / WeakPtr | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Allow constructing a Ref / RefPtr from a WeakRef / WeakPtr, without requiring calling `.get()`. Also allow silencing converting a WeakPtr<T> to a T* for consistency with other smart pointer types.
Also simplify code in Source/WebKit/ as a result. If this is approved, I'll simplify the rest of the codebase.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/56884
EWS
Committed 305907@main (0a2324667740): <https://commits.webkit.org/305907@main>
Reviewed commits have been landed. Closing PR #56884 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/168537907>