mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-17 23:35:34 +00:00
Bug 1343754 - Label PLayerTransaction; r=bevistseng,kats
MozReview-Commit-ID: 8QF5SQKuFhY --HG-- extra : rebase_source : c2dca1fff0e96489b87c704200a19a4b037c04f7
This commit is contained in:
parent
bdb02a828a
commit
ae41b0ceb9
@ -337,6 +337,17 @@ CompositorBridgeChild::AllocPLayerTransactionChild(const nsTArray<LayersBackend>
|
||||
{
|
||||
LayerTransactionChild* c = new LayerTransactionChild(aId);
|
||||
c->AddIPDLReference();
|
||||
|
||||
TabChild* tabChild = TabChild::GetFrom(c->GetId());
|
||||
|
||||
// Do the DOM Labeling.
|
||||
if (tabChild) {
|
||||
nsCOMPtr<nsIEventTarget> target =
|
||||
tabChild->TabGroup()->EventTargetFor(TaskCategory::Other);
|
||||
SetEventTargetForActor(c, target);
|
||||
MOZ_ASSERT(c->GetActorEventTarget());
|
||||
}
|
||||
|
||||
return c;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user