if the min/max of a part are identical and > 0, the part's min size is guaranteed
to be this size. there is no need to perform expensive recursive calcs here
(ep->typedata.swallow)) &&
ep->typedata.swallow->swallowed_object)
{
- edje_object_size_min_calc(ep->typedata.swallow->swallowed_object,
- &mmw, &mmh);
+ Edje_Size *min = NULL, *max = NULL;
+
+ if (ep->chosen_description)
+ {
+ min = &ep->chosen_description->min;
+ max = &ep->chosen_description->max;
+ }
+ if (min && max && (min->w == max->w) && (min->h == max->h))
+ mmw = min->w, mmh = min->h;
+ else
+ edje_object_size_min_calc(ep->typedata.swallow->swallowed_object,
+ &mmw, &mmh);
}
#ifdef EDJE_CALC_CACHE