Bug 261415
| Summary: | downcast() should return a smart pointer when passed in a smart pointer | ||
|---|---|---|---|
| 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
downcast() should return a smart pointer when passed in a smart pointer. Otherwise, it forces us to use the less-safe static_pointer_cast() / static_reference_cast() to cast without causing ref counting churn.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/17655
EWS
Committed 267923@main (cea23dc5de28): <https://commits.webkit.org/267923@main>
Reviewed commits have been landed. Closing PR #17655 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/115391755>