[SCM] WebKit Debian packaging branch, webkit-1.1, updated. upstream/1.1.15.1-1414-gc69ee75

eric at webkit.org eric at webkit.org
Thu Oct 29 20:46:17 UTC 2009


The following commit has been merged in the webkit-1.1 branch:
commit e2d9c3e01786be6cf24b5c6fcb95ba641763f04b
Author: eric at webkit.org <eric at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Fri Oct 16 21:21:44 2009 +0000

    2009-10-16  Andrew Scherkus  <scherkus at chromium.org>
    
            Reviewed by Eric Carlson.
    
            Set autobuffer to true and schedule load in V8 audio element constructor.
    
            https://bugs.webkit.org/show_bug.cgi?id=30448
    
            Covered by existing tests.
    
            * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
            (WebCore::CALLBACK_FUNC_DECL): Set autobuffer to true and schedule load.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@49698 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index ea73661..0a54e1b 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,5 +1,18 @@
 2009-10-16  Andrew Scherkus  <scherkus at chromium.org>
 
+        Reviewed by Eric Carlson.
+
+        Set autobuffer to true and schedule load in V8 audio element constructor.
+
+        https://bugs.webkit.org/show_bug.cgi?id=30448
+
+        Covered by existing tests.
+
+        * bindings/v8/custom/V8HTMLAudioElementConstructor.cpp:
+        (WebCore::CALLBACK_FUNC_DECL): Set autobuffer to true and schedule load.
+
+2009-10-16  Andrew Scherkus  <scherkus at chromium.org>
+
         Reviewed by Eric Seidel.
 
         Remove FIXME in RenderMediaControlsChromium as bug was fixed upstream.
diff --git a/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp b/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp
index c735c49..c82d88a 100644
--- a/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp
+++ b/WebCore/bindings/v8/custom/V8HTMLAudioElementConstructor.cpp
@@ -81,8 +81,11 @@ CALLBACK_FUNC_DECL(HTMLAudioElementConstructor)
     V8DOMWrapper::convertNodeToV8Object(document);
 
     RefPtr<HTMLAudioElement> audio = new HTMLAudioElement(HTMLNames::audioTag, document);
-    if (args.Length() > 0)
+    audio->setAutobuffer(true);
+    if (args.Length() > 0) {
         audio->setSrc(toWebCoreString(args[0]));
+        audio->scheduleLoad();
+    }
 
     V8DOMWrapper::setDOMWrapper(args.Holder(), V8ClassIndex::ToInt(V8ClassIndex::NODE), audio.get());
     audio->ref();

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list