Bug 222517

Summary: Add alternate, non-named-getter based, implementation of CSSStyleDeclaration back into WebCore
Product: WebKit Reporter: Sam Weinig <sam>
Component: BindingsAssignee: Sam Weinig <sam>
Status: RESOLVED FIXED    
Severity: Normal CC: annulen, benjamin, cdumez, cmarcelo, darin, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, joepeck, kondapallykalyan, macpherson, menard, ryuan.choi, sergio, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 217623    
Attachments:
Description Flags
Patch
ews-feeder: commit-queue-
JSCSSStyleDeclaration.h (if you disable the legacy flag)
none
JSCSSStyleDeclaration.cpp (if you disable the legacy flag)
none
Patch
ews-feeder: commit-queue-
Patch
ews-feeder: commit-queue-
Patch
none
Patch none

Description Sam Weinig 2021-02-27 13:49:29 PST
To aid iteration on a good solution, let's re-land the non-named-getter based, implementation of CSSStyleDeclaration back into WebCore, but behind a compile time flag for now, to avoid the compile  time and binary size regressions (see https://bugs.webkit.org/show_bug.cgi?id=217623).

Once we improve remove the regressions, we can turn it on.
Comment 1 Sam Weinig 2021-02-27 14:05:20 PST Comment hidden (obsolete)
Comment 2 Sam Weinig 2021-02-27 14:06:12 PST
Created attachment 421756 [details]
JSCSSStyleDeclaration.h (if you disable the legacy flag)
Comment 3 Sam Weinig 2021-02-27 14:06:37 PST
Created attachment 421757 [details]
JSCSSStyleDeclaration.cpp (if you disable the legacy flag)
Comment 4 Sam Weinig 2021-02-27 14:11:23 PST Comment hidden (obsolete)
Comment 5 Sam Weinig 2021-02-27 14:48:04 PST Comment hidden (obsolete)
Comment 6 Sam Weinig 2021-02-27 17:52:20 PST
Created attachment 421764 [details]
Patch
Comment 7 Sam Weinig 2021-02-28 14:13:19 PST
The patch is essentially identical to the previous one which Darin reviewed with the following exceptions:

- Disabled behind a ENABLE flag.
- A little simpler due to no longer having the pixel/pos/css prefixes to deal with.
- Has a bindings test.
- Does not remove old, named getter/setter based code.
Comment 8 Sam Weinig 2021-02-28 17:00:08 PST
Looks like IDL preprocessing is maybe not a thing on windows :(. We really need to remove that port if no one is going to work on it :(
Comment 9 Sam Weinig 2021-02-28 17:01:17 PST
Maybe I can work around it by reversing the meaning of the ifdef?
Comment 10 Sam Weinig 2021-02-28 18:05:27 PST
Created attachment 421786 [details]
Patch
Comment 11 EWS 2021-03-01 13:27:44 PST
Committed r273688: <https://commits.webkit.org/r273688>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 421786 [details].
Comment 12 Radar WebKit Bug Importer 2021-03-01 13:28:15 PST
<rdar://problem/74887863>