Bug 1221371 - Remove unnecessary explicit copies of nsTArray. r=billm

--HG--
extra : source : e3ade121fe3a26db1e65cd6b91de29dfe8cc5a61
extra : intermediate-source : a09da6e0b017448d6e2b85eb4a6c08dba51999c7
This commit is contained in:
Botond Ballo 2015-11-18 13:48:12 -05:00
parent b0cd3a3759
commit 65d984ff6f
2 changed files with 4 additions and 4 deletions

View File

@ -548,7 +548,7 @@ RenderFrameParent::SetTargetAPZC(uint64_t aInputBlockId,
= &APZCTreeManager::SetTargetAPZC;
APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
GetApzcTreeManager(), setTargetApzcFunc,
aInputBlockId, nsTArray<ScrollableLayerGuid>(aTargets)));
aInputBlockId, aTargets));
}
}
@ -559,7 +559,7 @@ RenderFrameParent::SetAllowedTouchBehavior(uint64_t aInputBlockId,
if (GetApzcTreeManager()) {
APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
GetApzcTreeManager(), &APZCTreeManager::SetAllowedTouchBehavior,
aInputBlockId, nsTArray<TouchBehaviorFlags>(aFlags)));
aInputBlockId, aFlags));
}
}

View File

@ -908,7 +908,7 @@ void nsBaseWidget::ConfigureAPZCTreeManager()
MOZ_ASSERT(NS_IsMainThread());
APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
treeManager.get(), &APZCTreeManager::SetAllowedTouchBehavior,
aInputBlockId, nsTArray<TouchBehaviorFlags>(aFlags)));
aInputBlockId, aFlags));
};
RefPtr<GeckoContentController> controller = CreateRootContentController();
@ -940,7 +940,7 @@ nsBaseWidget::SetConfirmedTargetAPZC(uint64_t aInputBlockId,
void (APZCTreeManager::*setTargetApzcFunc)(uint64_t, const nsTArray<ScrollableLayerGuid>&)
= &APZCTreeManager::SetTargetAPZC;
APZThreadUtils::RunOnControllerThread(NewRunnableMethod(
mAPZC.get(), setTargetApzcFunc, aInputBlockId, nsTArray<ScrollableLayerGuid>(aTargets)));
mAPZC.get(), setTargetApzcFunc, aInputBlockId, aTargets));
}
void