Changeset 84263 in webkit


Ignore:
Timestamp:
Apr 19, 2011 10:15:25 AM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2011-04-19 Igor Oliveira <igor.oliveira@openbossa.org>

Reviewed by Andreas Kling.

[Qt] X11: Text selection is causing oncopy event to be called
https://bugs.webkit.org/show_bug.cgi?id=58656

Always when text is selected the oncopy event is fired, this behavior does
not exist in Firefox or Chrome. Now, when selecting a text, QtWebKit
is making multi part-copies (with rich text metadata), the multi-part
data can be obtained by data transfer items interface when supported by QtWebKit.
Also, copies to the clipboard of a selected image, is not supported by Chrome and
Firefox and was removed from QtWebKit.

  • Api/qwebpage.cpp: (QWebPagePrivate::handleClipboard):
Location:
trunk
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/qt/Api/qwebpage.cpp

    r83442 r84263  
    748748        if (button == Qt::LeftButton) {
    749749            if (focusFrame && (focusFrame->editor()->canCopy() || focusFrame->editor()->canDHTMLCopy())) {
    750                 focusFrame->editor()->copy();
     750                Pasteboard::generalPasteboard()->writeSelection(focusFrame->editor()->selectedRange().get(), focusFrame->editor()->canSmartCopyOrDelete(), focusFrame);
    751751                ev->setAccepted(true);
    752752            }
  • trunk/Source/WebKit/qt/ChangeLog

    r84196 r84263  
     12011-04-19  Igor Oliveira  <igor.oliveira@openbossa.org>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] X11: Text selection is causing oncopy event to be called
     6        https://bugs.webkit.org/show_bug.cgi?id=58656
     7
     8        Always when text is selected the oncopy event is fired, this behavior does
     9        not exist in Firefox or Chrome. Now, when selecting a text, QtWebKit
     10        is making multi part-copies (with rich text metadata), the multi-part
     11        data can be obtained by data transfer items interface when supported by QtWebKit.
     12        Also, copies to the clipboard of a selected image, is not supported by Chrome and
     13        Firefox and was removed from QtWebKit.
     14
     15
     16        * Api/qwebpage.cpp:
     17        (QWebPagePrivate::handleClipboard):
     18
    1192011-04-18  Csaba Osztrogonác  <ossy@webkit.org>
    220
Note: See TracChangeset for help on using the changeset viewer.