summaryrefslogtreecommitdiff
path: root/firefox-1.5-pango-cursor-position-more.patch
diff options
context:
space:
mode:
authorMartin Stransky <stransky@fedoraproject.org>2007-07-09 10:15:21 +0000
committerMartin Stransky <stransky@fedoraproject.org>2007-07-09 10:15:21 +0000
commit4a48addf3bb0492afd28b1d2c4a057f5c977c1d5 (patch)
tree78dc7a1b808fc229e4a44d0f7f4992f047cf8e4f /firefox-1.5-pango-cursor-position-more.patch
parent- Properly clean up threads with newer NSPR (diff)
downloadlibrewolf-fedora-ff-4a48addf3bb0492afd28b1d2c4a057f5c977c1d5.tar.gz
librewolf-fedora-ff-4a48addf3bb0492afd28b1d2c4a057f5c977c1d5.tar.bz2
librewolf-fedora-ff-4a48addf3bb0492afd28b1d2c4a057f5c977c1d5.zip
backported pango patches from FC6
Diffstat (limited to 'firefox-1.5-pango-cursor-position-more.patch')
-rw-r--r--firefox-1.5-pango-cursor-position-more.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/firefox-1.5-pango-cursor-position-more.patch b/firefox-1.5-pango-cursor-position-more.patch
new file mode 100644
index 0000000..ef5b967
--- /dev/null
+++ b/firefox-1.5-pango-cursor-position-more.patch
@@ -0,0 +1,19 @@
+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
+--- mozilla.orig/layout/generic/nsTextFrame.cpp 2006-08-26 13:33:35.000000000 +0900
++++ mozilla/layout/generic/nsTextFrame.cpp 2006-12-13 20:54:32.000000000 +0900
+@@ -4261,12 +4261,10 @@ nsTextFrame::GetPointFromOffset(nsPresCo
+ if (tc) {
+ totalLength = tc->Text()->GetLength(); // raw value which includes whitespace
+ }
+- if ((hitLength == textLength) && (inOffset = mContentLength) &&
+- (mContentOffset + mContentLength == totalLength)) {
+- // no need to re-measure when at the end of the last-in-flow
+- }
++ if (hitLength > 0)
++ inRendContext->GetRangeWidth(paintBuffer.mBuffer, textLength, 0, hitLength, (PRUint32&)width);
+ else
+- inRendContext->GetWidth(paintBuffer.mBuffer, hitLength, width);
++ width = 0;
+ }
+ if ((hitLength == textLength) && (TEXT_TRIMMED_WS & mState)) {
+ //
bgstack15