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

abecsi at webkit.org abecsi at webkit.org
Wed Dec 22 17:48:46 UTC 2010


The following commit has been merged in the debian/experimental branch:
commit b365b3be6ba5a269b8a0dd7ffaf0c6dca594ad11
Author: abecsi at webkit.org <abecsi at webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Nov 30 19:57:02 2010 +0000

    2010-11-30  Andras Becsi  <abecsi at webkit.org>
    
            Reviewed by Csaba Osztrogonác.
    
            [Qt][V8] Make QtWebKit with V8 build on Linux.
            https://bugs.webkit.org/show_bug.cgi?id=50244
    
            No new tests needed.
    
            * WebCore.pri: add missing idl file
            * WebCore.pro: enable Linux build
            * bindings/scripts/CodeGeneratorV8.pm: add missing headers
            * bindings/v8/ScriptControllerQt.cpp: fix instantiation
            (WebCore::ScriptController::qtScriptEngine):
            * bindings/v8/V8GCController.cpp: fix guard
            (WebCore::V8GCController::checkMemoryUsage):
            * inspector/CodeGeneratorInspector.pm: add missing header
            * loader/ResourceLoadScheduler.cpp: ditto
            * loader/cache/MemoryCache.cpp: ditto
            * loader/loader.cpp: ditto
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@72948 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index c69ae24..1bb9010 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,24 @@
+2010-11-30  Andras Becsi  <abecsi at webkit.org>
+
+        Reviewed by Csaba Osztrogonác.
+
+        [Qt][V8] Make QtWebKit with V8 build on Linux.
+        https://bugs.webkit.org/show_bug.cgi?id=50244
+
+        No new tests needed.
+
+        * WebCore.pri: add missing idl file
+        * WebCore.pro: enable Linux build
+        * bindings/scripts/CodeGeneratorV8.pm: add missing headers
+        * bindings/v8/ScriptControllerQt.cpp: fix instantiation
+        (WebCore::ScriptController::qtScriptEngine):
+        * bindings/v8/V8GCController.cpp: fix guard
+        (WebCore::V8GCController::checkMemoryUsage):
+        * inspector/CodeGeneratorInspector.pm: add missing header
+        * loader/ResourceLoadScheduler.cpp: ditto
+        * loader/cache/MemoryCache.cpp: ditto
+        * loader/loader.cpp: ditto
+
 2010-11-30  David Hyatt  <hyatt at apple.com>
 
         Reviewed by Simon Fraser.
diff --git a/WebCore/WebCore.pri b/WebCore/WebCore.pri
index 5043188..adcf3dd 100644
--- a/WebCore/WebCore.pri
+++ b/WebCore/WebCore.pri
@@ -172,6 +172,7 @@ IDL_BINDINGS += \
     fileapi/FileEntry.idl \
     fileapi/FileEntrySync.idl \
     fileapi/FileError.idl \
+    fileapi/FileException.idl \
     fileapi/FileList.idl \
     fileapi/FileReader.idl \
     fileapi/FileSystemCallback.idl \
diff --git a/WebCore/WebCore.pro b/WebCore/WebCore.pro
index 193df80..df2cc71 100644
--- a/WebCore/WebCore.pro
+++ b/WebCore/WebCore.pro
@@ -2,15 +2,19 @@
 CONFIG += building-libs
 CONFIG += depend_includepath
 
