diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 656f5c5d070d..2a2866f16549 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -876,7 +876,7 @@ NS_IMETHODIMP nsFrame::GetPosition(nsIPresContext& aPresContext, //return offset; aAcutalContentOffset = 0; - aOffset = -1; + aOffset = 0; return NS_OK; } diff --git a/layout/html/base/src/nsFrame.cpp b/layout/html/base/src/nsFrame.cpp index 656f5c5d070d..2a2866f16549 100644 --- a/layout/html/base/src/nsFrame.cpp +++ b/layout/html/base/src/nsFrame.cpp @@ -876,7 +876,7 @@ NS_IMETHODIMP nsFrame::GetPosition(nsIPresContext& aPresContext, //return offset; aAcutalContentOffset = 0; - aOffset = -1; + aOffset = 0; return NS_OK; }