Changeset 60867 in webkit


Ignore:
Timestamp:
Jun 8, 2010 2:44:13 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-06-08 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r60859.
http://trac.webkit.org/changeset/60859
https://bugs.webkit.org/show_bug.cgi?id=40334

Included debugging statements. Caused a test to fail.
(Requested by ojan on #webkit).

  • editing/pasteboard/drop-link-expected.txt:
  • editing/pasteboard/drop-link.html:
  • editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt: Removed.
  • editing/selection/click-in-focusable-link-should-not-clear-selection.html: Removed.
  • editing/selection/script-tests/click-in-focusable-link-should-not-clear-selection.js: Removed.

2010-06-08 Sheriff Bot <webkit.review.bot@gmail.com>

Unreviewed, rolling out r60859.
http://trac.webkit.org/changeset/60859
https://bugs.webkit.org/show_bug.cgi?id=40334

Included debugging statements. Caused a test to fail.
(Requested by ojan on #webkit).

  • page/FocusController.cpp: (WebCore::clearSelectionIfNeeded):
Location:
trunk
Files:
3 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r60866 r60867  
     12010-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r60859.
     4        http://trac.webkit.org/changeset/60859
     5        https://bugs.webkit.org/show_bug.cgi?id=40334
     6
     7        Included debugging statements. Caused a test to fail.
     8        (Requested by ojan on #webkit).
     9
     10        * editing/pasteboard/drop-link-expected.txt:
     11        * editing/pasteboard/drop-link.html:
     12        * editing/selection/click-in-focusable-link-should-not-clear-selection-expected.txt: Removed.
     13        * editing/selection/click-in-focusable-link-should-not-clear-selection.html: Removed.
     14        * editing/selection/script-tests/click-in-focusable-link-should-not-clear-selection.js: Removed.
     15
    1162010-06-08  Stephen White  <senorblanco@chromium.org>
    217
  • trunk/LayoutTests/editing/pasteboard/drop-link-expected.txt

    r60859 r60867  
    99EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1010EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
     11EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    1112EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification
    1213EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 7 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionDropped
  • trunk/LayoutTests/editing/pasteboard/drop-link.html

    r60859 r60867  
    4646    var y = anchorToDrag.offsetTop + anchorToDrag.offsetHeight / 2;
    4747
    48     console.log(window.getSelection().anchorNode.parentNode.outerHTML);
    49 
    5048    eventSender.mouseMoveTo(x, y);
    5149
     
    5351    // Wait a moment so that the mouseDown will kick off a drag instead of navigating to the link
    5452    eventSender.leapForward(400);
    55 
    56     console.log(window.getSelection().anchorNode.parentNode.outerHTML);
    5753
    5854    var destinationObject = document.getElementById(targetId);
     
    6258    eventSender.mouseMoveTo(x, y);
    6359    eventSender.mouseUp();
    64     console.log(window.getSelection().anchorNode.parentNode.outerHTML);
    6560}
    6661
  • trunk/WebCore/ChangeLog

    r60862 r60867  
     12010-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
     2
     3        Unreviewed, rolling out r60859.
     4        http://trac.webkit.org/changeset/60859
     5        https://bugs.webkit.org/show_bug.cgi?id=40334
     6
     7        Included debugging statements. Caused a test to fail.
     8        (Requested by ojan on #webkit).
     9
     10        * page/FocusController.cpp:
     11        (WebCore::clearSelectionIfNeeded):
     12
    1132010-06-08  Sheriff Bot  <webkit.review.bot@gmail.com>
    214
  • trunk/WebCore/page/FocusController.cpp

    r60859 r60867  
    512512        return;
    513513       
    514     if (Node* mousePressNode = newFocusedFrame->eventHandler()->mousePressNode()) {
    515         if (mousePressNode->renderer() && !mousePressNode->canStartSelection()) {
    516             // Don't clear the selection for contentEditable elements, but do clear it for input and textarea. See bug 38696.
    517             Node * root = s->rootEditableElement();
    518             if (!root)
    519                  return;
    520 
    521             if (Node* shadowAncestorNode = root->shadowAncestorNode()) {
    522                 if (!shadowAncestorNode->hasTagName(inputTag) && !shadowAncestorNode->hasTagName(textareaTag))
    523                     return;
    524             }
    525         }
    526     }
     514    if (Node* mousePressNode = newFocusedFrame->eventHandler()->mousePressNode())
     515        if (mousePressNode->renderer() && !mousePressNode->canStartSelection())
     516            if (Node* root = s->rootEditableElement())
     517                if (Node* shadowAncestorNode = root->shadowAncestorNode())
     518                    // Don't do this for textareas and text fields, when they lose focus their selections should be cleared
     519                    // and then restored when they regain focus, to match other browsers.
     520                    if (!shadowAncestorNode->hasTagName(inputTag) && !shadowAncestorNode->hasTagName(textareaTag))
     521                        return;
    527522   
    528523    s->clear();
Note: See TracChangeset for help on using the changeset viewer.