Another round of refinement. Ready to go now, but looks like I'm going to have to...
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Mar 2006 01:01:37 +0000 (01:01 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 20 Mar 2006 01:01:37 +0000 (01:01 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13392 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/Scripts/do-webcore-rename

index 339b102185adf54b2aa101f8ef75f5dac120b385..8f10a0373807bec16b90341f69f571de1be5815a 100755 (executable)
@@ -88,6 +88,7 @@ my %exceptions = (
 my %otherRenames = (
     "MouseEvent" => "PlatformMouseEvent",
     "WheelEvent" => "PlatformWheelEvent",
+    "KeyEvent" => "PlatformKeyboardEvent",
     "XSLTProcessor" => "JSXSLTProcessor",
     "_History" => "History_",
     "_Location" => "Location_",
@@ -141,10 +142,10 @@ my %otherRenames = (
     "KWQValueList" => "DeprecatedValueList",
     "QValueList" => "DeprecatedValueList",
     "QString" => "DeprecatedString",
+    "qstring" => "deprecatedString",
     "QCString" => "DeprecatedCString",
     "Array" => "DeprecatedArray",
     "ByteArray" => "DeprecatedByteArray",
-    "KURL" => "DeprecatedURL",
     "QStringList" => "DeprecatedStringList",
     "KWQPtrList" => "DeprecatedPtrList",
     "QPtrList" => "DeprecatedPtrList",
@@ -182,7 +183,7 @@ my %otherRenames = (
     "css_grammar" => "CSSGrammar",
     "css_computedstyle" => "CSSComputedStyleDeclaration",
     "cssproperties" => "CSSPropertyNames",
-    "cssvalues" => "CSSValueStrings",
+    "cssvalues" => "CSSValueKeywords",
     "KSVGCSSParser" => "SVGCSSParser",
     "dispatchKHTMLEditableContentChanged" => "dispatchEditableContentChangedEvent",
     "khtmlMousePressEvent" => "handleMousePressEvent",
@@ -253,7 +254,7 @@ for my $file (sort @paths) {
             $newContents =~ s/\#define DOMStringImpl StringImpl\n//;
             $newContents =~ s/\bDOMString\b/String/g;
             $newContents =~ s/\bDOMStringImpl\b/StringImpl/g;
-            $newContents =~ s/\#define String String\n/#define DOMString String\n#define QString DeprecatedString\n/;
+            $newContents =~ s/\#define String String\n/#define DOMString String\n#define QString DeprecatedString\n#define qstring() deprecatedString()\n/;
         }
     }
 
@@ -291,10 +292,10 @@ for my $file (sort @paths) {
 
     $newContents =~ s/XMLHttpRequest, XMLSerializer, JSDOMParser, JSXSLTProcessor/XMLHttpRequest, XMLSerializer, DOMParser_, XSLTProcessor_/;
 
-    $newContents =~ s/JSDOMParser (\s*Window::)JSDOMParser /DOMParser_$1DOMParser_/;
+    $newContents =~ s/JSDOMParser(\s+Window::)JSDOMParser /DOMParser$1DOMParser_/;
     $newContents =~ s/case JSDOMParser(:[^:])/case DOMParser_$1/g;
 
-    $newContents =~ s/JSXSLTProcessor (\s*Window::)JSXSLTProcessor /XSLTProcessor_$1XSLTProcessor_/;
+    $newContents =~ s/JSXSLTProcessor(\s+Window::)JSXSLTProcessor /XSLTProcessor$1XSLTProcessor_/;
     $newContents =~ s/case JSXSLTProcessor(:[^:])/case XSLTProcessor_$1/g;
 
     if ($newContents ne $contents) {