摘要 |
One exemplary embodiment involves performing a function on a container to determine a value for a container size attribute, wherein a contained element is contained by the container. Performing the function on the container involves determining whether the container constrains a contained element size attribute of the contained element. Performing the function on the container further involves performing the function on the contained element to determine a value for the contained element size attribute. If the container constrains the contained element size attribute, the function is passed information identifying how the container constrains the contained element size attribute. If the container does not constrain the contained element size attribute, the function is passed information identifying that the container does not constrain the contained element size attribute. Performing the function on the container further involves determining the value of the size attribute of the container. |