diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 61b8feae7af2..f35c6c1e0546 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -3630,6 +3630,7 @@ nsFrame::PeekOffset(nsIPresContext* aPresContext, nsPeekOffsetStruct *aPos) aPos->mContentOffset = newOffset +1; else aPos->mContentOffset = newOffset;//to beginning of frame + return NS_OK; } } } diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index 61b8feae7af2..f35c6c1e0546 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -3630,6 +3630,7 @@ nsFrame::PeekOffset(nsIPresContext* aPresContext, nsPeekOffsetStruct *aPos) aPos->mContentOffset = newOffset +1; else aPos->mContentOffset = newOffset;//to beginning of frame + return NS_OK; } } }