diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp index 61bab9e8ccbe..abb433c9b7d0 100644 --- a/layout/base/nsCaret.cpp +++ b/layout/base/nsCaret.cpp @@ -339,8 +339,7 @@ nsCaret::GetGeometryForFrame(nsIFrame* aFrame, return NS_OK; } -nsIFrame* nsCaret::GetGeometry(nsISelection* aSelection, nsRect* aRect, - nscoord* aBidiIndicatorSize) +nsIFrame* nsCaret::GetGeometry(nsISelection* aSelection, nsRect* aRect) { nsCOMPtr focusNode; nsresult rv = aSelection->GetFocusNode(getter_AddRefs(focusNode)); @@ -368,7 +367,7 @@ nsIFrame* nsCaret::GetGeometry(nsISelection* aSelection, nsRect* aRect, if (NS_FAILED(rv) || !frame) return nullptr; - GetGeometryForFrame(frame, frameOffset, aRect, aBidiIndicatorSize); + GetGeometryForFrame(frame, frameOffset, aRect, nullptr); return frame; } diff --git a/layout/base/nsCaret.h b/layout/base/nsCaret.h index 0ec5e7eb893d..9a7e6b0599dc 100644 --- a/layout/base/nsCaret.h +++ b/layout/base/nsCaret.h @@ -94,11 +94,9 @@ class nsCaret : public nsISelectionListener * i.e., disregarding blink status). The geometry is stored in aRect, * and we return the frame aRect is relative to. * @param aRect must be non-null - * @param aBidiIndicatorSize if non-null, set to the bidi indicator size. */ nsIFrame* GetGeometry(nsISelection* aSelection, - nsRect* aRect, - nscoord* aBidiIndicatorSize = nullptr); + nsRect* aRect); /** GetCaretFrame * Get the current frame that the caret should be drawn in. If the caret is * not currently visible (i.e., it is between blinks), then this will