[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:27:41 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit 2c734e01ea66dee59d6b2bf827a469285777f2b0
Author: abarth at webkit.org <abarth at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Aug 24 04:20:29 2010 +0000

    2010-08-23  Adam Barth  <abarth at webkit.org>
    
            Reviewed by Eric Seidel.
    
            HTMLScriptRunner::create
            https://bugs.webkit.org/show_bug.cgi?id=44474
    
            * html/HTMLDocumentParser.cpp:
            (WebCore::HTMLDocumentParser::HTMLDocumentParser):
            * html/HTMLScriptRunner.h:
            (WebCore::HTMLScriptRunner::create):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65864 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 646f611..0f756f4 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -2,6 +2,18 @@
 
         Reviewed by Eric Seidel.
 
+        HTMLScriptRunner::create
+        https://bugs.webkit.org/show_bug.cgi?id=44474
+
+        * html/HTMLDocumentParser.cpp:
+        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
+        * html/HTMLScriptRunner.h:
+        (WebCore::HTMLScriptRunner::create):
+
+2010-08-23  Adam Barth  <abarth at webkit.org>
+
+        Reviewed by Eric Seidel.
+
         HTMLTreeBuilder should use adoptPtr
         https://bugs.webkit.org/show_bug.cgi?id=44473
 
diff --git a/WebCore/html/HTMLDocumentParser.cpp b/WebCore/html/HTMLDocumentParser.cpp
index c6f8dea..95c4fe1 100644
--- a/WebCore/html/HTMLDocumentParser.cpp
+++ b/WebCore/html/HTMLDocumentParser.cpp
@@ -96,7 +96,7 @@ HTMLTokenizer::State tokenizerStateForContextElement(Element* contextElement, bo
 HTMLDocumentParser::HTMLDocumentParser(HTMLDocument* document, bool reportErrors)
     : ScriptableDocumentParser(document)
     , m_tokenizer(new HTMLTokenizer)
-    , m_scriptRunner(new HTMLScriptRunner(document, this))
+    , m_scriptRunner(HTMLScriptRunner::create(document, this))
     , m_treeBuilder(HTMLTreeBuilder::create(m_tokenizer.get(), document, reportErrors))
     , m_parserScheduler(new HTMLParserScheduler(this))
     , m_endWasDelayed(false)
diff --git a/WebCore/html/HTMLScriptRunner.h b/WebCore/html/HTMLScriptRunner.h
index 262f1a2..ead9289 100644
--- a/WebCore/html/HTMLScriptRunner.h
+++ b/WebCore/html/HTMLScriptRunner.h
@@ -42,7 +42,10 @@ class ScriptSourceCode;
 
 class HTMLScriptRunner : public Noncopyable {
 public:
-    HTMLScriptRunner(Document*, HTMLScriptRunnerHost*);
+    static PassOwnPtr<HTMLScriptRunner> create(Document* document, HTMLScriptRunnerHost* host)
+    {
+        return adoptPtr(new HTMLScriptRunner(document, host));
+    }
     ~HTMLScriptRunner();
 
     void detach();
@@ -57,6 +60,8 @@ public:
     bool isExecutingScript() const { return !!m_scriptNestingLevel; }
 
 private:
+    HTMLScriptRunner(Document*, HTMLScriptRunnerHost*);
+
     Frame* frame() const;
 
     void executeParsingBlockingScript();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list