Bug 1417376 Part 2 - Pass nsPoint parameters by const references instead of references. r=mats

MozReview-Commit-ID: 6TveqwkOvc0

--HG--
extra : rebase_source : d4674181a6198279bedbfc2efe4e0b1715c91d51
This commit is contained in:
Ting-Yu Lin 2017-11-15 18:26:10 +08:00
parent 34d8925cd4
commit 7326c2887e
4 changed files with 10 additions and 10 deletions

View File

@ -2176,7 +2176,7 @@ Selection::SetTextRangeStyle(nsRange* aRange,
}
nsresult
Selection::StartAutoScrollTimer(nsIFrame* aFrame, nsPoint& aPoint,
Selection::StartAutoScrollTimer(nsIFrame* aFrame, const nsPoint& aPoint,
uint32_t aDelay)
{
NS_PRECONDITION(aFrame, "Need a frame");

View File

@ -176,8 +176,8 @@ public:
NS_IMETHOD Repaint(nsPresContext* aPresContext);
// Note: StartAutoScrollTimer might destroy arbitrary frames etc.
nsresult StartAutoScrollTimer(nsIFrame *aFrame,
nsPoint& aPoint,
nsresult StartAutoScrollTimer(nsIFrame* aFrame,
const nsPoint& aPoint,
uint32_t aDelay);
nsresult StopAutoScrollTimer();

View File

@ -424,10 +424,10 @@ nsFrameSelection::SetDesiredPos(nsPoint aPos)
}
nsresult
nsFrameSelection::ConstrainFrameAndPointToAnchorSubtree(nsIFrame *aFrame,
nsPoint& aPoint,
nsIFrame **aRetFrame,
nsPoint& aRetPoint)
nsFrameSelection::ConstrainFrameAndPointToAnchorSubtree(nsIFrame* aFrame,
const nsPoint& aPoint,
nsIFrame** aRetFrame,
nsPoint& aRetPoint)
{
//
// The whole point of this method is to return a frame and point that

View File

@ -608,9 +608,9 @@ public:
*/
nsresult MaintainSelection(nsSelectionAmount aAmount = eSelectNoAmount);
nsresult ConstrainFrameAndPointToAnchorSubtree(nsIFrame *aFrame,
nsPoint& aPoint,
nsIFrame **aRetFrame,
nsresult ConstrainFrameAndPointToAnchorSubtree(nsIFrame* aFrame,
const nsPoint& aPoint,
nsIFrame** aRetFrame,
nsPoint& aRetPoint);
nsFrameSelection();