Changeset 72211 in webkit
- Timestamp:
- Nov 17, 2010 9:08:31 AM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r72210 r72211 1 2010-11-17 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 Add a layout test to check that Geoposition timestamps are 6 well-formed. See https://bugs.webkit.org/show_bug.cgi?id=48518 7 8 * fast/dom/Geolocation/script-tests/timestamp.js: Added. 9 (checkPosition): 10 * fast/dom/Geolocation/timestamp-expected.txt: Added. 11 * fast/dom/Geolocation/timestamp.html: Added. 12 1 13 2010-11-17 Chang Shu <chang.shu@nokia.com> 2 14 -
trunk/WebCore/ChangeLog
r72210 r72211 1 2010-11-17 John Knottenbelt <jknotten@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 Convert correctly between GeolocationPosition and Geoposition 6 timestamp formats. 7 https://bugs.webkit.org/show_bug.cgi?id=48518 8 9 Test: fast/dom/Geolocation/timestamp.html 10 11 * page/Geolocation.cpp: 12 (WebCore::createGeoposition): 13 1 14 2010-11-17 Chang Shu <chang.shu@nokia.com> 2 15 -
trunk/WebCore/page/Geolocation.cpp
r71602 r72211 62 62 position->accuracy(), position->canProvideAltitudeAccuracy(), position->altitudeAccuracy(), 63 63 position->canProvideHeading(), position->heading(), position->canProvideSpeed(), position->speed()); 64 return Geoposition::create(coordinates.release(), position->timestamp());64 return Geoposition::create(coordinates.release(), convertSecondsToDOMTimeStamp(position->timestamp())); 65 65 } 66 66 -
trunk/WebKitTools/DumpRenderTree/mac/LayoutTestControllerMac.mm
r72146 r72211 71 71 #import <WebKit/WebViewPrivate.h> 72 72 #import <WebKit/WebWorkersPrivate.h> 73 #import <wtf/CurrentTime.h> 73 74 #import <wtf/HashMap.h> 74 75 #import <wtf/RetainPtr.h> … … 354 355 void LayoutTestController::setMockGeolocationPosition(double latitude, double longitude, double accuracy) 355 356 { 356 WebGeolocationPosition *position = [[WebGeolocationPosition alloc] initWithTimestamp: 0latitude:latitude longitude:longitude accuracy:accuracy];357 WebGeolocationPosition *position = [[WebGeolocationPosition alloc] initWithTimestamp:currentTime() latitude:latitude longitude:longitude accuracy:accuracy]; 357 358 [[MockGeolocationProvider shared] setPosition:position]; 358 359 [position release];
Note: See TracChangeset
for help on using the changeset viewer.