| Summary: | CodeGenerator should use DOMAttributeGetterSetter when it is DOMAttribute | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Philip Jägenstedt <philip> | ||||||||||
| Component: | Animations | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||||||
| Status: | RESOLVED FIXED | ||||||||||||
| Severity: | Normal | CC: | cdumez, dino, ews-watchlist, graouts, graouts, mark.lam, mjs, saam, webkit-bug-importer, ysuzuki | ||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||
| Version: | Safari 13 | ||||||||||||
| Hardware: | Unspecified | ||||||||||||
| OS: | Unspecified | ||||||||||||
| Attachments: |
|
||||||||||||
|
Description
Philip Jägenstedt
2020-05-28 01:44:36 PDT
Created attachment 400436 [details]
standalone repro
Reproduced. Looking! Created attachment 401252 [details]
Patch
I need to update bindings Created attachment 401253 [details]
Patch
Comment on attachment 401253 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401253&action=review r=me > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4341 > + push(@implContent, " putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames()." . $attributeName . "PublicName(), CustomGetterSetter::create(vm, $getter, $setter), attributesForStructure($jscAttributes));\n"); Can you also add a bindings test case for this? > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4467 > + if (IsAcceleratedDOMAttribute($interface, $attribute)) { Can you add bindings test for these 2 cases as well? > Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4487 > + if (IsAcceleratedDOMAttribute($interface, $attribute)) { Is it possible to add a bindings test for these 2 cases of PrivateName DOMAttributeGetterSetter and CustomGetterSetter? Comment on attachment 401253 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=401253&action=review >> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4341 >> + push(@implContent, " putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames()." . $attributeName . "PublicName(), CustomGetterSetter::create(vm, $getter, $setter), attributesForStructure($jscAttributes));\n"); > > Can you also add a bindings test case for this? Added. >> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4467 >> + if (IsAcceleratedDOMAttribute($interface, $attribute)) { > > Can you add bindings test for these 2 cases as well? It turned out that this never happens. I've added assertion. >> Source/WebCore/bindings/scripts/CodeGeneratorJS.pm:4487 >> + if (IsAcceleratedDOMAttribute($interface, $attribute)) { > > Is it possible to add a bindings test for these 2 cases of PrivateName DOMAttributeGetterSetter and CustomGetterSetter? It turned out that this never happens. I've added assertion. Committed r262693: <https://trac.webkit.org/changeset/262693> |