зеркало из https://github.com/mozilla/pjs.git
Bug 334573 - Changed nsLoadBlockingPLDOMEvent to nsLoadBlockingAsyncDOMEvent. r=sicking
This commit is contained in:
Родитель
8a150aeaa8
Коммит
f5a0429a7d
|
@ -400,8 +400,8 @@ nsFrameLoader::FireErrorEvent()
|
|||
{
|
||||
if (mOwnerContent) {
|
||||
nsRefPtr<nsAsyncDOMEvent> event =
|
||||
new nsLoadBlockingPLDOMEvent(mOwnerContent, NS_LITERAL_STRING("error"),
|
||||
false, false);
|
||||
new nsLoadBlockingAsyncDOMEvent(mOwnerContent, NS_LITERAL_STRING("error"),
|
||||
false, false);
|
||||
event->PostDOMEvent();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -970,7 +970,7 @@ nsImageLoadingContent::FireEvent(const nsAString& aEventType)
|
|||
nsCOMPtr<nsINode> thisNode = do_QueryInterface(this);
|
||||
|
||||
nsRefPtr<nsAsyncDOMEvent> event =
|
||||
new nsLoadBlockingPLDOMEvent(thisNode, aEventType, false, false);
|
||||
new nsLoadBlockingAsyncDOMEvent(thisNode, aEventType, false, false);
|
||||
event->PostDOMEvent();
|
||||
|
||||
return NS_OK;
|
||||
|
|
|
@ -78,10 +78,10 @@ public:
|
|||
bool mDispatchChromeOnly;
|
||||
};
|
||||
|
||||
class nsLoadBlockingPLDOMEvent : public nsAsyncDOMEvent {
|
||||
class nsLoadBlockingAsyncDOMEvent : public nsAsyncDOMEvent {
|
||||
public:
|
||||
nsLoadBlockingPLDOMEvent(nsINode *aEventNode, const nsAString& aEventType,
|
||||
bool aBubbles, bool aDispatchChromeOnly)
|
||||
nsLoadBlockingAsyncDOMEvent(nsINode *aEventNode, const nsAString& aEventType,
|
||||
bool aBubbles, bool aDispatchChromeOnly)
|
||||
: nsAsyncDOMEvent(aEventNode, aEventType, aBubbles, aDispatchChromeOnly),
|
||||
mBlockedDoc(aEventNode->OwnerDoc())
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
nsLoadBlockingPLDOMEvent(nsINode *aEventNode, nsIDOMEvent *aEvent)
|
||||
nsLoadBlockingAsyncDOMEvent(nsINode *aEventNode, nsIDOMEvent *aEvent)
|
||||
: nsAsyncDOMEvent(aEventNode, aEvent),
|
||||
mBlockedDoc(aEventNode->OwnerDoc())
|
||||
{
|
||||
|
@ -99,7 +99,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
~nsLoadBlockingPLDOMEvent();
|
||||
~nsLoadBlockingAsyncDOMEvent();
|
||||
|
||||
nsCOMPtr<nsIDocument> mBlockedDoc;
|
||||
};
|
||||
|
|
|
@ -92,7 +92,7 @@ void nsAsyncDOMEvent::RunDOMEventWhenSafe()
|
|||
nsContentUtils::AddScriptRunner(this);
|
||||
}
|
||||
|
||||
nsLoadBlockingPLDOMEvent::~nsLoadBlockingPLDOMEvent()
|
||||
nsLoadBlockingAsyncDOMEvent::~nsLoadBlockingAsyncDOMEvent()
|
||||
{
|
||||
if (mBlockedDoc) {
|
||||
mBlockedDoc->UnblockOnload(true);
|
||||
|
|
Загрузка…
Ссылка в новой задаче