Bug 1365097 - Convert NS_GetCurrentThread uses in dom (except for dom/media) (r=smaug)

For the Quatum DOM project, it's better to work in terms of event targets than
threads. This patch converts DOM code to operate on event targets rather than
threads, when possible.

MozReview-Commit-ID: 5FgvpKadUA2
This commit is contained in:
Bill McCloskey
2017-06-01 13:42:05 -07:00
parent 44974a4452
commit 284c3f3132
46 changed files with 223 additions and 233 deletions

View File

@@ -120,7 +120,7 @@ FileReader::FileReader(nsIGlobalObject* aGlobal,
if (NS_IsMainThread()) {
mTarget = aGlobal->EventTargetFor(TaskCategory::Other);
} else {
mTarget = do_GetCurrentThread();
mTarget = GetCurrentThreadSerialEventTarget();
}
SetDOMStringToNull(mResult);