Changeset 80603 in webkit


Ignore:
Timestamp:
Mar 8, 2011 4:18:46 PM (13 years ago)
Author:
jeffm@apple.com
Message:

2011-03-08 Jeff Miller <jeffm@apple.com>

Reviewed by Oliver Hunt.

WebKit2: Redo is broken
https://bugs.webkit.org/show_bug.cgi?id=55978


WebEditCommandProxy::unapply() and WebEditCommandProxy::reapply() were registering the wrong edit command when an undo or redo happens.
For example, when we unapply(), we should register a Redo command, not an Undo command.

  • UIProcess/WebEditCommandProxy.cpp: (WebKit::WebEditCommandProxy::unapply): Register a Redo command, not an Undo command. (WebKit::WebEditCommandProxy::reapply): Register an Undo command, not a Redo command.
Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r80602 r80603  
     12011-03-08  Jeff Miller  <jeffm@apple.com>
     2
     3        Reviewed by Oliver Hunt.
     4
     5        WebKit2: Redo is broken
     6        https://bugs.webkit.org/show_bug.cgi?id=55978
     7       
     8        WebEditCommandProxy::unapply() and WebEditCommandProxy::reapply() were registering the wrong edit command when an undo or redo happens.
     9        For example, when we unapply(), we should register a Redo command, not an Undo command.
     10
     11        * UIProcess/WebEditCommandProxy.cpp:
     12        (WebKit::WebEditCommandProxy::unapply): Register a Redo command, not an Undo command.
     13        (WebKit::WebEditCommandProxy::reapply): Register an Undo command, not a Redo command.
     14
    1152011-03-08  Brent Fulgham  <bfulgham@webkit.org>
    216
  • trunk/Source/WebKit2/UIProcess/WebEditCommandProxy.cpp

    r76916 r80603  
    5555
    5656    m_page->process()->send(Messages::WebPage::UnapplyEditCommand(m_commandID), m_page->pageID());
    57     m_page->registerEditCommand(this, WebPageProxy::Undo);
     57    m_page->registerEditCommand(this, WebPageProxy::Redo);
    5858}
    5959
     
    6464
    6565    m_page->process()->send(Messages::WebPage::ReapplyEditCommand(m_commandID), m_page->pageID());
    66     m_page->registerEditCommand(this, WebPageProxy::Redo);
     66    m_page->registerEditCommand(this, WebPageProxy::Undo);
    6767}
    6868
Note: See TracChangeset for help on using the changeset viewer.