if (OfficeNamespaces.DRAWING_NS.equals(namespace) && OfficeToken.FRAME.equals(elementType))
{
if (isElementBoundaryCollectionPass() && getCurrentRole() != ROLE_TEMPLATE)
{
final LengthCalculator len = new LengthCalculator();
for (int i = 0; i < rowHeights.size(); i++)
{
len.add((CSSNumericValue) rowHeights.get(i));
// val += ((CSSNumericValue)rowHeights.get(i)).getValue();
}
rowHeights.clear();
final CSSNumericValue currentRowHeight = len.getResult();
rowHeights.add(currentRowHeight);
attrs.setAttribute(OfficeNamespaces.DRAWING_NS, "z-index", String.valueOf(shapes.size()));
final String y = (String) attrs.getAttribute(OfficeNamespaces.SVG_NS, "y");
if (y != null)
{
len.add(parseLength(y));
final CSSNumericValue currentY = len.getResult();
attrs.setAttribute(OfficeNamespaces.SVG_NS, "y", currentY.getValue() + currentY.getType().getType());
}
shapes.add(attrs);
}
return;