diff --git a/mozilla/uriloader/base/nsDocLoader.h b/mozilla/uriloader/base/nsDocLoader.h index 9ab3bad7aa2..29f9a31dd10 100644 --- a/mozilla/uriloader/base/nsDocLoader.h +++ b/mozilla/uriloader/base/nsDocLoader.h @@ -184,6 +184,15 @@ protected: void doStopURLLoad(nsIRequest *request, nsresult aStatus); void doStopDocumentLoad(nsIRequest *request, nsresult aStatus); + // Inform a parent docloader that aChild is about to call its onload + // handler. + PRBool ChildEnteringOnload(nsIDocumentLoader* aChild) { + // It's ok if we're already in the list -- we'll just be in there twice + // and then the RemoveObject calls from ChildDoneWithOnload will remove + // us. + return mChildrenInOnload.AppendObject(aChild); + } + protected: // IMPORTANT: The ownership implicit in the following member // variables has been explicitly checked and set using nsCOMPtr @@ -234,15 +243,6 @@ private: // fact empty. void DocLoaderIsEmpty(); - // Inform a parent docloader that aChild is about to call its onload - // handler. - PRBool ChildEnteringOnload(nsIDocumentLoader* aChild) { - // It's ok if we're already in the list -- we'll just be in there twice - // and then the RemoveObject calls from ChildDoneWithOnload will remove - // us. - return mChildrenInOnload.AppendObject(aChild); - } - // Inform a parent docloader that aChild is done calling its onload // handler. void ChildDoneWithOnload(nsIDocumentLoader* aChild) {