From 47ef824b0132d00a0c1c9cb300e47194f6a24c8f Mon Sep 17 00:00:00 2001 From: darin Date: Sat, 8 Jul 2006 19:11:43 +0000 Subject: [PATCH] * Scripts/do-webcore-rename: Another cut at renames. About ready to go (later today). git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15236 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- WebKitTools/ChangeLog | 4 +++ WebKitTools/Scripts/do-webcore-rename | 50 +++++++++++++++++++++++---- 2 files changed, 47 insertions(+), 7 deletions(-) diff --git a/WebKitTools/ChangeLog b/WebKitTools/ChangeLog index 87af26975187..ced91fe213f5 100644 --- a/WebKitTools/ChangeLog +++ b/WebKitTools/ChangeLog @@ -1,3 +1,7 @@ +2006-07-08 Darin Adler + + * Scripts/do-webcore-rename: Another cut at renames. About ready to go (later today). + 2006-07-04 Maciej Stachowiak Reviewed by Darin. diff --git a/WebKitTools/Scripts/do-webcore-rename b/WebKitTools/Scripts/do-webcore-rename index ed47a7980343..8d97e83b177c 100755 --- a/WebKitTools/Scripts/do-webcore-rename +++ b/WebKitTools/Scripts/do-webcore-rename @@ -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 } -- 2.36.0