}
public boolean checkEnclosure (Element element, SVGRect svgRect ) {
GraphicsNode gn = ctx.getGraphicsNode(element);
Rectangle2D gnBounds = null;
SVGContext svgctx = null;
if (element instanceof SVGOMElement) {
svgctx = ((SVGOMElement)element).getSVGContext();
if ((svgctx instanceof SVGTextElementBridge) ||
(svgctx instanceof
SVGTextElementBridge.AbstractTextChildSVGContext)) {