зеркало из https://github.com/mozilla/gecko-dev.git
Bug 334573 - Changed nsLoadBlockingPLDOMEvent to nsLoadBlockingAsyncDOMEvent. r=sicking
This commit is contained in:
Родитель
3a92e01012
Коммит
1e51cfc1e0
|
@ -400,7 +400,7 @@ nsFrameLoader::FireErrorEvent()
|
|||
{
|
||||
if (mOwnerContent) {
|
||||
nsRefPtr<nsAsyncDOMEvent> event =
|
||||
new nsLoadBlockingPLDOMEvent(mOwnerContent, NS_LITERAL_STRING("error"),
|
||||
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,9 +78,9 @@ public:
|
|||
bool mDispatchChromeOnly;
|
||||
};
|
||||
|
||||
class nsLoadBlockingPLDOMEvent : public nsAsyncDOMEvent {
|
||||
class nsLoadBlockingAsyncDOMEvent : public nsAsyncDOMEvent {
|
||||
public:
|
||||
nsLoadBlockingPLDOMEvent(nsINode *aEventNode, const nsAString& aEventType,
|
||||
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче