Changeset 31300 in webkit


Ignore:
Timestamp:
Mar 25, 2008 4:43:29 PM (16 years ago)
Author:
kmccullough@apple.com
Message:

2008-03-25 Kevin McCullough <kmccullough@apple.com>

Reviewed by Adam.

  • Cleaned up the needless use of RefPtrs, which we may someday no longer use for InspectorResources.
  • page/InspectorController.cpp: (WebCore::InspectorController::didFinishLoading): (WebCore::InspectorController::didFailLoading):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r31299 r31300  
     12008-03-25  Kevin McCullough  <kmccullough@apple.com>
     2
     3        Reviewed by Adam.
     4
     5        - Cleaned up the needless use of RefPtrs, which we may someday no longer use for
     6        InspectorResources.
     7
     8        * page/InspectorController.cpp:
     9        (WebCore::InspectorController::didFinishLoading):
     10        (WebCore::InspectorController::didFailLoading):
     11
    1122008-03-25  Kevin McCullough  <kmccullough@apple.com>
    213
  • trunk/WebCore/page/InspectorController.cpp

    r31298 r31300  
    15751575        return;
    15761576
    1577     RefPtr<InspectorResource> resource = m_resources.get(identifier);
     1577    InspectorResource* resource = m_resources.get(identifier).get();
    15781578    if (!resource)
    15791579        return;
    15801580
    1581     removeResource(resource.get());
     1581    removeResource(resource);
    15821582
    15831583    resource->finished = true;
    15841584    resource->endTime = currentTime();
    15851585
    1586     addResource(resource.get());
     1586    addResource(resource);
    15871587
    15881588    if (windowVisible() && resource->scriptObject) {
    1589         updateScriptResource(resource.get(), resource->startTime, resource->responseReceivedTime, resource->endTime);
    1590         updateScriptResource(resource.get(), resource->finished);
     1589        updateScriptResource(resource, resource->startTime, resource->responseReceivedTime, resource->endTime);
     1590        updateScriptResource(resource, resource->finished);
    15911591    }
    15921592}
     
    15971597        return;
    15981598
    1599     RefPtr<InspectorResource> resource = m_resources.get(identifier);
     1599    InspectorResource* resource = m_resources.get(identifier).get();
    16001600    if (!resource)
    16011601        return;
    16021602
    1603     removeResource(resource.get());
     1603    removeResource(resource);
    16041604
    16051605    resource->finished = true;
     
    16071607    resource->endTime = currentTime();
    16081608
    1609     addResource(resource.get());
     1609    addResource(resource);
    16101610
    16111611    if (windowVisible() && resource->scriptObject) {
    1612         updateScriptResource(resource.get(), resource->startTime, resource->responseReceivedTime, resource->endTime);
    1613         updateScriptResource(resource.get(), resource->finished, resource->failed);
     1612        updateScriptResource(resource, resource->startTime, resource->responseReceivedTime, resource->endTime);
     1613        updateScriptResource(resource, resource->finished, resource->failed);
    16141614    }
    16151615}
Note: See TracChangeset for help on using the changeset viewer.