Reviewed by John
[WebKit-https.git] / WebCore / ChangeLog-2005-08-23
index cc15017038499d88a53c4f143c1b0487b1924539..8719f1c8527fd0ae50644a78a4762d64c4bb6bc0 100644 (file)
@@ -1,3 +1,23 @@
+2004-12-13  Ken Kocienda  <kocienda@apple.com>
+
+        Reviewed by John
+
+        Fix for this bug:
+        
+        <rdar://problem/3917863> REGRESSION (Mail): pasting two lines of plain text copied from an RTF document results in two styles
+
+        Code to figuire out the end node to merge was missing the font tag in the second paragraph
+        written out by AppKit convert-to-HTML function. I refined the algorithm to be smarter.
+
+        * khtml/editing/htmlediting.cpp:
+        (khtml::ReplacementFragment::mergeEndNode): Refine algorithm used to walk through the fragment being pasted
+        looking for the node that is the last inline in the last block of the fragment. The old algorithm was 
+        insufficiently powerful.
+        (khtml::ReplacementFragment::enclosingBlock): New helper function.
+        * khtml/editing/htmlediting.h: Add declaration for new helper function.
+        * layout-tests/editing/pasteboard/paste-text-011-expected.txt: Added.
+        * layout-tests/editing/pasteboard/paste-text-011.html: Added.
+
 2004-12-13  Ken Kocienda  <kocienda@apple.com>
 
         Reviewed by John