910
910
PRBool mIsInitialDocumentInWindow;
913
#define NS_IDOCUMENT_MOZILLA_1_8_BRANCH3_IID \
914
{ 0x23da8ffb, 0x095d, 0x4215, \
915
{ 0x9a, 0x93, 0x3e, 0x0f, 0xe4, 0x10, 0x89, 0x0b } }
917
class nsIDocument_MOZILLA_1_8_BRANCH3 : public nsISupports
920
NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOCUMENT_MOZILLA_1_8_BRANCH3_IID)
922
* Get/set the object from which the context for the event/script handling can
923
* be got. Normally GetScriptHandlingObject() returns the same object as
924
* GetScriptGlobalObject(), but if the document is loaded as data,
925
* non-null may be returned, even if GetScriptGlobalObject() returns null.
926
* aHasHadScriptHandlingObject is set PR_TRUE if document has had the object
927
* for event/script handling. Do not process any events/script if the method
928
* returns null, but aHasHadScriptHandlingObject is true.
930
virtual nsIScriptGlobalObject*
931
GetScriptHandlingObject(PRBool& aHasHadScriptHandlingObject) const = 0;
932
virtual void SetScriptHandlingObject(nsIScriptGlobalObject* aScriptObject) = 0;
914
938
* Helper class to automatically handle batching of document updates. This
915
939
* class will call BeginUpdate on construction and EndUpdate on destruction on
961
985
NS_NewDocumentFragment(nsIDOMDocumentFragment** aInstancePtrResult,
962
986
nsNodeInfoManager *aNodeInfoManager);
988
NS_NewDOMDocument_MOZILLA_1_8_BRANCH(nsIDOMDocument** aInstancePtrResult,
989
const nsAString& aNamespaceURI,
990
const nsAString& aQualifiedName,
991
nsIDOMDocumentType* aDoctype,
993
nsIScriptGlobalObject* aScriptHandler,
994
PRBool aLoadedAsData);
964
997
NS_NewDOMDocument(nsIDOMDocument** aInstancePtrResult,
965
998
const nsAString& aNamespaceURI,
966
999
const nsAString& aQualifiedName,