Commit 31430aa9 authored by abarth@webkit.org's avatar abarth@webkit.org

2010-08-24 Adam Barth <abarth@webkit.org>

        Reviewed by Eric Seidel.

        HTMLParserScheduler::create
        https://bugs.webkit.org/show_bug.cgi?id=44551

        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
        * html/HTMLParserScheduler.h:
        (WebCore::HTMLParserScheduler::create):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65973 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent e924d9c5
2010-08-24 Adam Barth <abarth@webkit.org>
Reviewed by Eric Seidel.
HTMLParserScheduler::create
https://bugs.webkit.org/show_bug.cgi?id=44551
* html/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::HTMLDocumentParser):
* html/HTMLParserScheduler.h:
(WebCore::HTMLParserScheduler::create):
2010-08-24 Daniel Bates <dbates@rim.com>
Fix code comment as per Darin Adler's suggestion in <https://bugs.webkit.org/show_bug.cgi?id=44486#c2>.
......@@ -98,7 +98,7 @@ HTMLDocumentParser::HTMLDocumentParser(HTMLDocument* document, bool reportErrors
, m_tokenizer(HTMLTokenizer::create())
, m_scriptRunner(HTMLScriptRunner::create(document, this))
, m_treeBuilder(HTMLTreeBuilder::create(m_tokenizer.get(), document, reportErrors))
, m_parserScheduler(new HTMLParserScheduler(this))
, m_parserScheduler(HTMLParserScheduler::create(this))
, m_endWasDelayed(false)
, m_writeNestingLevel(0)
{
......
......@@ -29,6 +29,7 @@
#include "Timer.h"
#include <wtf/CurrentTime.h>
#include <wtf/Noncopyable.h>
#include <wtf/PassOwnPtr.h>
namespace WebCore {
......@@ -36,7 +37,10 @@ class HTMLDocumentParser;
class HTMLParserScheduler : public Noncopyable {
public:
HTMLParserScheduler(HTMLDocumentParser*);
static PassOwnPtr<HTMLParserScheduler> create(HTMLDocumentParser* parser)
{
return adoptPtr(new HTMLParserScheduler(parser));
}
~HTMLParserScheduler();
struct PumpSession {
......@@ -70,6 +74,8 @@ public:
bool isScheduledForResume() const { return m_continueNextChunkTimer.isActive(); }
private:
HTMLParserScheduler(HTMLDocumentParser*);
void continueNextChunkTimerFired(Timer<HTMLParserScheduler>*);
HTMLDocumentParser* m_parser;
......
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