bf7b1b1
diff -pruN -x '.moz*' -x .deps -x 'firefox*' -x '*.mk' -x 'config*' -x dist -x build -x toolkit -x '*o' -x '*a' -x '*html' mozilla.orig/layout/generic/nsTextFrame.cpp mozilla/layout/generic/nsTextFrame.cpp
bf7b1b1
--- mozilla.orig/layout/generic/nsTextFrame.cpp	2006-08-26 13:33:35.000000000 +0900
bf7b1b1
+++ mozilla/layout/generic/nsTextFrame.cpp	2006-12-13 20:54:32.000000000 +0900
bf7b1b1
@@ -4261,12 +4261,10 @@ nsTextFrame::GetPointFromOffset(nsPresCo
bf7b1b1
       if (tc) {
bf7b1b1
         totalLength = tc->Text()->GetLength(); // raw value which includes whitespace
bf7b1b1
       }
bf7b1b1
-      if ((hitLength == textLength) && (inOffset = mContentLength) &&
bf7b1b1
-          (mContentOffset + mContentLength == totalLength)) {
bf7b1b1
-        // no need to re-measure when at the end of the last-in-flow
bf7b1b1
-      }
bf7b1b1
+      if (hitLength > 0)
bf7b1b1
+	inRendContext->GetRangeWidth(paintBuffer.mBuffer, mContentLength, 0, hitLength, (PRUint32&)width);
bf7b1b1
       else
bf7b1b1
-        inRendContext->GetWidth(paintBuffer.mBuffer, hitLength, width);
bf7b1b1
+	width = 0;
bf7b1b1
     }
bf7b1b1
     if ((hitLength == textLength) && (TEXT_TRIMMED_WS & mState)) {
bf7b1b1
       //