commit | 77a056b3d90f22d8c459e818d4a4a3ec58501da8 | [log] [tgz] |
---|---|---|
author | Fredrik Söderquist <fs@opera.com> | Tue Feb 05 09:23:24 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Tue Feb 05 09:23:24 2019 |
tree | 2beabdc6360fd37d197a0f67c22f021a7286b2af | |
parent | 73aa0ab28bb8065f46e377b1e3c92bdd21d578d9 [diff] |
Fix calc() handling for "nine-piece image quads" CSSPrimitiveValue::ComputeLength<Length> does not handle a mix of percentages and non-percentages (treating them all as the latter). The right function for that is ConvertToLength. However, since we're handling <length-percentage> | auto here (after checking for <number>), just forward to StyleBuilderConverter::ConvertLengthOrAuto. This should fix all the properties that use the CSSQuadValue representation for nine-piece images and have a <length-percentage> in their syntax (border-image-width and -webkit-mask-box-image-width). Bug: 918994 Change-Id: Ic29c8ec023d29d1e64eca2e0372e9e90611bbe73 Reviewed-on: https://chromium-review.googlesource.com/c/1451978 Reviewed-by: Rune Lillesveen <futhark@chromium.org> Commit-Queue: Fredrik Söderquist <fs@opera.com> Cr-Commit-Position: refs/heads/master@{#629078}
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 .