Changeset 99492 in webkit


Ignore:
Timestamp:
Nov 7, 2011, 3:43:21 PM (14 years ago)
Author:
aboxhall@chromium.org
Message:

Remove unnecessary use of function pointer in FrameSelection::modify()
https://bugs.webkit.org/show_bug.cgi?id=71646

Reviewed by Ryosuke Niwa.

  • editing/FrameSelection.cpp:

(WebCore::FrameSelection::modify):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r99491 r99492  
     12011-11-07  Alice Boxhall  <aboxhall@chromium.org>
     2
     3        Remove unnecessary use of function pointer in FrameSelection::modify()
     4        https://bugs.webkit.org/show_bug.cgi?id=71646
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        * editing/FrameSelection.cpp:
     9        (WebCore::FrameSelection::modify):
     10
    1112011-11-07  Andreas Kling  <kling@webkit.org>
    212
  • trunk/Source/WebCore/editing/FrameSelection.cpp

    r99255 r99492  
    10251025    VisiblePosition next;
    10261026    for (VisiblePosition p = pos; ; p = next) {
    1027         next = (direction == DirectionUp ? previousLinePosition : nextLinePosition)(p, xPos);
     1027        if (direction == DirectionUp)
     1028            next = previousLinePosition(p, xPos);
     1029        else
     1030            next = nextLinePosition(p, xPos);
     1031
    10281032        if (next.isNull() || next == p)
    10291033            break;
Note: See TracChangeset for help on using the changeset viewer.