Hi Cameron, I'm worried that these represent a very significant Memory leak. How are these managed as documents go into/out of scope? (think someone twiddling the xlink:href on an image/use element).
[EMAIL PROTECTED] wrote on 02/13/2006 11:09:59 PM: > /** > + * Array of resource documents' BridgeContexts. > + */ > + protected BridgeContext[] secondaryBridgeContexts; > + > + /** > + * Array of resource documents' ScriptingEnvironments that should > + * have their SVGLoad event dispatched. > + */ > + protected ScriptingEnvironment[] secondaryScriptingEnvironments; > + secondaryBridgeContexts = > + (BridgeContext[]) ctx.getChildContexts().clone(); > + secondaryScriptingEnvironments = > + new ScriptingEnvironment[secondaryBridgeContexts.length]; > + for (int i = 0; i < secondaryBridgeContexts.length; i++) { > + BridgeContext resCtx = secondaryBridgeContexts[i]; > + if (!((SVGOMDocument) resCtx.getDocument()).isSVG12()) { > + continue; > + } > resCtx.setUpdateManager(this); > - initializeScriptingEnvironment(resCtx); > + ScriptingEnvironment se = initializeScriptingEnvironment(resCtx); > + secondaryScriptingEnvironments[i] = se; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]