[SCM] WebKit Debian packaging branch, debian/experimental, updated. upstream/1.3.3-9427-gc2be6fc

abarth at webkit.org abarth at webkit.org
Wed Dec 22 12:32:09 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 31430aa901b2c281a80830ef07752698a3835a34
Author: abarth at webkit.org <abarth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Wed Aug 25 04:20:46 2010 +0000

    2010-08-24  Adam Barth  <abarth at 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

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 66616e3..0d1dfae 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,15 @@
+2010-08-24  Adam Barth  <abarth at 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 at rim.com>
 
         Fix code comment as per Darin Adler's suggestion in <https://bugs.webkit.org/show_bug.cgi?id=44486#c2>.
diff --git a/WebCore/html/HTMLDocumentParser.cpp b/WebCore/html/HTMLDocumentParser.cpp
index e6e9488..207bd3e 100644
--- a/WebCore/html/HTMLDocumentParser.cpp
+++ b/WebCore/html/HTMLDocumentParser.cpp
@@ -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)
 {
diff --git a/WebCore/html/HTMLParserScheduler.h b/WebCore/html/HTMLParserScheduler.h
index 1ea2c65..5be33b0 100644
--- a/WebCore/html/HTMLParserScheduler.h
+++ b/WebCore/html/HTMLParserScheduler.h
@@ -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;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list