Reviewed by Ken Kocienda.
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Nov 2004 01:04:41 +0000 (01:04 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Nov 2004 01:04:41 +0000 (01:04 +0000)
<rdar://problem/3865837> Wrong text style after delete to start of document

        * khtml/editing/htmlediting.cpp:
        (khtml::DeleteSelectionCommand::saveTypingStyleState):
        Sample computedStyle of m_selectionToDelete.start instead of m_downstreamStart.

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

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

index c992f07..19ad2dd 100644 (file)
@@ -1,3 +1,13 @@
+2004-11-09  David Harrison  <harrison@apple.com>
+
+        Reviewed by Ken Kocienda.
+
+               <rdar://problem/3865837> Wrong text style after delete to start of document
+               
+        * khtml/editing/htmlediting.cpp:
+        (khtml::DeleteSelectionCommand::saveTypingStyleState):
+        Sample computedStyle of m_selectionToDelete.start instead of m_downstreamStart.
+
 2004-11-09  Richard Williamson   <rjw@apple.com>
 
         Fixed <rdar://problem/3872440> NSTimer prematurely released.
index 658fead..296ca61 100644 (file)
@@ -1463,7 +1463,7 @@ void DeleteSelectionCommand::saveTypingStyleState()
     // Figure out the typing style in effect before the delete is done.
     // FIXME: Improve typing style.
     // See this bug: <rdar://problem/3769899> Implementation of typing style needs improvement
-    CSSComputedStyleDeclarationImpl *computedStyle = m_downstreamStart.computedStyle();
+    CSSComputedStyleDeclarationImpl *computedStyle = m_selectionToDelete.start().computedStyle();
     computedStyle->ref();
     m_typingStyle = computedStyle->copyInheritableProperties();
     m_typingStyle->ref();