Bug 334573 - Changed nsLoadBlockingPLDOMEvent to nsLoadBlockingAsyncDOMEvent. r=sicking

This commit is contained in:
Matthew Schranz 2011-12-17 01:02:42 -05:00
Родитель 8a150aeaa8
Коммит f5a0429a7d
4 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -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);