Refactor computed <paint> value handling
Combine all the fields that make up a <paint> into a class: SVGPaint. Move the bulk of the style builder function for <paint> from the template to StyleBuilderConverter. This should make future work on <paint> resolution easier. Also split the existing setters on {SVG,}ComputedStyle to avoid having bools to indicate if the "visited" portion should be set or not. The new way more closely resemble other color properties. Add accessors to SVGPaint to both make code easier to read, and reduce the dependence on SVGPaintType. Bug: 769774 Change-Id: Ifad043c9e423f0fc7aa79fef78e635b2abb4636c Reviewed-on: https://chromium-review.googlesource.com/961062Reviewed-by:Stephen Chenney <schenney@chromium.org> Reviewed-by:
Philip Rogers <pdr@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#543333}
Showing
Please register or sign in to comment