-v8:exists($$[QT_INSTALL_PREFIX]/src/3rdparty/v8/include/v8.h) {
+V8_DIR = "$$[QT_INSTALL_PREFIX]/src/3rdparty/v8"
+
+v8:exists($${V8_DIR}/include/v8.h) {
     message(Using V8 with QtScript)
     QT += script
-    INCLUDEPATH += $$[QT_INSTALL_PREFIX]/src/3rdparty/v8/include
+    INCLUDEPATH += $${V8_DIR}/include
 
     DEFINES *= V8_BINDING=1
     DEFINES += WTF_CHANGES=1
     DEFINES *= WTF_USE_V8=1
     DEFINES += USING_V8_SHARED
+
+    linux-*:LIBS += -lv8
 }
 
 symbian: {
diff --git a/WebCore/bindings/scripts/CodeGeneratorV8.pm b/WebCore/bindings/scripts/CodeGeneratorV8.pm
index 97665cc..cd975a9 100644
--- a/WebCore/bindings/scripts/CodeGeneratorV8.pm
+++ b/WebCore/bindings/scripts/CodeGeneratorV8.pm
@@ -1,4 +1,3 @@
-
 # Copyright (C) 2005, 2006 Nikolas Zimmermann <zimmermann at kde.org>
 # Copyright (C) 2006 Anders Carlsson <andersca at mac.com>
 # Copyright (C) 2006 Samuel Weinig <sam.weinig at gmail.com>
@@ -39,6 +38,7 @@ my @implFixedHeader = ();
 my @implContent = ();
 my @implContentDecls = ();
 my %implIncludes = ();
+my %headerIncludes = ();
 
 my @allParents = ();
 
@@ -204,8 +204,11 @@ sub GetSVGPropertyTypes
         $implIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
     } elsif ($svgNativeType =~ /SVGTransformListPropertyTearOff/) {
         $svgListPropertyType = $svgWrappedNativeType;
-        $implIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
-        $implIncludes{"SVGTransformListPropertyTearOff.h"} = 1;
+        $headerIncludes{"SVGAnimatedListPropertyTearOff.h"} = 1;
+        $headerIncludes{"SVGTransformListPropertyTearOff.h"} = 1;
+    } elsif ($svgNativeType =~ /SVGPathSegListPropertyTearOff/) {
+        $svgListPropertyType = $svgWrappedNativeType;
+        $headerIncludes{"SVGPathSegListPropertyTearOff.h"} = 1;
     }
 
     if ($svgPropertyType) {
@@ -233,7 +236,6 @@ sub GenerateHeader
     # - Add default header template
     push(@headerContent, GenerateHeaderContentHeader($dataNode));
 
-    my %headerInclues = ();
     $headerIncludes{"wtf/text/StringHash.h"} = 1;
     $headerIncludes{"WrapperTypeInfo.h"} = 1;
     $headerIncludes{"V8DOMWrapper.h"} = 1;
@@ -249,7 +251,7 @@ sub GenerateHeader
 
     push(@headerContent, "#include <v8.h>\n");
     push(@headerContent, "#include <wtf/HashMap.h>\n");
-    
+
     push(@headerContent, "\nnamespace WebCore {\n");
     push(@headerContent, "\ntemplate<typename PropertyType> class SVGPropertyTearOff;\n") if $svgPropertyType;
     if ($svgNativeType) {
diff --git a/WebCore/bindings/v8/ScriptControllerQt.cpp b/WebCore/bindings/v8/ScriptControllerQt.cpp
index 246921e..11bcb01 100644
--- a/WebCore/bindings/v8/ScriptControllerQt.cpp
+++ b/WebCore/bindings/v8/ScriptControllerQt.cpp
@@ -40,7 +40,7 @@ QScriptEngine* ScriptController::qtScriptEngine()
         v8::Context::Scope scope(v8Context);
         if (v8Context.IsEmpty())
             return 0;
-        m_qtScriptEngine = new QScriptEngine(QScriptEngine::AdoptCurrentContext);
+        m_qtScriptEngine = new QScriptEngine;
      }
      return m_qtScriptEngine.get();
 }
diff --git a/WebCore/bindings/v8/V8GCController.cpp b/WebCore/bindings/v8/V8GCController.cpp
index b26882b..3eeacec 100644
--- a/WebCore/bindings/v8/V8GCController.cpp
+++ b/WebCore/bindings/v8/V8GCController.cpp
@@ -444,7 +444,7 @@ void V8GCController::gcEpilogue()
 
 void V8GCController::checkMemoryUsage()
 {
-#if PLATFORM(CHROMIUM)
+#if PLATFORM(CHROMIUM) || PLATFORM(QT) && !OS(SYMBIAN)
     // These values are appropriate for Chromium only.
     const int lowUsageMB = 256;  // If memory usage is below this threshold, do not bother forcing GC.
     const int highUsageMB = 1024;  // If memory usage is above this threshold, force GC more aggresively.
diff --git a/WebCore/inspector/CodeGeneratorInspector.pm b/WebCore/inspector/CodeGeneratorInspector.pm
index 8a3654d..177ca3b 100644
--- a/WebCore/inspector/CodeGeneratorInspector.pm
+++ b/WebCore/inspector/CodeGeneratorInspector.pm
@@ -669,6 +669,7 @@ sub generateSource
     push(@sourceContent, "\n#include \"config.h\"");
     push(@sourceContent, "#include \"$className.h\"");
     push(@sourceContent, "#include <wtf/text/StringConcatenate.h>");
+    push(@sourceContent, "#include <wtf/text/CString.h>");
     push(@sourceContent, "");
     push(@sourceContent, "#if ENABLE(INSPECTOR)");
     push(@sourceContent, "");
diff --git a/WebCore/loader/ResourceLoadScheduler.cpp b/WebCore/loader/ResourceLoadScheduler.cpp
index 65d766b..7c50dc1 100644
--- a/WebCore/loader/ResourceLoadScheduler.cpp
+++ b/WebCore/loader/ResourceLoadScheduler.cpp
@@ -35,6 +35,7 @@
 #include "ResourceLoader.h"
 #include "ResourceRequest.h"
 #include "SubresourceLoader.h"
+#include <wtf/text/CString.h>
 
 #define REQUEST_MANAGEMENT_ENABLED 1
 
diff --git a/WebCore/loader/cache/MemoryCache.cpp b/WebCore/loader/cache/MemoryCache.cpp
index 2f45b5d..ae8e53a 100644
--- a/WebCore/loader/cache/MemoryCache.cpp
+++ b/WebCore/loader/cache/MemoryCache.cpp
@@ -39,6 +39,7 @@
 #include "SecurityOrigin.h"
 #include <stdio.h>
 #include <wtf/CurrentTime.h>
+#include <wtf/text/CString.h>
 
 using namespace std;
 
diff --git a/WebCore/loader/loader.cpp b/WebCore/loader/loader.cpp
index af4d7c7..1f2ced3 100644
--- a/WebCore/loader/loader.cpp
+++ b/WebCore/loader/loader.cpp
@@ -39,6 +39,7 @@
 #include "SharedBuffer.h"
 #include <wtf/Assertions.h>
 #include <wtf/Vector.h>
+#include <wtf/text/CString.h>
 
 namespace WebCore {
 

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list