Bug 1055760 - Don't pass an out-ref for a parameter that doesn't change. r=botond

This commit is contained in:
Kartikaya Gupta 2014-08-27 22:13:40 -04:00
parent 8d38ec98d1
commit b278e78810
2 changed files with 4 additions and 4 deletions

View File

@ -211,7 +211,7 @@ APZCTreeManager::PrepareAPZCForLayer(const Layer* aLayer,
const gfx::Matrix4x4& aAncestorTransform,
const nsIntRegion& aObscured,
AsyncPanZoomController*& aOutParent,
AsyncPanZoomController*& aOutNextSibling,
AsyncPanZoomController* aNextSibling,
TreeBuildingState& aState)
{
if (!aMetrics.IsScrollable()) {
@ -308,8 +308,8 @@ APZCTreeManager::PrepareAPZCForLayer(const Layer* aLayer,
<< "\t" << aLayer->GetContentDescription();
// Bind the APZC instance into the tree of APZCs
if (aOutNextSibling) {
aOutNextSibling->SetPrevSibling(apzc);
if (aNextSibling) {
aNextSibling->SetPrevSibling(apzc);
} else if (aOutParent) {
aOutParent->SetLastChild(apzc);
} else {

View File

@ -384,7 +384,7 @@ private:
const gfx::Matrix4x4& aAncestorTransform,
const nsIntRegion& aObscured,
AsyncPanZoomController*& aOutParent,
AsyncPanZoomController*& aOutNextSibling,
AsyncPanZoomController* aNextSibling,
TreeBuildingState& aState);
/**