commit | 8534729a4acea2d5064a3e5d39baabdc84ff3ba0 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Thu Nov 23 10:08:33 2017 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Nov 23 10:08:33 2017 |
tree | c7eee96b5eee731dc5a435920781f6c1ca58d7cd | |
parent | a1ed95de096ff8a7343a5447e2e2d9e371e9dbe1 [diff] |
Use the same bounding box computation even with fallback path LayoutSVGShape::UpdateShapeFromElement() creates a Path for the shape as well as update the bounding box (fill/object and stroke.) When we fallback to using a Path rather than the fast path representation for the shape, we can still use the same code for computing the bounding boxes. So instead of calling LayoutSVGShape's UpdateShapeFromElement from LayoutSVGRect and LayoutSVGEllipse, just call CreatePath() in the codepaths that transitions to the fallback/Path codepath. Non-scaling stroke still require a "precise" stroke bbox. This should make stroke bounding boxes for <rect>, <circle> and <ellipse> tighter again. Bug: 435097 Change-Id: I5361689371cb78eb405e0403f3be165bd254aab2 Reviewed-on: https://chromium-review.googlesource.com/779460 Reviewed-by: Florin Malita <fmalita@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#518880}
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 .