TableSectionBox section = getSection();
if (section.isHeader() || section.isFooter()) {
return result;
}
ContentLimitContainer contentLimitContainer = ((TableRowBox)getParent()).getContentLimitContainer();
ContentLimit limit = contentLimitContainer.getContentLimit(c.getPageNo());
if (limit == null) {
return null;
} else {
if (limit.getTop() == ContentLimit.UNDEFINED ||
limit.getBottom() == ContentLimit.UNDEFINED) {
return result;
}
int top;
if (c.getPageNo() == contentLimitContainer.getInitialPageNo()) {
top = result.y;
} else {
top = limit.getTop() - ((TableRowBox)getParent()).getExtraSpaceTop() ;
}
int bottom;
if (c.getPageNo() == contentLimitContainer.getLastPageNo()) {
bottom = result.y + result.height;
} else {
bottom = limit.getBottom() + ((TableRowBox)getParent()).getExtraSpaceBottom();
}