Clean up redundant PaintInfo's in SVG painters
Since ScopedSVGPaintState has its own "internal" PaintInfo (accessed via GetPaintInfo()) we don't need to have local PaintInfos in a number of SVG painters, but can use the one passed in (or one that is actually being locally mutated like in SVGContainerPainter). Add a comment in SVGForeignObjectPainter about the seemingly frivolous PaintInfo usage. Also drop some level of indentation where possible. Change-Id: I59efc150c666a725d626b1b5ca643d3041d3fe3a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2106167 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#751009}
Showing
Please register or sign in to comment