Changeset 74404 in webkit


Ignore:
Timestamp:
Dec 20, 2010 11:50:15 PM (13 years ago)
Author:
commit-queue@webkit.org
Message:

2010-12-20 Mahesh Kulkarni <mahesh.kulkarni@nokia.com>

Reviewed by Andreas Kling.

Qt port of geolocation, geoposition objects timestamp was in seconds
instead of miliseconds as per HTML5 Geolocation standards.
Ref: http://dev.w3.org/geo/api/spec-source.html#position_interface
http://www.w3.org/TR/DOM-Level-3-Core/core.html#Core-DOMTimeStamp

Implemented by Asheesh Srivastava.

[QT] QtWebkit geolocation's position.timestamp is not in miliseconds
https://bugs.webkit.org/show_bug.cgi?id=51100

Porting code not covered in layout testing. No new tests added.

  • platform/qt/GeolocationServiceQt.cpp: (WebCore::GeolocationServiceQt::positionUpdated):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r74401 r74404  
     12010-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
    1202010-12-20  Yuzo Fujishima  <yuzo@google.com>
    221
  • trunk/WebCore/platform/qt/GeolocationServiceQt.cpp

    r63819 r74404  
    8484                                                          accuracy, providesAltitudeAccuracy, altitudeAccuracy,
    8585                                                          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
    8793    positionChanged();
    8894}
Note: See TracChangeset for help on using the changeset viewer.