commit | ace96c704eefa94ad52743d51bacdaba5abcaf1e | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Mon Dec 11 18:20:12 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 11 18:20:12 2017 |
tree | 67142296645213ec17a1607b7aa4dd11dc889007 | |
parent | 3b31c058c64fd8a7186b8103316abc120b385aec [diff] |
[PE] Fix transform-origin on SVG <text> LayoutSVGText would not compute the correct transform if subjected to a transform-origin (or transform) with percentages, since the transform had to be computed early in UpdateLayout in order to allow a font to be chosen based on the current transform. Rearrange the code in LayoutSVGText::UpdateLayout a bit to allow the transform computation to use the correct bounding box, but also compute a tentative transform before updating the font and its metrics. Remove the special-case in SVGElement::CalculateTransform and simplify accordingly. Bug: 225799 Cq-Include-Trybots: master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Change-Id: I34728dfeaafba72c9f3195a29fbdd14673d186c2 Reviewed-on: https://chromium-review.googlesource.com/817734 Reviewed-by: Stephen Chenney <schenney@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#523141}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .