Changeset 56726 in webkit


Ignore:
Timestamp:
Mar 29, 2010 9:56:02 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-03-29 Marcus Bulach <bulach@chromium.org>

Reviewed by Jeremy Orlow.

https://bugs.webkit.org/show_bug.cgi?id=36315

Remove obsolete Geolocation::m_currentPosition
(follow up on https://bugs.webkit.org/show_bug.cgi?id=30676)

  • page/Geolocation.cpp: (WebCore::Geolocation::positionChanged): (WebCore::Geolocation::makeSuccessCallbacks):
  • page/Geolocation.h:
  • platform/chromium/GeolocationServiceChromium.cpp: (WebCore::GeolocationServiceChromium::GeolocationServiceChromium):
Location:
trunk/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r56724 r56726  
     12010-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
    1172010-03-29  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    218
  • trunk/WebCore/page/Geolocation.cpp

    r56188 r56726  
    522522void Geolocation::positionChanged(PassRefPtr<Geoposition> newPosition)
    523523{
    524     m_currentPosition = newPosition;
    525 
    526     m_positionCache->setCachedPosition(m_currentPosition.get());
     524    m_positionCache->setCachedPosition(newPosition.get());
    527525
    528526    // Stop all currently running timers.
     
    543541void Geolocation::makeSuccessCallbacks()
    544542{
    545     ASSERT(m_currentPosition);
     543    ASSERT(lastPosition());
    546544    ASSERT(isAllowed());
    547545   
     
    557555    m_oneShots.clear();
    558556
    559     sendPosition(oneShotsCopy, m_currentPosition.get());
    560     sendPosition(watchersCopy, m_currentPosition.get());
     557    sendPosition(oneShotsCopy, lastPosition());
     558    sendPosition(watchersCopy, lastPosition());
    561559
    562560    if (!hasListeners())
  • trunk/WebCore/page/Geolocation.h

    r56194 r56726  
    163163#endif
    164164    RefPtr<Geoposition> m_lastPosition;
    165     RefPtr<Geoposition> m_currentPosition;
    166165
    167166    enum {
  • trunk/WebCore/platform/chromium/GeolocationServiceChromium.cpp

    r54890 r56726  
    4040          m_geolocation(reinterpret_cast<Geolocation*>(c)),
    4141          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)),
    4342          m_lastError(PositionError::create(PositionError::POSITION_UNAVAILABLE, ""))
    4443{
Note: See TracChangeset for help on using the changeset viewer.