diff --git a/layout/base/nsCaret.cpp b/layout/base/nsCaret.cpp index b8830a1ccfb..6c4d4e367ea 100644 --- a/layout/base/nsCaret.cpp +++ b/layout/base/nsCaret.cpp @@ -604,7 +604,8 @@ void nsCaret::GetViewForRendering(nsIFrame *caretFrame, EViewCoordinates coordTy { // window-relative coordinates (walk right to the top of the view hierarchy) // we don't do anything with clipping here - + viewOffset = withinViewOffset; + do { theView->GetPosition(&x, &y); diff --git a/layout/base/src/nsCaret.cpp b/layout/base/src/nsCaret.cpp index b8830a1ccfb..6c4d4e367ea 100644 --- a/layout/base/src/nsCaret.cpp +++ b/layout/base/src/nsCaret.cpp @@ -604,7 +604,8 @@ void nsCaret::GetViewForRendering(nsIFrame *caretFrame, EViewCoordinates coordTy { // window-relative coordinates (walk right to the top of the view hierarchy) // we don't do anything with clipping here - + viewOffset = withinViewOffset; + do { theView->GetPosition(&x, &y);