if (wobs.isError())
{
return null;
}
final CSSValue widthVal = context.getValue(BoxStyleKeys.WIDTH);
final RenderLength width = DefaultBoxDefinitionFactory.computeWidth
(widthVal, context, layoutProcess.getOutputMetaData(), true, false);
final CSSValue heightVal = context.getValue(BoxStyleKeys.HEIGHT);
final RenderLength height = DefaultBoxDefinitionFactory.computeWidth
(heightVal, context, layoutProcess.getOutputMetaData(), true, false);
final StrictDimension dims = StrictGeomUtility.createDimension
(image.getWidth(null), image.getHeight(null));
final CSSValue valign =
context.getValue(LineStyleKeys.VERTICAL_ALIGN);
return new RenderableReplacedContent(image, source, dims, width, height, valign);
}