* @param child the child <code>Component</code>
* @see #getCellLayoutDataBackgroundImage(Component, String)
*/
public static void renderBackgroundImageToStyle(CssStyle cssStyle, RenderContext rc, ImageRenderSupport irs,
Component parent, Component child) {
CellLayoutData layoutData = (CellLayoutData) child.getRenderProperty(Component.PROPERTY_LAYOUT_DATA);
if (layoutData == null || layoutData.getBackgroundImage() == null) {
return;
}
FillImageRender.renderToStyle(cssStyle, rc, irs, parent,
IMAGE_ID_PREFIX_LAYOUT_DATA_BACKGROUND_IMAGE + child.getRenderId(), layoutData.getBackgroundImage(), 0);
}