summaryrefslogtreecommitdiffstats
path: root/WebCore/loader/CachedScript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/loader/CachedScript.cpp')
-rw-r--r--WebCore/loader/CachedScript.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/WebCore/loader/CachedScript.cpp b/WebCore/loader/CachedScript.cpp
index 28e6137..466a5e9 100644
--- a/WebCore/loader/CachedScript.cpp
+++ b/WebCore/loader/CachedScript.cpp
@@ -52,7 +52,7 @@ CachedScript::~CachedScript()
void CachedScript::didAddClient(CachedResourceClient* c)
{
- if (!m_loading)
+ if (!isLoading())
c->notifyFinished(this);
}
@@ -92,13 +92,13 @@ void CachedScript::data(PassRefPtr<SharedBuffer> data, bool allDataReceived)
m_data = data;
setEncodedSize(m_data.get() ? m_data->size() : 0);
- m_loading = false;
+ setLoading(false);
checkNotify();
}
void CachedScript::checkNotify()
{
- if (m_loading)
+ if (isLoading())
return;
CachedResourceClientWalker w(m_clients);
@@ -108,8 +108,8 @@ void CachedScript::checkNotify()
void CachedScript::error()
{
- m_loading = false;
- m_errorOccurred = true;
+ setLoading(false);
+ setErrorOccurred(true);
checkNotify();
}