BridgeContext subCtx = super.createSubBridgeContext(newDoc);
if (isDynamic() && subCtx.isDynamic()) {
setUpdateManager(subCtx, updateManager);
if (updateManager != null) {
ScriptingEnvironment se;
if (newDoc.isSVG12()) {
se = new SVG12ScriptingEnvironment(subCtx);
} else {
se = new ScriptingEnvironment(subCtx);
}
se.loadScripts();
se.dispatchSVGLoadEvent();
if (newDoc.isSVG12()) {
DefaultXBLManager xm =
new DefaultXBLManager(newDoc, subCtx);
setXBLManager(subCtx, xm);
newDoc.setXBLManager(xm);