commit | 838c89ea3956c474d8c108e176978f30011b8c00 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Fri Feb 22 18:46:53 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Fri Feb 22 18:46:53 2019 |
tree | 1f244b231724bfe92c6ffd128abf20dc8444147f | |
parent | f6fad1530230745956c1c42cfa43f32601fa6857 [diff] |
Resolve stroke-width 'em' units against unzoomed font size When resolving style for the 'stroke-width' property we would use CSSToLengthConversionData::CopyWithAdjustedZoom() with an argument of 1 to get an "unzoomed" length. The FontSizes object was however not adjusted, so still carried zoomed base font sizes. Make a new method on StyleResolverState that returns an CSSToLengthConversionData that uses unzoomed unit bases, basing it on the existing FontSizeConversionData() method which does roughly the same thing except it uses the parent style for unit bases. Bug: 933689 Change-Id: Icfbc59a641f0dc2d94f00ba5f3e9a15b36f8c195 Reviewed-on: https://chromium-review.googlesource.com/c/1481417 Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#634750}
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 .