mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1055760 - Don't pass an out-ref for a parameter that doesn't change. r=botond
This commit is contained in:
parent
8d38ec98d1
commit
b278e78810
@ -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 {
|
||||
|
@ -384,7 +384,7 @@ private:
|
||||
const gfx::Matrix4x4& aAncestorTransform,
|
||||
const nsIntRegion& aObscured,
|
||||
AsyncPanZoomController*& aOutParent,
|
||||
AsyncPanZoomController*& aOutNextSibling,
|
||||
AsyncPanZoomController* aNextSibling,
|
||||
TreeBuildingState& aState);
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user