Fix ancestor bounding box for "disabled" <foreignObject> and <image>


 "A value of zero for either width or height disables rendering of the
  element and its embedded content."



 "For each descendant graphics element child of parent:
  * If child is not rendered then continue to the next descendant
    graphics element."


<foreignObject> / <image> with 'width' or 'height' zero should not
contribute to an ancestor container's bounding box.

Bug: 643493
Change-Id: I097d9d28faaa52fc793dab251f22bc7b2610d6ad
Reviewed-by: Stephen Chenney <>
Commit-Queue: Fredrik Söderquist <>
Cr-Commit-Position: refs/heads/master@{#604276}
4 files changed