Commit d58280c4 authored by andersca's avatar andersca

Reviewed by Oliver.

        <rdar://problem/5336276>
        ASSERT(cs->accessCount() > 0) when instantiating widget templates in DashCode

        If the cache is disabled, accessCount will always be 0. Account for this in the assert.
        
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::reset):
        (WebCore::HTMLTokenizer::notifyFinished):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bad2b6fd
2007-07-16 Anders Carlsson <andersca@apple.com>
Reviewed by Oliver.
<rdar://problem/5336276>
ASSERT(cs->accessCount() > 0) when instantiating widget templates in DashCode
If the cache is disabled, accessCount will always be 0. Account for this in the assert.
* html/HTMLTokenizer.cpp:
(WebCore::HTMLTokenizer::reset):
(WebCore::HTMLTokenizer::notifyFinished):
2007-07-16 Brady Eidson <beidson@apple.com>
Reviewed by Darin
Reviewed by Darin.
Append FTP row entries to the first TBODY instead of the TABLE element itself,
as many TABLE elements end up with an implicit TBODY and that's where most people would
......@@ -29,6 +29,7 @@
#include "config.h"
#include "HTMLTokenizer.h"
#include "Cache.h"
#include "CachedScript.h"
#include "DocLoader.h"
#include "DocumentFragment.h"
......@@ -200,7 +201,7 @@ void HTMLTokenizer::reset()
while (!pendingScripts.isEmpty()) {
CachedScript *cs = pendingScripts.dequeue();
ASSERT(cs->accessCount() > 0);
ASSERT(cache()->disabled() || cs->accessCount() > 0);
cs->deref(this);
}
......@@ -1685,7 +1686,7 @@ void HTMLTokenizer::notifyFinished(CachedResource*)
kdDebug( 6036 ) << "Finished loading an external script" << endl;
#endif
CachedScript* cs = pendingScripts.dequeue();
ASSERT(cs->accessCount() > 0);
ASSERT(cache()->disabled() || cs->accessCount() > 0);
String scriptSource = cs->script();
#ifdef TOKEN_DEBUG
......
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