edje_data: Add missing descriptor for image.max(min).limit 28/249828/1
authorJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Dec 2020 03:50:47 +0000 (12:50 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Dec 2020 03:52:18 +0000 (12:52 +0900)
commita040e13f7e30c00a2c8e32f0506cd17e3d689fb6
tree3d2d291837643f8d1035e06c9889baa3980689f5
parentdd396f53d696bd0331caf30dcf6af9720da7a3b1
edje_data: Add missing descriptor for image.max(min).limit

Summary:
Edje_Part_Description_Image uses EDJE_DATA_DESCRIPTOR_DESCRIPTION_COMMON_SUB,
EDJE_DATA_DESCRIPTOR_DESCRIPTION_COMMON_SUB is missing max.limit and min.limit descriptors.
Therefore, max:SOURCE and min:SOURCE did not work in EDC.
Adds a descriptor to it.

https://www.enlightenment.org/_legacy_embed/edcref.html#sec_toplevel_images
max [width] [height] or SOURCE
The maximum size of the state. A size of -1 means that it will be ignored in one direction.
When max is set to SOURCE, edje will enforce the part to be not more than the original image size.
The part must be an IMAGE part.

Test Plan:
{F4230539}
edje_cc test.edc && gcc -o test test.c `pkg-config --libs --cflags evas ecore ecore-evas edje`
./test

Reviewers: Hermet, Jaehyun_Cho, cedric, raster

Reviewed By: Hermet

Subscribers: #reviewers, #committers, kimcinoo, herb

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12215

Change-Id: Ic67098d72ded7cb229c3dbd5c1b728d1884c36e4
src/lib/edje/edje_data.c