Remove workaround for <rdar://problem/4103339>.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 May 2005 12:24:48 +0000 (12:24 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 May 2005 12:24:48 +0000 (12:24 +0000)
        * khtml/editing/htmlediting.cpp:
        (khtml::DeleteSelectionCommand::initializePositionData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@9132 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp

index 08198a9e12609f4b7a09dbe9f3a53348210c5bb6..1aa55444bd45342ce64466e03f16412b43cbdf34 100644 (file)
@@ -1,3 +1,10 @@
+2005-05-07  David Harrison  <harrison@apple.com>
+        
+        Remove workaround for <rdar://problem/4103339>.
+        
+        * khtml/editing/htmlediting.cpp:
+        (khtml::DeleteSelectionCommand::initializePositionData):
+
 2005-05-06  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Dave Harrison.
index 2ae08ae432f4e957caf968cb8fdd26fc95270943..823b7dd322e6662a61dd2be6e891370aa86bbb49 100644 (file)
@@ -2611,10 +2611,7 @@ void DeleteSelectionCommand::initializePositionData()
     // Handle leading and trailing whitespace, as well as smart delete adjustments to the selection
     //
     m_leadingWhitespace = m_upstreamStart.leadingWhitespacePosition(m_selectionToDelete.startAffinity());
-    // NOTE: Workaround for bug <rdar://problem/4103339> is to avoid calculating trailingWhitespacePosition
-    // if the m_downstreamEnd is at the end of a paragraph.
-    if (!isEndOfParagraph(VisiblePosition(m_downstreamEnd, VP_DEFAULT_AFFINITY)))
-        m_trailingWhitespace = m_downstreamEnd.trailingWhitespacePosition(VP_DEFAULT_AFFINITY);
+    m_trailingWhitespace = m_downstreamEnd.trailingWhitespacePosition(VP_DEFAULT_AFFINITY);
 
     if (m_smartDelete) {