Bug 228763

Summary: [WebIDL] DOM constructors should extend InternalFunction
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: BindingsAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Trivial CC: alecflett, beidson, cdumez, darin, ews-watchlist, jsbell, keith_miller, mark.lam, msaboff, saam, sam, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 216816, 230584    
Attachments:
Description Flags
Patch
none
Patch
none
Microbenchmark none

Description Alexey Shvayka 2021-08-03 18:39:50 PDT
[WebIDL] DOM constructors should extend InternalFunction
Comment 1 Alexey Shvayka 2021-08-03 18:45:08 PDT
Created attachment 434876 [details]
Patch
Comment 2 Sam Weinig 2021-08-04 11:43:12 PDT
Comment on attachment 434876 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=434876&action=review

> Source/WebCore/bindings/js/JSDOMConstructorBase.h:22
>  #include "JSDOMWrapper.h"

Is this still needed?
Comment 3 Yusuke Suzuki 2021-08-06 00:53:11 PDT
This is great!!
Comment 4 Radar WebKit Bug Importer 2021-08-10 18:40:19 PDT
<rdar://problem/81771534>
Comment 5 Alexey Shvayka 2021-09-21 17:34:09 PDT
Created attachment 438894 [details]
Patch

Remove extra #include, improve ChangeLog, and add a FIXME regarding m_originalName / property order.
Comment 6 Alexey Shvayka 2021-09-21 17:38:25 PDT
Created attachment 438895 [details]
Microbenchmark

trunk: 188.3ms
patch: 155.5ms (17.5% faster)
---
4 runs, sampled around r280750.
Comment 7 Alexey Shvayka 2021-09-21 21:19:14 PDT
Comment on attachment 438894 [details]
Patch

Thanks for review and feedback!
Comment 8 EWS 2021-09-21 21:56:05 PDT
Committed r282864 (241995@main): <https://commits.webkit.org/241995@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 438894 [details].
Comment 9 Alexey Shvayka 2023-09-27 14:00:54 PDT
*** Bug 210688 has been marked as a duplicate of this bug. ***