Refactor SVG transform handling
Move common (or to-be-common) code into a new TransformHelper class. This class contains logic for computing the reference box as well as the transform based on computed style. Also move the other transform-related helper SVGTransformChangeDetector to this new location. Some to-be-common code is moved from LayoutSVGShape to the super-class, for reuse by LayoutSVGImage. In LayoutSVGShape, set the |transform_uses_reference_box_| flag on style change rather than during layout. Bug: 1007146 Change-Id: Ie61537126a488a5c6c91cf416351ec2e28c692c9 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1821919 Commit-Queue: Fredrik Söderquist <fs@opera.com> Reviewed-by:Stephen Chenney <schenney@chromium.org> Cr-Commit-Position: refs/heads/master@{#699687}
Showing
Please register or sign in to comment