newFoArea.viewportBPD());
// Create the reference area for the content.
final FoForeignXml foreign = generatedBy.getForeignXml();
if (foreign instanceof SvgElement) {
final SvgElement svgElement = (SvgElement) foreign;
final SVGArea svgArea = SVGArea.makeSvgArea(svgElement, newFoArea,
graftingPoint);
newFoArea.foreignContent = svgArea;
} else if (foreign instanceof MathElement) {
final MathElement mathElement = (MathElement) foreign;