Changeset 74006 in webkit


Ignore:
Timestamp:
Dec 13, 2010 11:17:23 PM (13 years ago)
Author:
tonikitoo@webkit.org
Message:

2010-12-13 Antonio Gomes <agomes@rim.com>

Rubber stamped by Daniel Bates.

Spatial Navigation: code clean up (part V)
https://bugs.webkit.org/show_bug.cgi?id=50666

No new tests needed.

  • page/SpatialNavigation.cpp: (WebCore::distanceDataForNode): Made 'FocusCandidate current' const since it is not supposed to change within this function.
  • page/SpatialNavigation.h: Ditto.
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74005 r74006  
     12010-12-13  Antonio Gomes  <agomes@rim.com>
     2
     3        Rubber stamped by Daniel Bates.
     4
     5        Spatial Navigation: code clean up (part V)
     6        https://bugs.webkit.org/show_bug.cgi?id=50666
     7
     8        No new tests needed.
     9
     10        * page/SpatialNavigation.cpp:
     11        (WebCore::distanceDataForNode): Made 'FocusCandidate current' const since it is not
     12        supposed to change within this function.
     13        * page/SpatialNavigation.h: Ditto.
     14
    1152010-12-13  takano takumi  <takano@apple.com>
    216
  • trunk/WebCore/page/SpatialNavigation.cpp

    r74004 r74006  
    593593}
    594594
    595 void distanceDataForNode(FocusDirection direction, FocusCandidate& current, FocusCandidate& candidate)
     595void distanceDataForNode(FocusDirection direction, const FocusCandidate& current, FocusCandidate& candidate)
    596596{
    597597    if (candidate.isNull())
  • trunk/WebCore/page/SpatialNavigation.h

    r74003 r74006  
    142142bool canScrollInDirection(FocusDirection, const Frame*);
    143143bool canBeScrolledIntoView(FocusDirection, const FocusCandidate&);
    144 void distanceDataForNode(FocusDirection, FocusCandidate& current, FocusCandidate& candidate);
     144void distanceDataForNode(FocusDirection, const FocusCandidate& current, FocusCandidate& candidate);
    145145Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusDirection, Node*);
    146146IntRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false);
Note: See TracChangeset for help on using the changeset viewer.