Commit 5de69cdc authored by mrowe@apple.com's avatar mrowe@apple.com

2008-06-22 David Krause <david.krause@gmail.com>

        Reviewed by Darin Adler.

        Fix https://bugs.webkit.org/show_bug.cgi?id=19426
        Bug 19426: LOW_BANDWIDTH_DISPLAY build broken

        Change ref to addClient and deref to removeClient in code wrapped
        by USE(LOW_BANDWIDTH_DISPLAY) to match changes in r31834.

        * loader/FrameLoader.cpp:
        (WebCore::FrameLoader::addLowBandwidthDisplayRequest):
        (WebCore::FrameLoader::removeAllLowBandwidthDisplayRequests):
        (WebCore::FrameLoader::notifyFinished):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 7414a7cd
2008-06-22 David Krause <david.krause@gmail.com>
Reviewed by Darin Adler.
Fix https://bugs.webkit.org/show_bug.cgi?id=19426
Bug 19426: LOW_BANDWIDTH_DISPLAY build broken
Change ref to addClient and deref to removeClient in code wrapped
by USE(LOW_BANDWIDTH_DISPLAY) to match changes in r31834.
* loader/FrameLoader.cpp:
(WebCore::FrameLoader::addLowBandwidthDisplayRequest):
(WebCore::FrameLoader::removeAllLowBandwidthDisplayRequests):
(WebCore::FrameLoader::notifyFinished):
2008-06-22 Robert Blaut <webkit@blaut.biz>
Reviewed by Darin Adler.
......@@ -4929,7 +4929,7 @@ bool FrameLoader::addLowBandwidthDisplayRequest(CachedResource* cache)
case CachedResource::Script:
m_needToSwitchOutLowBandwidthDisplay = true;
m_externalRequestsInLowBandwidthDisplay.add(cache);
cache->ref(this);
cache->addClient(this);
return true;
case CachedResource::ImageResource:
case CachedResource::FontResource:
......@@ -4950,7 +4950,7 @@ void FrameLoader::removeAllLowBandwidthDisplayRequests()
{
HashSet<CachedResource*>::iterator end = m_externalRequestsInLowBandwidthDisplay.end();
for (HashSet<CachedResource*>::iterator it = m_externalRequestsInLowBandwidthDisplay.begin(); it != end; ++it)
(*it)->deref(this);
(*it)->removeClient(this);
m_externalRequestsInLowBandwidthDisplay.clear();
}
......@@ -4958,7 +4958,7 @@ void FrameLoader::notifyFinished(CachedResource* script)
{
HashSet<CachedResource*>::iterator it = m_externalRequestsInLowBandwidthDisplay.find(script);
if (it != m_externalRequestsInLowBandwidthDisplay.end()) {
(*it)->deref(this);
(*it)->removeClient(this);
m_externalRequestsInLowBandwidthDisplay.remove(it);
switchOutLowBandwidthDisplayIfReady();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment