Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1113)

Unified Diff: Source/core/page/SpatialNavigation.h

Issue 773203005: spatnav: Change the data type of distance from long long to double (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 2nd patch Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/SpatialNavigation.h
diff --git a/Source/core/page/SpatialNavigation.h b/Source/core/page/SpatialNavigation.h
index 46851685c5b062be0be014db67a4db37f137440a..c4a5cfb46bce776ced83383ade66fd175b5e0d86 100644
--- a/Source/core/page/SpatialNavigation.h
+++ b/Source/core/page/SpatialNavigation.h
@@ -33,9 +33,9 @@ class LocalFrame;
class HTMLAreaElement;
class HTMLFrameOwnerElement;
-inline long long maxDistance()
+inline double maxDistance()
{
- return std::numeric_limits<long long>::max();
+ return std::numeric_limits<double>::max();
}
inline int fudgeFactor()
@@ -121,7 +121,7 @@ public:
RawPtrWillBeMember<Node> visibleNode;
RawPtrWillBeMember<Node> focusableNode;
RawPtrWillBeMember<Node> enclosingScrollableBox;
- long long distance;
+ double distance;
RectsAlignment alignment;
LayoutRect rect;
bool isOffscreen;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698