Changeset 64488 in webkit


Ignore:
Timestamp:
Aug 2, 2010 1:46:13 PM (14 years ago)
Author:
ojan@chromium.org
Message:

2010-07-20 Ojan Vafai <ojan@chromium.org>

Reviewed by Eric Seidel.

focusing an unfocused contentEditable element should place the cursor at the beginning
https://bugs.webkit.org/show_bug.cgi?id=42646

r14666 made this change for the body and html elements, but not for all contentEditable
elements. Doing this for all contentEditable elements matches all other browsers.

  • editing/deleting/5546763-expected.txt:
  • editing/deleting/in-visibly-empty-root.html:
  • editing/execCommand/4786404-1.html:
  • editing/execCommand/4786404-2.html:
  • editing/execCommand/remove-list-1-expected.txt:
  • editing/pasteboard/5601583-1.html:
  • editing/pasteboard/merge-end-1.html:
  • editing/pasteboard/merge-end-2.html:
  • editing/selection/move-begin-end-expected.txt:
  • editing/selection/move-begin-end.html:
  • editing/style/5279521.html:
  • platform/mac/accessibility/selection-value-changes-for-aria-textbox-expected.txt:
  • platform/mac/editing/input/text-input-controller-expected.txt:
  • platform/mac/editing/pasteboard/input-field-1-expected.checksum:
  • platform/mac/editing/pasteboard/input-field-1-expected.png:
  • platform/mac/editing/pasteboard/input-field-1-expected.txt:
  • platform/mac/editing/pasteboard/merge-end-1-expected.txt:
  • platform/mac/editing/pasteboard/merge-end-2-expected.txt:
  • platform/mac/editing/pasteboard/select-element-1-expected.txt:
  • platform/mac/fast/dom/focus-contenteditable-expected.checksum:
  • platform/mac/fast/dom/focus-contenteditable-expected.png:
  • platform/mac/fast/dom/focus-contenteditable-expected.txt:
  • platform/mac/fast/overflow/overflow-focus-ring-expected.checksum:
  • platform/mac/fast/overflow/overflow-focus-ring-expected.png:
  • platform/mac/fast/overflow/overflow-focus-ring-expected.txt:

2010-07-20 Ojan Vafai <ojan@chromium.org>

Reviewed by Eric Seidel.

focusing an unfocused contentEditable element should place the cursor at the beginning
https://bugs.webkit.org/show_bug.cgi?id=42646

r14666 made this change for the body and html elements, but not for all contentEditable
elements. Doing this for all contentEditable elements matches all other browsers.

  • dom/Element.cpp: (WebCore::Element::updateFocusAppearance):
