Bug 334573 - Changed nsLoadBlockingPLDOMEvent to nsLoadBlockingAsyncDOMEvent. r=sicking

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

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

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