Skip to content
Permalink
Browse files
Unreviewed attempt to fix Windows build.
* page/SpatialNavigation.cpp:
(WebCore::spatialDistance):

Canonical link: https://commits.webkit.org/46849@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@55552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
Antonio Gomes committed Mar 4, 2010
1 parent b20df2a commit 44598e4d0d81f2e2da1c8496798c25ec863674f5
Showing 2 changed files with 12 additions and 1 deletion.
@@ -1,3 +1,10 @@
2010-03-04 Antonio Gomes <tonikitoo@webkit.org>

Unreviewed attempt to fix Windows build.

* page/SpatialNavigation.cpp:
(WebCore::spatialDistance):

2010-03-04 Simon Fraser <simon.fraser@apple.com>

Build fix.
@@ -386,7 +386,11 @@ static long long spatialDistance(FocusDirection direction, const IntRect& a, con
long long dy = y1 - y2;

long long distance = (dx * dx) + (dy * dy);
return abs(distance);

if (distance < 0)
distance *= -1;

return distance;
}

static bool isRectInDirection(FocusDirection direction, const IntRect& curRect, const IntRect& targetRect)

0 comments on commit 44598e4

Please sign in to comment.