Location:
trunk
Files:
26 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r64486 r64488  
     12010-07-20  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        focusing an unfocused contentEditable element should place the cursor at the beginning
     6        https://bugs.webkit.org/show_bug.cgi?id=42646
     7
     8        r14666 made this change for the body and html elements, but not for all contentEditable
     9        elements. Doing this for all contentEditable elements matches all other browsers.
     10
     11        * editing/deleting/5546763-expected.txt:
     12        * editing/deleting/in-visibly-empty-root.html:
     13        * editing/execCommand/4786404-1.html:
     14        * editing/execCommand/4786404-2.html:
     15        * editing/execCommand/remove-list-1-expected.txt:
     16        * editing/pasteboard/5601583-1.html:
     17        * editing/pasteboard/merge-end-1.html:
     18        * editing/pasteboard/merge-end-2.html:
     19        * editing/selection/move-begin-end-expected.txt:
     20        * editing/selection/move-begin-end.html:
     21        * editing/style/5279521.html:
     22        * platform/mac/accessibility/selection-value-changes-for-aria-textbox-expected.txt:
     23        * platform/mac/editing/input/text-input-controller-expected.txt:
     24        * platform/mac/editing/pasteboard/input-field-1-expected.checksum:
     25        * platform/mac/editing/pasteboard/input-field-1-expected.png:
     26        * platform/mac/editing/pasteboard/input-field-1-expected.txt:
     27        * platform/mac/editing/pasteboard/merge-end-1-expected.txt:
     28        * platform/mac/editing/pasteboard/merge-end-2-expected.txt:
     29        * platform/mac/editing/pasteboard/select-element-1-expected.txt:
     30        * platform/mac/fast/dom/focus-contenteditable-expected.checksum:
     31        * platform/mac/fast/dom/focus-contenteditable-expected.png:
     32        * platform/mac/fast/dom/focus-contenteditable-expected.txt:
     33        * platform/mac/fast/overflow/overflow-focus-ring-expected.checksum:
     34        * platform/mac/fast/overflow/overflow-focus-ring-expected.png:
     35        * platform/mac/fast/overflow/overflow-focus-ring-expected.txt:
     36
    1372010-08-02  Csaba Osztrogonác  <ossy@webkit.org>
    238
  • trunk/LayoutTests/editing/deleting/5546763-expected.txt

    r30635 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 5 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > A > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > A > DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > A > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > DIV > BODY > HTML > #document to 0 of DIV > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > A > DIV > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    67EDITING DELEGATE: shouldDeleteDOMRange:range from 0 of #text > DIV > DIV > BODY > HTML > #document to 3 of #text > A > DIV > DIV > BODY > HTML > #document
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  • trunk/LayoutTests/editing/deleting/in-visibly-empty-root.html

    r43044 r64488  
    1414    var square = document.getElementById("square");
    1515    root.focus();
     16    document.execCommand("SelectAll");
    1617    document.execCommand("delete", "backward");
    1718    if (!square.parentNode)
  • trunk/LayoutTests/editing/execCommand/4786404-1.html

    r19991 r64488  
    88div.focus();
    99
     10document.execCommand("SelectAll");
    1011document.execCommand("RemoveFormat");
    1112</script>
  • trunk/LayoutTests/editing/execCommand/4786404-2.html

    r19991 r64488  
    88div.focus();
    99
     10document.execCommand("SelectAll");
    1011document.execCommand("RemoveFormat");
    1112</script>
  • trunk/LayoutTests/editing/execCommand/remove-list-1-expected.txt

    r45239 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 60 of #text > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 0 of LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 60 of #text > LI > OL > DIV > BODY > HTML > #document toDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 60 of #text > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 0 of LI > OL > DIV > BODY > HTML > #document toDOMRange:range from 0 of LI > OL > DIV > BODY > HTML > #document to 60 of #text > LI > OL > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    67EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    78EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 60 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  • trunk/LayoutTests/editing/pasteboard/5601583-1.html

    r28694 r64488  
    99copy = document.getElementById("copy");
    1010copy.focus();
     11document.execCommand("SelectAll");
    1112document.execCommand("Copy");
    1213
  • trunk/LayoutTests/editing/pasteboard/merge-end-1.html

    r21475 r64488  
    1212
    1313e.focus();
    14 s.setPosition(e, 0);
    1514moveSelectionForwardByCharacterCommand();
    1615insertHTMLCommand("<div>bar</div>baz");
  • trunk/LayoutTests/editing/pasteboard/merge-end-2.html

    r21475 r64488  
    1212
    1313e.focus();
    14 s.setPosition(e, 0);
    1514moveSelectionForwardByCharacterCommand();
    1615insertHTMLCommand("<div>bar</div>baz");
  • trunk/LayoutTests/editing/selection/move-begin-end-expected.txt

    r54980 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    64EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    75EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 9 of #text > DIV > BODY > HTML > #document to 9 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
  • trunk/LayoutTests/editing/selection/move-begin-end.html

    r56639 r64488  
    2323    var area = document.getElementById('area');
    2424    area.focus();
    25    
    26     // Position the caret at the beginning of the string.
    27     eventSender.keyDown("leftArrow");
    2825
    2926    // Now move to the end
  • trunk/LayoutTests/editing/style/5279521.html

    r25358 r64488  
    55var div = document.getElementById("div");
    66div.focus();
     7document.execCommand("SelectAll");
    78document.execCommand("JustifyRight");
    89</script>
  • trunk/LayoutTests/platform/mac/accessibility/selection-value-changes-for-aria-textbox-expected.txt

    r62960 r64488  
    1 ALERT: Successfully received AXSelectedTextChanged
    21ALERT: Successfully received AXSelectedTextChanged
    32ALERT: Successfully received AXSelectedTextChanged
  • trunk/LayoutTests/platform/mac/editing/input/text-input-controller-expected.txt

    r45016 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    67EDITING DELEGATE: shouldInsertText:to be deleted replacingDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 7 of #text > DIV > BODY > HTML > #document givenAction:WebViewInsertActionTyped
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  • trunk/LayoutTests/platform/mac/editing/pasteboard/input-field-1-expected.txt

    r63291 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    67EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    78EDITING DELEGATE: shouldInsertNode:#document-fragment replacingDOMRange:range from 1 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document givenAction:WebViewInsertActionPasted
  • trunk/LayoutTests/platform/mac/editing/pasteboard/merge-end-1-expected.txt

    r63291 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 1 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > SPAN > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    54EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    65EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  • trunk/LayoutTests/platform/mac/editing/pasteboard/merge-end-2-expected.txt

    r63291 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > SPAN > DIV > BODY > HTML > #document to 3 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    4 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    54EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    65EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  • trunk/LayoutTests/platform/mac/editing/pasteboard/select-element-1-expected.txt

    r63403 r64488  
    11EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of DIV > BODY > HTML > #document to 3 of DIV > BODY > HTML > #document
    22EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification
    3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 1 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     3EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
    44EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    5 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 1 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document toDOMRange:range from 1 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     5EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of DIV > BODY > HTML > #document to 0 of DIV > BODY > HTML > #document toDOMRange:range from 1 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE
     6EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
    67EDITING DELEGATE: shouldDeleteDOMRange:range from 1 of DIV > BODY > HTML > #document to 2 of DIV > BODY > HTML > #document
    78EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification
  • trunk/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.checksum

    r38121 r64488  
    1 44d9c6d8e23cc883d5d8c6ef7c77df1d
     14d80417edd32171a30d1bae9e6c6ff37
  • trunk/LayoutTests/platform/mac/fast/dom/focus-contenteditable-expected.txt

    r63291 r64488  
    1818          text run at (0,0) width 78: "Test Passed."
    1919      RenderBlock {DIV} at (0,878) size 769x0
    20 selection start: position 0 of child 0 {#text} of child 5 {DIV} of body
    21 selection end:   position 19 of child 0 {#text} of child 5 {DIV} of body
     20caret: position 0 of child 0 {#text} of child 5 {DIV} of body
    2221scrolled to 0,276
  • trunk/LayoutTests/platform/mac/fast/overflow/overflow-focus-ring-expected.checksum

    r43458 r64488  
    1 3e94a655f09a4899cbd3f4ecee6275d1
     19ff8593259d6e2b537bf51a26e285ccc
  • trunk/LayoutTests/platform/mac/fast/overflow/overflow-focus-ring-expected.txt

    r63291 r64488  
    4646      text run at (0,612) width 500: "............................................................................................................................."
    4747      text run at (0,630) width 212: "....................................................."
    48 selection start: position 0 of child 0 {#text} of child 1 {DIV} of body
    49 selection end:   position 4428 of child 0 {#text} of child 1 {DIV} of body
     48caret: position 0 of child 0 {#text} of child 1 {DIV} of body
  • trunk/WebCore/ChangeLog

    r64477 r64488  
     12010-07-20  Ojan Vafai  <ojan@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        focusing an unfocused contentEditable element should place the cursor at the beginning
     6        https://bugs.webkit.org/show_bug.cgi?id=42646
     7
     8        r14666 made this change for the body and html elements, but not for all contentEditable
     9        elements. Doing this for all contentEditable elements matches all other browsers.
     10
     11        * dom/Element.cpp:
     12        (WebCore::Element::updateFocusAppearance):
     13
    1142010-08-02  Ryosuke Niwa  <rniwa@webkit.org>
    215
  • trunk/WebCore/dom/Element.cpp

    r64383 r64488  
    13331333
    13341334        // FIXME: We should restore the previous selection if there is one.
    1335         VisibleSelection newSelection = hasTagName(htmlTag) || hasTagName(bodyTag) ? VisibleSelection(Position(this, 0), DOWNSTREAM) : VisibleSelection::selectionFromContentsOfNode(this);
     1335        VisibleSelection newSelection = VisibleSelection(Position(this, 0), DOWNSTREAM);
    13361336       
    13371337        if (frame->shouldChangeSelection(newSelection)) {
Note: See TracChangeset for help on using the changeset viewer.