mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 23:31:56 +00:00
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:
parent
34d8925cd4
commit
7326c2887e
@ -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");
|
||||
|
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user