Deprecate legacy WebView and friends
authortimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 21:43:21 +0000 (21:43 +0000)
committertimothy@apple.com <timothy@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 4 May 2018 21:43:21 +0000 (21:43 +0000)
commit02a2a43e061798552076bfe08c25238dc3978150
tree0c1e06012c4f3dc4b11931d4f74f92aa133fae26
parent355da582bdf88a3eb7d3f217daf8d645850aa099
Deprecate legacy WebView and friends
https://bugs.webkit.org/show_bug.cgi?id=185279
rdar://problem/33268700

Reviewed by Tim Horton.

Source/WebCore:

* Configurations/WebCore.xcconfig:
Added BUILDING_WEBKIT define to disable the deprecation macros.
* bridge/objc/WebScriptObject.h:
Added deprecation macros to WebScriptObject and WebUndefined.
* platform/cocoa/WebKitAvailability.h:
Added more macros and a way to disable deprecation warnings for
WebKit build and in clients like Safari.

Source/WebKitLegacy/mac:

Added deprecation macros to all the classes, extern strings, and enums.

* Configurations/WebKitLegacy.xcconfig:
Added BUILDING_WEBKIT define to disable the deprecation macros.
* DOM/DOMAbstractView.h:
* DOM/DOMAttr.h:
* DOM/DOMBlob.h:
* DOM/DOMCDATASection.h:
* DOM/DOMCSSCharsetRule.h:
* DOM/DOMCSSFontFaceRule.h:
* DOM/DOMCSSImportRule.h:
* DOM/DOMCSSMediaRule.h:
* DOM/DOMCSSPageRule.h:
* DOM/DOMCSSPrimitiveValue.h:
* DOM/DOMCSSRule.h:
* DOM/DOMCSSRuleList.h:
* DOM/DOMCSSStyleDeclaration.h:
* DOM/DOMCSSStyleRule.h:
* DOM/DOMCSSStyleSheet.h:
* DOM/DOMCSSUnknownRule.h:
* DOM/DOMCSSValue.h:
* DOM/DOMCSSValueList.h:
* DOM/DOMCharacterData.h:
* DOM/DOMComment.h:
* DOM/DOMCounter.h:
* DOM/DOMDocument.h:
* DOM/DOMDocumentFragment.h:
* DOM/DOMDocumentType.h:
* DOM/DOMElement.h:
* DOM/DOMEntity.h:
* DOM/DOMEntityReference.h:
* DOM/DOMEvent.h:
* DOM/DOMEventException.h:
* DOM/DOMEventListener.h:
* DOM/DOMEventTarget.h:
* DOM/DOMException.h:
* DOM/DOMFile.h:
* DOM/DOMFileList.h:
* DOM/DOMHTMLAnchorElement.h:
* DOM/DOMHTMLAppletElement.h:
* DOM/DOMHTMLAreaElement.h:
* DOM/DOMHTMLBRElement.h:
* DOM/DOMHTMLBaseElement.h:
* DOM/DOMHTMLBaseFontElement.h:
* DOM/DOMHTMLBodyElement.h:
* DOM/DOMHTMLButtonElement.h:
* DOM/DOMHTMLCanvasElement.h:
* DOM/DOMHTMLCollection.h:
* DOM/DOMHTMLDListElement.h:
* DOM/DOMHTMLDirectoryElement.h:
* DOM/DOMHTMLDivElement.h:
* DOM/DOMHTMLDocument.h:
* DOM/DOMHTMLElement.h:
* DOM/DOMHTMLEmbedElement.h:
* DOM/DOMHTMLFieldSetElement.h:
* DOM/DOMHTMLFontElement.h:
* DOM/DOMHTMLFormElement.h:
* DOM/DOMHTMLFrameElement.h:
* DOM/DOMHTMLFrameSetElement.h:
* DOM/DOMHTMLHRElement.h:
* DOM/DOMHTMLHeadElement.h:
* DOM/DOMHTMLHeadingElement.h:
* DOM/DOMHTMLHtmlElement.h:
* DOM/DOMHTMLIFrameElement.h:
* DOM/DOMHTMLImageElement.h:
* DOM/DOMHTMLInputElement.h:
* DOM/DOMHTMLLIElement.h:
* DOM/DOMHTMLLabelElement.h:
* DOM/DOMHTMLLegendElement.h:
* DOM/DOMHTMLLinkElement.h:
* DOM/DOMHTMLMapElement.h:
* DOM/DOMHTMLMarqueeElement.h:
* DOM/DOMHTMLMediaElement.h:
* DOM/DOMHTMLMenuElement.h:
* DOM/DOMHTMLMetaElement.h:
* DOM/DOMHTMLModElement.h:
* DOM/DOMHTMLOListElement.h:
* DOM/DOMHTMLObjectElement.h:
* DOM/DOMHTMLOptGroupElement.h:
* DOM/DOMHTMLOptionElement.h:
* DOM/DOMHTMLOptionsCollection.h:
* DOM/DOMHTMLParagraphElement.h:
* DOM/DOMHTMLParamElement.h:
* DOM/DOMHTMLPreElement.h:
* DOM/DOMHTMLQuoteElement.h:
* DOM/DOMHTMLScriptElement.h:
* DOM/DOMHTMLSelectElement.h:
* DOM/DOMHTMLStyleElement.h:
* DOM/DOMHTMLTableCaptionElement.h:
* DOM/DOMHTMLTableCellElement.h:
* DOM/DOMHTMLTableColElement.h:
* DOM/DOMHTMLTableElement.h:
* DOM/DOMHTMLTableRowElement.h:
* DOM/DOMHTMLTableSectionElement.h:
* DOM/DOMHTMLTextAreaElement.h:
* DOM/DOMHTMLTitleElement.h:
* DOM/DOMHTMLUListElement.h:
* DOM/DOMHTMLVideoElement.h:
* DOM/DOMImplementation.h:
* DOM/DOMKeyboardEvent.h:
* DOM/DOMMediaError.h:
* DOM/DOMMediaList.h:
* DOM/DOMMouseEvent.h:
* DOM/DOMMutationEvent.h:
* DOM/DOMNamedNodeMap.h:
* DOM/DOMNode.h:
* DOM/DOMNodeFilter.h:
* DOM/DOMNodeIterator.h:
* DOM/DOMNodeList.h:
* DOM/DOMObject.h:
* DOM/DOMOverflowEvent.h:
* DOM/DOMProcessingInstruction.h:
* DOM/DOMProgressEvent.h:
* DOM/DOMRGBColor.h:
* DOM/DOMRange.h:
* DOM/DOMRangeException.h:
* DOM/DOMRect.h:
* DOM/DOMStyleSheet.h:
* DOM/DOMStyleSheetList.h:
* DOM/DOMText.h:
* DOM/DOMTextEvent.h:
* DOM/DOMTimeRanges.h:
* DOM/DOMTokenList.h:
* DOM/DOMTreeWalker.h:
* DOM/DOMUIEvent.h:
* DOM/DOMWheelEvent.h:
* DOM/DOMXPathException.h:
* DOM/DOMXPathExpression.h:
* DOM/DOMXPathNSResolver.h:
* DOM/DOMXPathResult.h:
* History/WebBackForwardList.h:
* History/WebHistory.h:
* History/WebHistoryItem.h:
* Misc/WebDownload.h:
* Misc/WebKitErrors.h:
* Plugins/WebPluginViewFactory.h:
* WebView/WebArchive.h:
* WebView/WebDataSource.h:
* WebView/WebDocument.h:
* WebView/WebEditingDelegate.h:
* WebView/WebFormDelegate.h:
* WebView/WebFrame.h:
* WebView/WebFrameLoadDelegate.h:
* WebView/WebFrameView.h:
* WebView/WebPolicyDelegate.h:
* WebView/WebPreferences.h:
* WebView/WebPreferencesPrivate.h:
* WebView/WebResourceLoadDelegate.h:
* WebView/WebUIDelegate.h:
* WebView/WebUIDelegatePrivate.h:
* WebView/WebView.h:
* WebView/WebViewPrivate.h:
* postprocess-headers.sh:
Remove step that converts WEBKIT macros to NS macros.
Change it to just remove the macros on iOS builds.

