Reviewed by Brady.
authoraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2007 05:33:57 +0000 (05:33 +0000)
committeraliceli1 <aliceli1@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 24 Jan 2007 05:33:57 +0000 (05:33 +0000)
        * editing/Editor.cpp:
        (WebCore::Editor::appliedEditing):
        minor change.  removing unnecessary call to frame to fetch editor

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

WebCore/ChangeLog
WebCore/editing/Editor.cpp

index bdeb3e6..a56ad33 100644 (file)
@@ -1,3 +1,11 @@
+2007-01-23  Alice Liu  <alice.liu@apple.com>
+
+        Reviewed by Brady.
+
+        * editing/Editor.cpp:
+        (WebCore::Editor::appliedEditing):
+        minor change.  removing unnecessary call to frame to fetch editor
+
 2007-01-23  Mark Rowe  <mrowe@apple.com>
 
         Reviewed by Adele.
index ce8ac91..99d2614 100644 (file)
@@ -648,7 +648,7 @@ void Editor::appliedEditing(PassRefPtr<EditCommand> cmd)
     // FIXME: We shouldn't tell setSelection to clear the typing style or removed anchor here.
     // If we didn't, we wouldn't have to save/restore the removedAnchor, and we wouldn't have to have
     // the typing style stored in two places (the Frame and commands).
-    RefPtr<Node> anchor = m_frame->editor()->removedAnchor();
+    RefPtr<Node> anchor = removedAnchor();
     
     Selection newSelection(cmd->endingSelection());
     // If there is no selection change, don't bother sending shouldChangeSelection, but still call setSelection,
@@ -656,7 +656,7 @@ void Editor::appliedEditing(PassRefPtr<EditCommand> cmd)
     if (newSelection == m_frame->selectionController()->selection() || m_frame->shouldChangeSelection(newSelection))
         m_frame->selectionController()->setSelection(newSelection, false);
     
-    m_frame->editor()->setRemovedAnchor(anchor);
+    setRemovedAnchor(anchor);
     
     // Now set the typing style from the command. Clear it when done.
     // This helps make the case work where you completely delete a piece