public void resolveParent(final ReportElement element,
final ElementStyleSheet resolverTarget)
{
if (designTime == false)
{
final Section parentSection = element.getParentSection();
if (parentSection == null)
{
return;
}
final SimpleStyleSheet computedStyle = parentSection.getComputedStyle();
resolverTarget.addInherited(computedStyle);
}
final FastStack<Section> parentSections = new FastStack<Section>();
ReportElement e = element;
while (e.getParentSection() != null)
{
final Section section = e.getParentSection();
parentSections.push(section);
e = section;
}
while (parentSections.isEmpty() == false)
{
final Section section = parentSections.pop();
resolverTarget.addInherited(section.getStyle());
}
}