Bug 245042

Summary: Avoid constructing InputType in HTMLInputElement::updateType whenever possible
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, heycam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ryosuke Niwa 2022-09-10 20:25:30 PDT
Right now, HTMLInputElement::updateType always creates InputType of the new type
just to check whether the type string has changed or not.

Avoid this construction as a perf optimization.
Comment 1 Ryosuke Niwa 2022-09-10 20:29:21 PDT
Pull request: https://github.com/WebKit/WebKit/pull/4231
Comment 2 EWS 2022-09-12 08:51:01 PDT
Committed 254383@main (62339dafa6fc): <https://commits.webkit.org/254383@main>

Reviewed commits have been landed. Closing PR #4231 and removing active labels.
Comment 3 Radar WebKit Bug Importer 2022-09-12 08:52:20 PDT
<rdar://problem/99823605>