Fix text autosizer line height with zoomed
TextAutosizer::ComputeAutosizedFontSize are used in both font_builder and computed_style. The size passed in from font_builder is computedsize, which has zoom factor applied. But in ComputedStyle::SetTextAutosizingMultiplier, zoom factor doesn't. And also, kPleasantSize is hard-coded css pixel (without zoom factor), and it was used in calculation with computed_size(with zoom factor). The inconsistancy causes line height incorrect when multiplier applied(crbug/871124), and also text sometime lost scaling(crbug/871054) This CL correct the variable in ComputeAutosizedFontSize to computed_size, and pass in effective_zoom, so the sizes are computed in correct scale. Bug: 871054, 871124 Change-Id: Icf546795663b76af3cd03e4e42da96483eb83af7 Reviewed-on: https://chromium-review.googlesource.com/1169972Reviewed-by:Philip Rogers <pdr@chromium.org> Commit-Queue: Philip Rogers <pdr@chromium.org> Cr-Commit-Position: refs/heads/master@{#582447}
Showing
Please register or sign in to comment