Bug 264715

Summary: Use dynamicDowncast<T> even more in the DOM
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: DOMAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Chris Dumez 2023-11-12 17:42:46 PST
Use dynamicDowncast<T> even more in the DOM instead of is<T>() + downcast<T>(). It is less error-prone and often results in more concise code. I am also hoping to have downcast<>() do a type check on release builds in the future. It is currently too expensive to do so but it may become affordable if we use dynamicDowncast<T>() instead when possible.
Comment 1 Chris Dumez 2023-11-12 17:52:53 PST
Pull request: https://github.com/WebKit/WebKit/pull/20398
Comment 2 EWS 2023-11-13 11:40:40 PST
Committed 270654@main (3d8458014db3): <https://commits.webkit.org/270654@main>

Reviewed commits have been landed. Closing PR #20398 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2023-11-13 11:41:15 PST
<rdar://problem/118346658>