mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 1221371 - Remove unnecessary explicit copies of nsTArray. r=billm
--HG-- extra : source : e3ade121fe3a26db1e65cd6b91de29dfe8cc5a61 extra : intermediate-source : a09da6e0b017448d6e2b85eb4a6c08dba51999c7
This commit is contained in:
parent
b0cd3a3759
commit
65d984ff6f
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user