protected void processSubreportDrawableContent(final SubreportDrawable reportDrawable,
final RenderBox box,
final Element element,
final ReportStateKey stateKey)
{
final StyleCache textStyleCache = getTextStyleCache();
final StyleCache styleCache = getStyleCache();
final SimpleStyleSheet elementStyle;
if (((box.getNodeType() & LayoutNodeTypes.MASK_BOX_BLOCK) == LayoutNodeTypes.MASK_BOX_BLOCK))
{
elementStyle = textStyleCache.getStyleSheet
(new FullWidthWrapperStyleSheet(new NonDynamicHeightWrapperStyleSheet(element.getStyle())));
}
else if ((box.getNodeType() & LayoutNodeTypes.MASK_BOX_INLINE) == LayoutNodeTypes.MASK_BOX_INLINE)
{
elementStyle = styleCache.getStyleSheet(new FullWidthWrapperStyleSheet(element.getStyle()));
}
else
{
elementStyle = textStyleCache.getStyleSheet
(new NonDynamicHeightWrapperStyleSheet(element.getStyle()));