Tools:

* MiniBrowser/Configurations/Base.xcconfig: Added GCC_PREPROCESSOR_DEFINITIONS
to define DISABLE_LEGACY_WEBKIT_DEPRECATIONS.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@231383 268f45cc-cd09-0410-ab3c-d52691b4dbfc
155 files changed:
Source/WebCore/ChangeLog
Source/WebCore/Configurations/WebCore.xcconfig
Source/WebCore/bridge/objc/WebScriptObject.h
Source/WebCore/platform/cocoa/WebKitAvailability.h
Source/WebKitLegacy/mac/ChangeLog
Source/WebKitLegacy/mac/Configurations/WebKitLegacy.xcconfig
Source/WebKitLegacy/mac/DOM/DOMAbstractView.h
Source/WebKitLegacy/mac/DOM/DOMAttr.h
Source/WebKitLegacy/mac/DOM/DOMBlob.h
Source/WebKitLegacy/mac/DOM/DOMCDATASection.h
Source/WebKitLegacy/mac/DOM/DOMCSSCharsetRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSFontFaceRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSImportRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSMediaRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSPageRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSPrimitiveValue.h
Source/WebKitLegacy/mac/DOM/DOMCSSRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSRuleList.h
Source/WebKitLegacy/mac/DOM/DOMCSSStyleDeclaration.h
Source/WebKitLegacy/mac/DOM/DOMCSSStyleRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSStyleSheet.h
Source/WebKitLegacy/mac/DOM/DOMCSSUnknownRule.h
Source/WebKitLegacy/mac/DOM/DOMCSSValue.h
Source/WebKitLegacy/mac/DOM/DOMCSSValueList.h
Source/WebKitLegacy/mac/DOM/DOMCharacterData.h
Source/WebKitLegacy/mac/DOM/DOMComment.h
Source/WebKitLegacy/mac/DOM/DOMCounter.h
Source/WebKitLegacy/mac/DOM/DOMDocument.h
Source/WebKitLegacy/mac/DOM/DOMDocumentFragment.h
Source/WebKitLegacy/mac/DOM/DOMDocumentType.h
Source/WebKitLegacy/mac/DOM/DOMElement.h
Source/WebKitLegacy/mac/DOM/DOMEntity.h
Source/WebKitLegacy/mac/DOM/DOMEntityReference.h
Source/WebKitLegacy/mac/DOM/DOMEvent.h
Source/WebKitLegacy/mac/DOM/DOMEventException.h
Source/WebKitLegacy/mac/DOM/DOMEventListener.h
Source/WebKitLegacy/mac/DOM/DOMEventTarget.h
Source/WebKitLegacy/mac/DOM/DOMException.h
Source/WebKitLegacy/mac/DOM/DOMFile.h
Source/WebKitLegacy/mac/DOM/DOMFileList.h
Source/WebKitLegacy/mac/DOM/DOMHTMLAnchorElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLAppletElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLAreaElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLBRElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLBaseElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLBaseFontElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLBodyElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLButtonElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLCanvasElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLCollection.h
Source/WebKitLegacy/mac/DOM/DOMHTMLDListElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLDirectoryElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLDivElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLDocument.h
Source/WebKitLegacy/mac/DOM/DOMHTMLElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLEmbedElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLFieldSetElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLFontElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLFormElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLFrameElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLFrameSetElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLHRElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLHeadElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLHeadingElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLHtmlElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLIFrameElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLImageElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLInputElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLLIElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLLabelElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLLegendElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLLinkElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLMapElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLMarqueeElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLMediaElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLMenuElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLMetaElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLModElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLOListElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLObjectElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLOptGroupElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLOptionElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLOptionsCollection.h
Source/WebKitLegacy/mac/DOM/DOMHTMLParagraphElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLParamElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLPreElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLQuoteElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLScriptElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLSelectElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLStyleElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableCaptionElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableCellElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableColElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableRowElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTableSectionElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTextAreaElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLTitleElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLUListElement.h
Source/WebKitLegacy/mac/DOM/DOMHTMLVideoElement.h
Source/WebKitLegacy/mac/DOM/DOMImplementation.h
Source/WebKitLegacy/mac/DOM/DOMKeyboardEvent.h
Source/WebKitLegacy/mac/DOM/DOMMediaError.h
Source/WebKitLegacy/mac/DOM/DOMMediaList.h
Source/WebKitLegacy/mac/DOM/DOMMouseEvent.h
Source/WebKitLegacy/mac/DOM/DOMMutationEvent.h
Source/WebKitLegacy/mac/DOM/DOMNamedNodeMap.h
Source/WebKitLegacy/mac/DOM/DOMNode.h
Source/WebKitLegacy/mac/DOM/DOMNodeFilter.h
Source/WebKitLegacy/mac/DOM/DOMNodeIterator.h
Source/WebKitLegacy/mac/DOM/DOMNodeList.h
Source/WebKitLegacy/mac/DOM/DOMObject.h
Source/WebKitLegacy/mac/DOM/DOMOverflowEvent.h
Source/WebKitLegacy/mac/DOM/DOMProcessingInstruction.h
Source/WebKitLegacy/mac/DOM/DOMProgressEvent.h
Source/WebKitLegacy/mac/DOM/DOMRGBColor.h
Source/WebKitLegacy/mac/DOM/DOMRange.h
Source/WebKitLegacy/mac/DOM/DOMRangeException.h
Source/WebKitLegacy/mac/DOM/DOMRect.h
Source/WebKitLegacy/mac/DOM/DOMStyleSheet.h
Source/WebKitLegacy/mac/DOM/DOMStyleSheetList.h
Source/WebKitLegacy/mac/DOM/DOMText.h
Source/WebKitLegacy/mac/DOM/DOMTextEvent.h
Source/WebKitLegacy/mac/DOM/DOMTimeRanges.h
Source/WebKitLegacy/mac/DOM/DOMTokenList.h
Source/WebKitLegacy/mac/DOM/DOMTreeWalker.h
Source/WebKitLegacy/mac/DOM/DOMUIEvent.h
Source/WebKitLegacy/mac/DOM/DOMWheelEvent.h
Source/WebKitLegacy/mac/DOM/DOMXPathException.h
Source/WebKitLegacy/mac/DOM/DOMXPathExpression.h
Source/WebKitLegacy/mac/DOM/DOMXPathNSResolver.h
Source/WebKitLegacy/mac/DOM/DOMXPathResult.h
Source/WebKitLegacy/mac/History/WebBackForwardList.h
Source/WebKitLegacy/mac/History/WebHistory.h
Source/WebKitLegacy/mac/History/WebHistoryItem.h
Source/WebKitLegacy/mac/Misc/WebDownload.h
Source/WebKitLegacy/mac/Misc/WebKitErrors.h
Source/WebKitLegacy/mac/Plugins/WebPluginViewFactory.h
Source/WebKitLegacy/mac/WebView/WebArchive.h
Source/WebKitLegacy/mac/WebView/WebDataSource.h
Source/WebKitLegacy/mac/WebView/WebDocument.h
Source/WebKitLegacy/mac/WebView/WebEditingDelegate.h
Source/WebKitLegacy/mac/WebView/WebFormDelegate.h
Source/WebKitLegacy/mac/WebView/WebFrame.h
Source/WebKitLegacy/mac/WebView/WebFrameLoadDelegate.h
Source/WebKitLegacy/mac/WebView/WebFrameView.h
Source/WebKitLegacy/mac/WebView/WebPolicyDelegate.h
Source/WebKitLegacy/mac/WebView/WebPreferences.h
Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h
Source/WebKitLegacy/mac/WebView/WebResourceLoadDelegate.h
Source/WebKitLegacy/mac/WebView/WebUIDelegate.h
Source/WebKitLegacy/mac/WebView/WebView.h
Source/WebKitLegacy/mac/postprocess-headers.sh
Tools/ChangeLog
Tools/MiniBrowser/Configurations/Base.xcconfig