Commit 6003944f authored by bdakin's avatar bdakin

Reviewed by Maciej.

        Fix for <rdar://problem/4912254> REGRESSION: After copying text to 
        the clipboard, the paste contextual remains dimmed when it should
        be active

        No layout test for context menu problems.

        * platform/ContextMenu.cpp:
        (WebCore::ContextMenu::checkOrEnableIfNeeded): Remove check to see 
        if the content is richly editable; it only has to be regular 
        editable and the call to canPaste() takes care of that.


git-svn-id: svn://svn.chromium.org/blink/trunk@18673 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 271eeeb6
2007-01-08 Beth Dakin <bdakin@apple.com>
Reviewed by Maciej.
Fix for <rdar://problem/4912254> REGRESSION: After copying text to
the clipboard, the paste contextual remains dimmed when it should
be active
No layout test for context menu problems.
* platform/ContextMenu.cpp:
(WebCore::ContextMenu::checkOrEnableIfNeeded): Remove check to see
if the content is richly editable; it only has to be regular
editable and the call to canPaste() takes care of that.
2007-01-08 Sam Weinig <sam@webkit.org>
Reviewed by Mitz.
......
......@@ -395,8 +395,7 @@ void ContextMenu::checkOrEnableIfNeeded(ContextMenuItem& item) const
shouldEnable = frame->selectionController()->isRange();
break;
case ContextMenuItemTagPaste:
shouldEnable = frame->editor()->canDHTMLPaste() || (frame->editor()->canPaste() &&
frame->selectionController()->isContentRichlyEditable());
shouldEnable = frame->editor()->canDHTMLPaste() || frame->editor()->canPaste();
break;
case ContextMenuItemTagUnderline: {
ExceptionCode ec = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment