* Scripts/do-webcore-rename: Another cut at renames. About ready to go (later...
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Jul 2006 19:11:43 +0000 (19:11 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 8 Jul 2006 19:11:43 +0000 (19:11 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15236 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitTools/ChangeLog
WebKitTools/Scripts/do-webcore-rename

index 87af26975187f312346d0460d12659eb99d1a453..ced91fe213f588937444a09ecc17c4da7a10c7d1 100644 (file)
@@ -1,3 +1,7 @@
+2006-07-08  Darin Adler  <darin@apple.com>
+
+        * Scripts/do-webcore-rename: Another cut at renames. About ready to go (later today).
+
 2006-07-04  Maciej Stachowiak  <mjs@apple.com>
 
         Reviewed by Darin.
index ed47a79803434ca067ec1e699c5db671252f73fb..8d97e83b177c07212f6978a68a49144aedc30453 100755 (executable)
@@ -65,10 +65,7 @@ sub wanted
     push @paths, $File::Find::name;
 }
 
-# find all symbols ending in Impl
-
 my %renames = (
-    "DOMRect" => "JSRect",
     "KHTMLSettings" => "Settings",
     "KSSLKeyGen" => "SSLKeyGenerator",
     "KWQCString" => "DeprecatedCString",
@@ -90,7 +87,7 @@ my %renames = (
     "KWQListBoxSeparator" => "ListBoxSeparator",
     "KWQListBoxSeparator" => "ListBoxSeparator",
     "KWQListNode" => "DeprecatedListNode",
-    "KWQNSControlSizeForFont" => "ControlSize",
+    "KWQNSControlSizeForFont" => "ControlSizeForFont",
     "KWQNSTextAlignment" => "TextAlignment",
     "KWQPTRQUEUE_H_" => "DeprecatedPtrQueue_h",
     "KWQPageState" => "WebCorePageState",
@@ -98,8 +95,8 @@ my %renames = (
     "KWQPopUpButtonCell" => "WebCorePopUpButtonCell",
     "KWQPtrQueue" => "DeprecatedPtrQueue",
     "KWQRegExpPrivate" => "Private",
-    "KWQRelease" => "Release",
-    "KWQRetain" => "Retain",
+    "KWQRelease" => "HardRelease",
+    "KWQRetain" => "HardRetain",
     "KWQSCROLLBAR_H_" => "ScrollBar_h",
     "KWQScrollBar" => "WebCoreScrollBar",
     "KWQScrollDirection" => "ScrollDirection",
@@ -130,6 +127,7 @@ my %renames = (
     "KWQWMatrix" => "AffineTransform",
     "KWQ_LIST_IMPL_H" => "DeprecatedPtrListImpl_h",
     "MouseEventMac" => "PlatformMouseEventMac",
+    "QChar" => "DeprecatedChar",
     "Q3CString" => "DeprecatedCString",
     "Q3PtrList" => "DeprecatedPtrList",
     "Q3PtrListIterator" => "DeprecatedPtrListIterator",
@@ -149,7 +147,6 @@ my %renames = (
     "QTextStreamManipulator" => "TextStreamManipulator",
     "QTextStreamSeparator" => "TextStreamSeparator",
     "QWMatrix" => "AffineTransform",
-    "RectImpl" => "DOMRect",
     "detachQSlider" => "detachSlider",
     "initWithQSlider" => "initWithSlider",
     "qmatrix" => "matrix",
@@ -163,6 +160,43 @@ my %renames = (
     "_KWQ_truncateToNumComposedCharacterSequences" => "_webcore_truncateToNumComposedCharacterSequences",
     "_KWQ_currentEditor" => "_webcore_currentEditor",
     "KWQInternal" => "WebCoreInternal",
+    "KWQLoader" => "LoaderFunctions",
+    "KWQFILEBUTTON_H" => "FileButton_h",
+    "KWQLISTBOX_H_" => "ListBox_h",
+    "KWQComboBoxKnowsAppKitSecrets" => "WebCorePopUpButtonKnowsAppKitSecrets",
+    "KWQServeSynchronousRequest" => "ServeSynchronousRequest",
+    "KWQCheckCacheObjectStatus" => "CheckCacheObjectStatus",
+    "KWQCheckIfReloading" => "CheckIfReloading",
+    "KWQIsResponseURLEqualToURL" => "IsResponseURLEqualToURL",
+    "KWQResponseURL" => "ResponseURL",
+    "KWQResponseMIMEType" => "ResponseMIMEType",
+    "KWQResponseIsMultipart" => "ResponseIsMultipart",
+    "KWQNumberOfPendingOrLoadingRequests" => "NumberOfPendingOrLoadingRequests",
+    "KWQCacheObjectExpiresTime" => "CacheObjectExpiresTime",
+    "KWQHeaderStringFromDictionary" => "HeaderStringFromDictionary",
+    "KWQResourceLoader" => "WebCoreResourceLoaderImp",
+    "KWQTableViewTypeSelectCallback" => "ListBoxTypeSelectCallback",
+    "KWQKIOGlobal" => "CacheControl",
+    "KWQVALUELIST_H_" => "DeprecatedValueListImpl_h",
+    "KWQCLIPBOARD_H_" => "ClipboardMac_h",
+    "KWQRetainNSRelease" => "HardRetainWithNSRelease",
+    "KWQCFAutorelease" => "HardAutorelease",
+    "QWMATRIX_H_" => "AffineTransform_h",
+    "QCOMBOBOX_H_" => "PopUpButton_h",
+    "QTEXTEDIT_H_" => "TextBox_h",
+    "QLineEdit_H" => "TextField_h",
+    "QTextStream_H" => "TextStream_h",
+    "ALLOC_QCHAR" => "WEBCORE_ALLOCATE_CHARACTERS",
+    "REALLOC_QCHAR" => "WEBCORE_REALLOCATE_CHARACTERS",
+    "QLIST_H_" => "DeprecatedPtrList_h",
+    "QS_INTERNAL_BUFFER_SIZE" => "WEBCORE_DS_INTERNAL_BUFFER_SIZE",
+    "QS_INTERNAL_BUFFER_CHARS" => "WEBCORE_DS_INTERNAL_BUFFER_CHARS",
+    "QS_INTERNAL_BUFFER_UCHARS" => "WEBCORE_DS_INTERNAL_BUFFER_UCHARS",
+    "QSTRING_DEBUG_ALLOCATIONS" => "WEBCORE_DS_DEBUG_ALLOCATIONS",
+    "QSTRINGLIST_H_" => "DeprecatedStringList_h",
+    "QVALUELIST_H_" => "DeprecatedValueList_h",
+    "QSIZEF_H_" => "FloatSize_h",
+    "QREGEXP_H_" => "RegularExpression_h",
 );
 
 # rename files
@@ -197,6 +231,8 @@ for my $file (sort @paths) {
     }
     my $newContents = $contents;
 
+    $newContents =~ s/\n\s*class\s+AffineTransform;\s*\n/\n/g;
+
     for my $from (keys %renames) {
         $newContents =~ s/\b$from(?!["\w])/$renames{$from}/g; # this " unconfuses Xcode syntax highlighting
     }