Stricter float-to-int conversion in SVGIntegerOptionalInteger
SVGIntegerOptionalInteger parses values as floats but stores them as integers. Add helpers to avoid issues with overflow and to make this conversion the same way in all places it's needed. The "normal" parsing code would truncate the float value while the parsing code for animation values would round. Make them both use truncation (and the avoid duplicating the code.) BUG=675130 Review-Url: https://codereview.chromium.org/2590433002 Cr-Commit-Position: refs/heads/master@{#439533}
Showing
Please register or sign in to comment