From 7de11fb7b5c6b75a10872af0148521758140431b Mon Sep 17 00:00:00 2001 From: Milan Sreckovic Date: Thu, 10 Sep 2015 10:55:00 +0200 Subject: [PATCH] Bug 1203626 - remove the unused argument from nsTreeBodyFrame::GetTwistyRect. r=mattwoodrow --- layout/xul/tree/nsTreeBodyFrame.cpp | 15 +++++++-------- layout/xul/tree/nsTreeBodyFrame.h | 1 - 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/layout/xul/tree/nsTreeBodyFrame.cpp b/layout/xul/tree/nsTreeBodyFrame.cpp index d7347dd6954..0a19a5b53ed 100644 --- a/layout/xul/tree/nsTreeBodyFrame.cpp +++ b/layout/xul/tree/nsTreeBodyFrame.cpp @@ -1190,7 +1190,7 @@ nsTreeBodyFrame::GetCoordsForCellItem(int32_t aRow, nsITreeColumn* aCol, const n nsRect twistyRect(cellRect); nsStyleContext* twistyContext = GetPseudoStyleContext(nsCSSAnonBoxes::moztreetwisty); GetTwistyRect(aRow, currCol, imageRect, twistyRect, presContext, - rc, twistyContext); + twistyContext); if (NS_LITERAL_CSTRING("twisty").Equals(aElement)) { // If we're looking for the twisty Rect, just return the size @@ -1555,7 +1555,7 @@ nsTreeBodyFrame::GetItemWithinCellAt(nscoord aX, const nsRect& aCellRect, nsRect imageSize; GetTwistyRect(aRowIndex, aColumn, imageSize, twistyRect, presContext, - rc, twistyContext); + twistyContext); // We will treat a click as hitting the twisty if it happens on the margins, borders, padding, // or content of the twisty object. By allowing a "slop" into the margin, we make it a little @@ -1715,7 +1715,7 @@ nsTreeBodyFrame::GetCellWidth(int32_t aRow, nsTreeColumn* aCol, nsRect imageSize; nsRect twistyRect(cellRect); GetTwistyRect(aRow, aCol, imageSize, twistyRect, PresContext(), - *aRenderingContext, twistyContext); + twistyContext); // Add in the margins of the twisty element. nsMargin twistyMargin; @@ -2060,7 +2060,6 @@ nsTreeBodyFrame::GetTwistyRect(int32_t aRowIndex, nsRect& aImageRect, nsRect& aTwistyRect, nsPresContext* aPresContext, - nsRenderingContext& aRenderingContext, nsStyleContext* aTwistyContext) { // The twisty rect extends all the way to the end of the cell. This is incorrect. We need to @@ -3208,7 +3207,7 @@ nsTreeBodyFrame::PaintCell(int32_t aRowIndex, nsRect imageSize; nsRect twistyRect(aCellRect); GetTwistyRect(aRowIndex, aColumn, imageSize, twistyRect, aPresContext, - aRenderingContext, twistyContext); + twistyContext); nsMargin twistyMargin; twistyContext->StyleMargin()->GetMargin(twistyMargin); @@ -3374,7 +3373,7 @@ nsTreeBodyFrame::PaintTwisty(int32_t aRowIndex, nsRect imageSize; nsITheme* theme = GetTwistyRect(aRowIndex, aColumn, imageSize, twistyRect, - aPresContext, aRenderingContext, twistyContext); + aPresContext, twistyContext); // Subtract out the remaining width. This is done even when we don't actually paint a twisty in // this cell, so that cells in different rows still line up. @@ -3927,8 +3926,8 @@ nsTreeBodyFrame::PaintDropFeedback(const nsRect& aDropFeedbackRect, nsStyleContext* twistyContext = GetPseudoStyleContext(nsCSSAnonBoxes::moztreetwisty); nsRect imageSize; nsRect twistyRect; - GetTwistyRect(mSlots->mDropRow, primaryCol, imageSize, twistyRect, aPresContext, - aRenderingContext, twistyContext); + GetTwistyRect(mSlots->mDropRow, primaryCol, imageSize, twistyRect, + aPresContext, twistyContext); nsMargin twistyMargin; twistyContext->StyleMargin()->GetMargin(twistyMargin); twistyRect.Inflate(twistyMargin); diff --git a/layout/xul/tree/nsTreeBodyFrame.h b/layout/xul/tree/nsTreeBodyFrame.h index c38e23fd3f4..23afb19ba41 100644 --- a/layout/xul/tree/nsTreeBodyFrame.h +++ b/layout/xul/tree/nsTreeBodyFrame.h @@ -325,7 +325,6 @@ protected: nsRect& aImageRect, nsRect& aTwistyRect, nsPresContext* aPresContext, - nsRenderingContext& aRenderingContext, nsStyleContext* aTwistyContext); // Fetch an image from the image cache.