Changeset 74404 in webkit
- Timestamp:
- Dec 20, 2010 11:50:15 PM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74401 r74404 1 2010-12-20 Mahesh Kulkarni <mahesh.kulkarni@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 Qt port of geolocation, geoposition objects timestamp was in seconds 6 instead of miliseconds as per HTML5 Geolocation standards. 7 Ref: http://dev.w3.org/geo/api/spec-source.html#position_interface 8 http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp 9 10 Implemented by Asheesh Srivastava. 11 12 [QT] QtWebkit geolocation's position.timestamp is not in miliseconds 13 https://bugs.webkit.org/show_bug.cgi?id=51100 14 15 Porting code not covered in layout testing. No new tests added. 16 17 * platform/qt/GeolocationServiceQt.cpp: 18 (WebCore::GeolocationServiceQt::positionUpdated): 19 1 20 2010-12-20 Yuzo Fujishima <yuzo@google.com> 2 21 -
trunk/WebCore/platform/qt/GeolocationServiceQt.cpp
r63819 r74404 84 84 accuracy, providesAltitudeAccuracy, altitudeAccuracy, 85 85 providesHeading, heading, providesSpeed, speed); 86 m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toTime_t()); 86 87 #if QT_VERSION >= QT_VERSION_CHECK(4, 7, 0) 88 m_lastPosition = Geoposition::create(coordinates.release(), geoPosition.timestamp().toMSecsSinceEpoch()); 89 #else 90 QDateTime timestamp = geoPosition.timestamp(); 91 m_lastPosition = Geoposition::create(coordinates.release(), (timestamp.toTime_t() * 1000.00) + timestamp.time().msec()); 92 #endif 87 93 positionChanged(); 88 94 }
Note: See TracChangeset
for help on using the changeset viewer.