2010-12-13 Antonio Gomes <agomes@rim.com>
authortonikitoo@webkit.org <tonikitoo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Dec 2010 07:17:23 +0000 (07:17 +0000)
committertonikitoo@webkit.org <tonikitoo@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 14 Dec 2010 07:17:23 +0000 (07:17 +0000)
        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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@74006 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/page/SpatialNavigation.cpp
WebCore/page/SpatialNavigation.h

index ee1668824467b8450e3d3d436d56e541fbad59c8..8b948d18d5fd1d8b4d35245d268fa55bd2ce25f7 100644 (file)
@@ -1,3 +1,17 @@
+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.
+
 2010-12-13  takano takumi  <takano@apple.com>
 
         Reviewed by Dan Bernstein.
index 5d12f7240f6cd57a16e69aa13372e7a6c254c33d..5cb3c95cccda420888fad1aed5dee0df49001e07 100644 (file)
@@ -592,7 +592,7 @@ void entryAndExitPointsForDirection(FocusDirection direction, const IntRect& sta
     }
 }
 
-void distanceDataForNode(FocusDirection direction, FocusCandidate& current, FocusCandidate& candidate)
+void distanceDataForNode(FocusDirection direction, const FocusCandidate& current, FocusCandidate& candidate)
 {
     if (candidate.isNull())
         return;
index c0514416bc9eee5eb4ebc157b4191cc202e247d6..a6dcf247dcae55dc7b89c19c345a8958ac0c965c 100644 (file)
@@ -141,7 +141,7 @@ bool scrollInDirection(Node* container, FocusDirection);
 bool canScrollInDirection(FocusDirection, const Node* container);
 bool canScrollInDirection(FocusDirection, const Frame*);
 bool canBeScrolledIntoView(FocusDirection, const FocusCandidate&);
-void distanceDataForNode(FocusDirection, FocusCandidate& current, FocusCandidate& candidate);
+void distanceDataForNode(FocusDirection, const FocusCandidate& current, FocusCandidate& candidate);
 Node* scrollableEnclosingBoxOrParentFrameForNodeInDirection(FocusDirection, Node*);
 IntRect nodeRectInAbsoluteCoordinates(Node*, bool ignoreBorder = false);
 IntRect frameRectInAbsoluteCoordinates(Frame*);