[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

cblu cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 08:24:37 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit e8e1b0a5c66806283c380150cb31faf6aab01347
Author: cblu <cblu at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Thu Jan 29 01:26:38 2004 +0000

    	Fixed: <rdar://problem/3543041>: when pasting an image, cursor should be after the image, not before
    
            Reviewed by rjw.
    
            * khtml/xml/dom_docimpl.cpp:
            (DocumentImpl::pasteHTMLString): when the last node of the paste is non-text, use 1 instead of 0 as the start offset of the caret
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@6003 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index a5036dd..b3b1bcf 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,12 @@
+2004-01-28  Chris Blumenberg  <cblu at apple.com>
+
+	Fixed: <rdar://problem/3543041>: when pasting an image, cursor should be after the image, not before
+
+        Reviewed by rjw.
+
+        * khtml/xml/dom_docimpl.cpp:
+        (DocumentImpl::pasteHTMLString): when the last node of the paste is non-text, use 1 instead of 0 as the start offset of the caret
+
 2004-01-28  Ken Kocienda  <kocienda at apple.com>
 
         Reviewed by Hyatt
diff --git a/WebCore/khtml/xml/dom_docimpl.cpp b/WebCore/khtml/xml/dom_docimpl.cpp
index 67167db..65549ec 100644
--- a/WebCore/khtml/xml/dom_docimpl.cpp
+++ b/WebCore/khtml/xml/dom_docimpl.cpp
@@ -1271,7 +1271,7 @@ void DocumentImpl::pasteHTMLString(const QString &HTMLString)
 			}
 			child = nextChild;
 		}
-		finalOffset = child->isTextNode() ? static_cast<TextImpl *>(child)->length() : 0;
+		finalOffset = child->isTextNode() ? static_cast<TextImpl *>(child)->length() : 1;
 		selection.setSelection(child, finalOffset);
 	}
 	

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list