Bug 1332494 - Move TaskCategory definition to xpcom/threads/TaskCategory.h (r=froydnj)

MozReview-Commit-ID: ET43PbGRgxl
This commit is contained in:
Bill McCloskey
2017-01-18 20:26:17 -08:00
parent d1b89171b1
commit be49fc768f
13 changed files with 61 additions and 41 deletions

View File

@@ -2753,7 +2753,7 @@ PluginModuleParent::NPP_NewInternal(NPMIMEType pluginType, NPP instance,
if (nsCOMPtr<nsINode> node = do_QueryInterface(elt)) {
nsCOMPtr<nsIDocument> doc = node->OwnerDoc();
if (doc) {
nsCOMPtr<nsIEventTarget> eventTarget = doc->EventTargetFor(dom::TaskCategory::Other);
nsCOMPtr<nsIEventTarget> eventTarget = doc->EventTargetFor(TaskCategory::Other);
SetEventTargetForActor(parentInstance, eventTarget);
}
}