Changeset 25235 in webkit


Ignore:
Timestamp:
Aug 25, 2007 5:26:19 AM (17 years ago)
Author:
bdash
Message:

2007-08-25 Mitz Pettel <mitz@webkit.org>

Reviewed by Dave Hyatt.

Test: editing/selection/move-by-line-003.html

  • rendering/RenderText.cpp: (WebCore::RenderText::positionForCoordinates): Changed hit testing so that each line is tested for hits between its overflow top and the next line's overflow top. This matches RenderBlock::positionForCoordinates.

2007-08-25 Mitz Pettel <mitz@webkit.org>

Reviewed by Dave Hyatt.

  • editing/selection/move-by-line-003-expected.txt: Added.
  • editing/selection/move-by-line-003.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r25234 r25235  
     12007-08-25  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - test for http://bugs.webkit.org/show_bug.cgi?id=14972
     6          Moving cursor down in contentEditable section fails if styled line-height:1em
     7
     8        * editing/selection/move-by-line-003-expected.txt: Added.
     9        * editing/selection/move-by-line-003.html: Added.
     10
    1112007-08-25  Mitz Pettel  <mitz@webkit.org>
    212
  • trunk/WebCore/ChangeLog

    r25234 r25235  
     12007-08-25  Mitz Pettel  <mitz@webkit.org>
     2
     3        Reviewed by Dave Hyatt.
     4
     5        - fix http://bugs.webkit.org/show_bug.cgi?id=14972
     6          Moving cursor down in contentEditable section fails if styled line-height:1em
     7
     8        Test: editing/selection/move-by-line-003.html
     9
     10        * rendering/RenderText.cpp:
     11        (WebCore::RenderText::positionForCoordinates): Changed hit testing so that each
     12        line is tested for hits between its overflow top and the next line's overflow top.
     13        This matches RenderBlock::positionForCoordinates.
     14
    1152007-08-25  Mitz Pettel  <mitz@webkit.org>
    216
  • trunk/WebCore/rendering/RenderText.cpp

    r24887 r25235  
    266266    for (InlineTextBox* box = firstTextBox(); box; box = box->nextTextBox()) {
    267267        if (y >= box->root()->topOverflow()) {
    268             if (y < box->root()->bottomOverflow()) {
     268            int bottom = box->root()->nextRootBox() ? box->root()->nextRootBox()->topOverflow() : box->root()->bottomOverflow();
     269            if (y < bottom) {
    269270                offset = box->offsetForPosition(x);
    270271
Note: See TracChangeset for help on using the changeset viewer.