Changeset 27706 in webkit


Ignore:
Timestamp:
Nov 11, 2007 9:40:30 PM (16 years ago)
Author:
mitz@apple.com
Message:

WebCore:

Reviewed by Adam Roben.

Test: editing/selection/cleared-by-relayout.html

  • editing/Selection.cpp: (WebCore::Selection::toRange): Check if the selection has been cleared by updating layout.

LayoutTests:

Reviewed by Adam Roben.

  • editing/selection/cleared-by-relayout-expected.txt: Added.
  • editing/selection/cleared-by-relayout.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r27696 r27706  
     12007-11-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=15942
     6          REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())
     7
     8        * editing/selection/cleared-by-relayout-expected.txt: Added.
     9        * editing/selection/cleared-by-relayout.html: Added.
     10
    1112007-11-11  Antti Koivisto  <antti@apple.com>
    212
  • trunk/WebCore/ChangeLog

    r27705 r27706  
     12007-11-11  Dan Bernstein  <mitz@apple.com>
     2
     3        Reviewed by Adam Roben.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=15942
     6          REGRESSION: Selecting "Edit Html" tab in Blogger causes crash (Assertion failed: isRange())
     7
     8        Test: editing/selection/cleared-by-relayout.html
     9
     10        * editing/Selection.cpp:
     11        (WebCore::Selection::toRange): Check if the selection has been cleared
     12        by updating layout.
     13
    1142007-11-11  Darin Adler  <darin@apple.com>
    215
  • trunk/WebCore/editing/Selection.cpp

    r25453 r27706  
    129129    // incorrect results.
    130130    m_start.node()->document()->updateLayout();
     131
     132    // Check again, because updating layout can clear the selection.
     133    if (isNone())
     134        return 0;
    131135
    132136    Position s, e;
Note: See TracChangeset for help on using the changeset viewer.