Changeset 55566 in webkit


Ignore:
Timestamp:
Mar 4, 2010 8:34:00 PM (14 years ago)
Author:
tony@chromium.org
Message:

2010-03-04 Tony Chang <tony@chromium.org>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=18819
Pressing option+page{down,up} should move the cursor and scroll in
content editable areas. On other platforms, pressing page{down,up}
should move the cursor and scroll in content editable areas.

  • editing/input/option-page-up-down-expected.txt: Added.
  • editing/input/option-page-up-down.html: Added.

2010-03-04 Tony Chang <tony@chromium.org>

Reviewed by Eric Seidel.

https://bugs.webkit.org/show_bug.cgi?id=18819
Pressing option+page{down,up} should move the cursor and scroll in
content editable areas. On other platforms, pressing page{down,up}
should move the cursor and scroll in content editable areas.

Test: editing/input/option-page-up-down.html

  • editing/EditorCommand.cpp: (WebCore::verticalScrollDistance):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r55564 r55566  
     12010-03-04  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=18819
     6        Pressing option+page{down,up} should move the cursor and scroll in
     7        content editable areas.  On other platforms, pressing page{down,up}
     8        should move the cursor and scroll in content editable areas.
     9
     10        * editing/input/option-page-up-down-expected.txt: Added.
     11        * editing/input/option-page-up-down.html: Added.
     12
    1132010-03-03  Oliver Hunt  <oliver@apple.com>
    214
  • trunk/WebCore/ChangeLog

    r55564 r55566  
     12010-03-04  Tony Chang  <tony@chromium.org>
     2
     3        Reviewed by Eric Seidel.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=18819
     6        Pressing option+page{down,up} should move the cursor and scroll in
     7        content editable areas.  On other platforms, pressing page{down,up}
     8        should move the cursor and scroll in content editable areas.
     9
     10        Test: editing/input/option-page-up-down.html
     11
     12        * editing/EditorCommand.cpp:
     13        (WebCore::verticalScrollDistance):
     14
    1152010-03-03  Oliver Hunt  <oliver@apple.com>
    216
  • trunk/WebCore/editing/EditorCommand.cpp

    r54345 r55566  
    258258    if (!style)
    259259        return 0;
    260     if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || renderer->isTextArea()))
     260    if (!(style->overflowY() == OSCROLL || style->overflowY() == OAUTO || focusedNode->isContentEditable()))
    261261        return 0;
    262262    int height = toRenderBox(renderer)->clientHeight();
Note: See TracChangeset for help on using the changeset viewer.