[SCM] WebKit Debian packaging branch, webkit-1.2, updated. upstream/1.1.90-6072-g9a69373

jianli at chromium.org jianli at chromium.org
Thu Apr 8 02:06:41 UTC 2010


The following commit has been merged in the webkit-1.2 branch:
commit f2d966318ad6d4cbba4de249dfc112d65702fb11
Author: jianli at chromium.org <jianli at chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Mar 2 18:59:52 2010 +0000

    [V8] DOMCoreException should be visible as DOMException
    https://bugs.webkit.org/show_bug.cgi?id=35552
    
    Reviewed by Nate Chapin.
    
    Fix V8 code generator to use the correct visible name.
    
    * bindings/scripts/CodeGeneratorV8.pm:
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@55416 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog b/WebCore/ChangeLog
index 0528d87..dce0279 100644
--- a/WebCore/ChangeLog
+++ b/WebCore/ChangeLog
@@ -1,3 +1,14 @@
+2010-03-02  Jian Li  <jianli at chromium.org>
+
+        Reviewed by Nate Chapin.
+
+        [V8] DOMCoreException should be visible as DOMException 
+        https://bugs.webkit.org/show_bug.cgi?id=35552
+
+        Fix V8 code generator to use the correct visible name.
+
+        * bindings/scripts/CodeGeneratorV8.pm:
+
 2010-03-02  Brady Eidson  <beidson at apple.com>
 
         Reviewed by Sam Weinig.
diff --git a/WebCore/bindings/scripts/CodeGeneratorV8.pm b/WebCore/bindings/scripts/CodeGeneratorV8.pm
index 2d0c505..9d7ed4f 100644
--- a/WebCore/bindings/scripts/CodeGeneratorV8.pm
+++ b/WebCore/bindings/scripts/CodeGeneratorV8.pm
@@ -1488,6 +1488,7 @@ sub GenerateImplementation
     my $object = shift;
     my $dataNode = shift;
     my $interfaceName = $dataNode->name;
+    my $visibleInterfaceName = GetVisibleInterfaceName($interfaceName);
     my $className = "V8$interfaceName";
     my $implClassName = $interfaceName;
     my $classIndex = uc($codeGenerator->StripModule($interfaceName));
@@ -1735,7 +1736,7 @@ END
     # Generate the template configuration method
     push(@implContent,  <<END);
 static v8::Persistent<v8::FunctionTemplate> Configure${className}Template(v8::Persistent<v8::FunctionTemplate> desc) {
-  v8::Local<v8::Signature> default_signature = configureTemplate(desc, \"${interfaceName}\",
+  v8::Local<v8::Signature> default_signature = configureTemplate(desc, \"${visibleInterfaceName}\",
       $parentClassTemplate, V8${interfaceName}::internalFieldCount,
 END
     # Set up our attributes if we have them
@@ -2920,6 +2921,15 @@ sub IsSVGListTypeNeedingSpecialHandling
     return 0;
 }
 
+sub GetVisibleInterfaceName
+{
+    my $interfaceName = shift;
+
+    return "DOMException" if $interfaceName eq "DOMCoreException";
+    return "FormData" if $interfaceName eq "DOMFormData";
+    return $interfaceName;
+}
+
 sub DebugPrint
 {
     my $output = shift;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list