Changeset 56726 in webkit
- Timestamp:
- Mar 29, 2010 9:56:02 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r56724 r56726 1 2010-03-29 Marcus Bulach <bulach@chromium.org> 2 3 Reviewed by Jeremy Orlow. 4 5 https://bugs.webkit.org/show_bug.cgi?id=36315 6 7 Remove obsolete Geolocation::m_currentPosition 8 (follow up on https://bugs.webkit.org/show_bug.cgi?id=30676) 9 10 * page/Geolocation.cpp: 11 (WebCore::Geolocation::positionChanged): 12 (WebCore::Geolocation::makeSuccessCallbacks): 13 * page/Geolocation.h: 14 * platform/chromium/GeolocationServiceChromium.cpp: 15 (WebCore::GeolocationServiceChromium::GeolocationServiceChromium): 16 1 17 2010-03-29 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 18 -
trunk/WebCore/page/Geolocation.cpp
r56188 r56726 522 522 void Geolocation::positionChanged(PassRefPtr<Geoposition> newPosition) 523 523 { 524 m_currentPosition = newPosition; 525 526 m_positionCache->setCachedPosition(m_currentPosition.get()); 524 m_positionCache->setCachedPosition(newPosition.get()); 527 525 528 526 // Stop all currently running timers. … … 543 541 void Geolocation::makeSuccessCallbacks() 544 542 { 545 ASSERT( m_currentPosition);543 ASSERT(lastPosition()); 546 544 ASSERT(isAllowed()); 547 545 … … 557 555 m_oneShots.clear(); 558 556 559 sendPosition(oneShotsCopy, m_currentPosition.get());560 sendPosition(watchersCopy, m_currentPosition.get());557 sendPosition(oneShotsCopy, lastPosition()); 558 sendPosition(watchersCopy, lastPosition()); 561 559 562 560 if (!hasListeners()) -
trunk/WebCore/page/Geolocation.h
r56194 r56726 163 163 #endif 164 164 RefPtr<Geoposition> m_lastPosition; 165 RefPtr<Geoposition> m_currentPosition;166 165 167 166 enum { -
trunk/WebCore/platform/chromium/GeolocationServiceChromium.cpp
r54890 r56726 40 40 m_geolocation(reinterpret_cast<Geolocation*>(c)), 41 41 m_geolocationServiceBridge(ChromiumBridge::createGeolocationServiceBridge(this)), 42 m_lastPosition(Geoposition::create(Coordinates::create(0.0, 0.0, false, 0.0, 0.0, false, 0.0, false, 0.0, false, 0.0), 0)),43 42 m_lastError(PositionError::create(PositionError::POSITION_UNAVAILABLE, "")) 44 43 {
Note: See TracChangeset
for help on using the changeset viewer.