NS_IMETHODIMP txTransformNotifier::ScriptEvaluated(nsresult aResult, nsIScriptElement *aElement, PRBool aIsInline) { if (mScriptElements.RemoveObject(aElement)) { SignalTransformEnd(); } return NS_OK; }
NS_IMETHODIMP txTransformNotifier::ScriptAvailable(nsresult aResult, nsIScriptElement *aElement, PRBool aIsInline, nsIURI *aURI, PRInt32 aLineNo) { if (NS_FAILED(aResult) && mScriptElements.RemoveObject(aElement)) { SignalTransformEnd(); } return NS_OK; }
NS_IMETHODIMP txTransformNotifier::StyleSheetLoaded(nsICSSStyleSheet* aSheet, PRBool aNotify) { // Check that the stylesheet was in the mStylesheets array, if not it is an // alternate and we don't want to call SignalTransformEnd since we don't // wait on alternates before calling OnTransformDone and so the load of the // alternate could finish after we called OnTransformDone already. // See http://bugzilla.mozilla.org/show_bug.cgi?id=215465. if (mStylesheets.RemoveObject(aSheet)) { SignalTransformEnd(); } return NS_OK; }
NS_IMETHODIMP txTransformNotifier::StyleSheetLoaded(nsCSSStyleSheet* aSheet, PRBool aWasAlternate, nsresult aStatus) { if (mPendingStylesheetCount == 0) { // We weren't waiting on this stylesheet anyway. This can happen if // SignalTransformEnd got called with an error aResult. See // http://bugzilla.mozilla.org/show_bug.cgi?id=215465. return NS_OK; } // We're never waiting for alternate stylesheets if (!aWasAlternate) { --mPendingStylesheetCount; SignalTransformEnd(); } return NS_OK; }
void txTransformNotifier::OnTransformEnd(nsresult aResult) { mInTransform = PR_FALSE; SignalTransformEnd(aResult); }