Consolidate read-only exception throwing for SVG*TearOffs
Where possible, use the "standard" message for read-only objects from ExceptionMessages. Move the setup of the ExceptionState with this message to SVGPropertyTearOffBase and reuse. It also saves a small chunk of code-space. Also drop a bunch of vspace, reorder checks in SVGPreserveAspectRatioTearOff to check for immutability first and do less work on error in SVGMatrixTearOff. Review-Url: https://codereview.chromium.org/2357463002 Cr-Commit-Position: refs/heads/master@{#419875}
Showing
Please register or sign in to comment