Refactor SVG*List types that store SVGProperty objects
Introduce a SVGListPropertyBase class that SVG*List types can inherit from to get generic list handling. This deduplicates code that will be essentially identical already. The type-specific SVG*List class now only provides type-specific access to the underlying list. This also allows more straight-forward sharing of for example the ValueAsString() implementation,(now depending on the virtual method on the listed object wrapped in generic list-string building. The interface exposed to the DOM environment is moved to the corresponding tear-off classes, and the interface of the list base class is simplified to a slightly smaller set of operations. Split SVGListPropertyTearOffHelper::CreateItemTearOff into variants for "attached to list" and "detached from list" since we know this at the callsites. Bug: 1106762 Change-Id: I8263bb957ed4824ad70341fd4dd161d1214e697e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2302614 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#799756}
Showing
Please register or sign in to comment