diff options
author | Steve Block <steveblock@google.com> | 2009-10-28 17:07:23 +0000 |
---|---|---|
committer | Steve Block <steveblock@google.com> | 2009-10-28 17:07:23 +0000 |
commit | 0056c410d854d219916a316c7a58508d6e985c3e (patch) | |
tree | cb37a34e68d559e8389a092f2a10394ad7a5dc2f /WebCore | |
parent | 7b035dc1012763a04adddc6de25256647fea50bd (diff) | |
download | external_webkit-0056c410d854d219916a316c7a58508d6e985c3e.zip external_webkit-0056c410d854d219916a316c7a58508d6e985c3e.tar.gz external_webkit-0056c410d854d219916a316c7a58508d6e985c3e.tar.bz2 |
Fix Geolocation service to use correct signature for Location.getAltitude().
This is a fix for bug http://b/issue?id=2221243
Change-Id: Ia667b47b33c0b30eaec04b4881b61027034d0850
Diffstat (limited to 'WebCore')
-rw-r--r-- | WebCore/platform/android/GeolocationServiceAndroid.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/WebCore/platform/android/GeolocationServiceAndroid.cpp b/WebCore/platform/android/GeolocationServiceAndroid.cpp index c4e9f0e..024877e 100644 --- a/WebCore/platform/android/GeolocationServiceAndroid.cpp +++ b/WebCore/platform/android/GeolocationServiceAndroid.cpp @@ -151,7 +151,7 @@ PassRefPtr<Geoposition> GeolocationServiceBridge::convertLocationToGeoposition(J env->CallBooleanMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_HAS_ALTITUDE]); double altitude = hasAltitude ? - env->CallFloatMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_GET_ALTITUDE]) : + env->CallDoubleMethod(location, javaLocationClassMethodIDs[LOCATION_METHOD_GET_ALTITUDE]) : 0.0; // accuracy is required, but is not supplied by the emulator. double accuracy = |