ad9110026b
The sk_vj text property (Skottie extension) is currently mixing vertical alignment and resizing semantics into a single enum. This precludes certain valid combinations. Split the resize options into a separate enum (ResizePolicy), and ensure support for all combinations. Before: "sk_vj": 0 -> Shaper::VAlign::kVisualTop "sk_vj": 1 -> Shaper::VAlign::kVisualCenter "sk_vj": 2 -> Shaper::VAlign::kVisualBottom "sk_vj": 3 -> Shaper::VAlign::kVisualResizeToFit "sk_vj": 4 -> Shaper::VAlign::kVisualDownscaleToFit After: "sk_vj": 0 -> Shaper::VAlign::kVisualTop "sk_vj": 1 -> Shaper::VAlign::kVisualCenter "sk_vj": 2 -> Shaper::VAlign::kVisualBottom "sk_rs": 0 -> Shaper::ResizePolicy::kNone "sk_rs": 1 -> Shaper::ResizePolicy::kScaleToFit "sk_rs": 2 -> Shaper::ResizePolicy::kDownscaleToFit Bug: skia:9809, skia:9810 Change-Id: I631ae1fa31a9bc9c6958bb480354138591d504ff Reviewed-on: https://skia-review.googlesource.com/c/skia/+/267040 Reviewed-by: Ben Wagner <bungeman@google.com> Reviewed-by: Isabel Ren <isabelren@google.com> Commit-Queue: Florin Malita <fmalita@chromium.org> |
||
---|---|---|
.. | ||
android_fonts | ||
diff_canvas_traces | ||
empty_images | ||
fonts | ||
icc_profiles | ||
images | ||
invalid_images | ||
lua | ||
nima | ||
particles | ||
skottie | ||
text | ||
Cowboy.svg | ||
crbug769134.fil | ||
ducky.jpg | ||
ducky.png | ||
nov-talk-sequence.txt | ||
pdf_command_stream.txt | ||
README | ||
SkVMTest.expected |
The resources directory includes some third party content used by Skia. Licenses for that code are included in this file. Openclipart Openclipart uses the Creative Commons Zero 1.0 Public Domain License every time an artist uploads a piece of clipart to Openclipart to make it clear the artist is releasing the creative work for anyone to use for any reason, even commercially. This act of "sharing" is the foundation Openclipart is based upon. More details on the license can be found at https://creativecommons.org/publicdomain/zero/1.0/. LGPL or compatible (as implied by inclusion in KDE SVN) http://websvn.kde.org/trunk/tests/ksvgtests/custom/cowboy.svg