[GTK][WPE] Add API to convert between DOM and JSCValue
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2018 08:44:13 +0000 (08:44 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 26 Mar 2018 08:44:13 +0000 (08:44 +0000)
https://bugs.webkit.org/show_bug.cgi?id=183448

Reviewed by Michael Catanzaro.

.:

Define FORWARDING_HEADERS_WPE_DOM_DIR.

* Source/cmake/OptionsWPE.cmake:

Source/WebKit:

Add methods to get a JSCValue for a WebKitDOMObject and to create a WebKitDOMNode from a JSCValue. Deprecate
most of the GTK+ DOM bindings API and move the non-deprecated parts to glib dir to be exposed by WPE too.

* PlatformGTK.cmake:
* PlatformWPE.cmake:
* SourcesGTK.txt:
* SourcesWPE.txt:
* UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
* WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.cpp.
* WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.h.
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp: Added.
(WebKit::kit):
(WebKit::core):
(WebKit::wrapDocument):
(webkit_dom_document_class_init):
(webkit_dom_document_init):
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocumentPrivate.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h.
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp: Added.
(WebKit::kit):
(WebKit::core):
(WebKit::wrapElement):
(webkit_dom_element_class_init):
(webkit_dom_element_init):
(webkit_dom_element_html_input_element_is_user_edited):
(webkit_dom_element_html_input_element_get_auto_filled):
(webkit_dom_element_html_input_element_set_auto_filled):
(webkit_dom_element_html_input_element_set_editing_value):
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElementPrivate.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementPrivate.h.
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp: Added.
(_WebKitDOMNodePrivate::~_WebKitDOMNodePrivate):
(WebKit::kit):
(WebKit::core):
(WebKit::wrapNode):
(webkitDOMNodeConstructor):
(webkitDOMNodeFinalize):
(webkit_dom_node_init):
(webkit_dom_node_class_init):
(webkitDOMNodeSetCoreObject):
(webkitDOMNodeGetCoreObject):
(webkit_dom_node_for_js_value):
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNodePrivate.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h.
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObject.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.cpp.
(webkitDOMObjectSetProperty):
(webkit_dom_object_class_init):
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp: Added.
(WebKit::wrap):
* WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.h.
* WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp:
(webkit_frame_get_js_value_for_dom_object):
(webkit_frame_get_js_value_for_dom_object_in_script_world):
* WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp:
(webkit_web_page_class_init):
(webkitWebPageCreate):
(webkit_web_page_get_dom_document):
* WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.cpp:
(WebKit::GObjectEventListener::handleEvent):
* WebProcess/InjectedBundle/API/gtk/DOM/GObjectNodeFilterCondition.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/GObjectXPathNSResolver.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp.
(webkitDOMDocumentDOMEventTargetInit):
(webkitDOMDocumentInstallProperties):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp.
(webkitDOMElementDOMEventTargetInit):
(webkitDOMElementInstallProperties):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp.
(webkitDOMNodeDOMEventTargetInit):
(webkitDOMNodeInstallProperties):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp.
(WebKit::wrapNodeGtk):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h.
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h:
* WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
* WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
* WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDefines.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h.
* WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDocument.h: Added.
* WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMElement.h: Added.
* WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMNode.h: Added.
* WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMObject.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h.
* WebProcess/InjectedBundle/API/wpe/DOM/webkitdom.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h.
* WebProcess/InjectedBundle/API/wpe/WebKitFrame.h:
* WebProcess/InjectedBundle/API/wpe/WebKitWebHitTestResult.h: Added.
* WebProcess/InjectedBundle/API/wpe/WebKitWebPage.h:
* WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.cpp.template: Added.
* WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.h.template: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObjectPrivate.h.
* WebProcess/InjectedBundle/API/wpe/webkit-web-extension.h:

Tools:

Add unit tests for non-deprecated DOM API and switch existing tests to use non-deprecated API except for the
ones that test the deprecated API.

* TestWebKitAPI/Tests/WebKitGLib/DOMElementTest.cpp: Added.
(DOMElementTest::create):
(DOMElementTest::testAutoFill):
(registerTests):
* TestWebKitAPI/Tests/WebKitGLib/EditorTest.cpp: Added.
(WebKitWebEditorTest::create):
(WebKitWebEditorTest::selectionChangedCallback):
(WebKitWebEditorTest::testSelectionchanged):
(registerTests):
* TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp:
(WebKitFrameTest::testJavaScriptValues):
(registerTests):
* TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObjectPrivate.h.
(testWebKitDOMElementAutoFill):
(beforeAll):
(afterAll):
* TestWebKitAPI/Tests/WebKitGLib/TestEditor.cpp: Renamed from Tools/TestWebKitAPI/Tests/WebKitGtk/TestEditor.cpp.
* TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp:
(testWebKitFrameJavaScriptValues):
(beforeAll):
* TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp:
(inputElementIsUserEdited):
(testWebExtensionInputElementIsUserEdited):
(testWebExtensionFormSubmissionSteps):
(beforeAll):
* TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp:
(documentLoadedCallback):
(serializeNode):
(contextMenuCallback):
(consoleMessageSentCallback):
(formControlsAssociatedCallback):
(willSubmitFormCallback):
(pageCreatedCallback):
(methodCallCallback):
* TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp:
(checkLeaks):
(webProcessTestRunnerFinalize):
(checkLeaksAtExit):
* TestWebKitAPI/Tests/WebKitGtk/AutocleanupsTest.cpp:
(AutocleanupsTest::testWebProcessAutocleanups):
* TestWebKitAPI/Tests/WebKitGtk/DOMClientRectTest.cpp:
* TestWebKitAPI/Tests/WebKitGtk/DOMNodeFilterTest.cpp:
* TestWebKitAPI/Tests/WebKitGtk/DOMNodeTest.cpp:
* TestWebKitAPI/Tests/WebKitGtk/DOMXPathNSResolverTest.cpp:
* TestWebKitAPI/Tests/WebKitGtk/EditorTest.cpp: Removed.
* TestWebKitAPI/glib/CMakeLists.txt:
* TestWebKitAPI/glib/PlatformGTK.cmake:
* TestWebKitAPI/glib/PlatformWPE.cmake:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229973 268f45cc-cd09-0410-ab3c-d52691b4dbfc

267 files changed:
ChangeLog
Source/WebKit/ChangeLog
Source/WebKit/PlatformGTK.cmake
Source/WebKit/PlatformWPE.cmake
Source/WebKit/SourcesGTK.txt
Source/WebKit/SourcesWPE.txt
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt
Source/WebKit/UIProcess/API/gtk/docs/webkit2gtk-docs.sgml
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.cpp with 100% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.h with 95% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocumentPrivate.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h with 81% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElementPrivate.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementPrivate.h with 81% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNodePrivate.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h with 74% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObject.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.cpp with 89% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObjectPrivate.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObjectPrivate.h with 78% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp
Source/WebKit/WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/GObjectNodeFilterCondition.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/GObjectXPathNSResolver.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp with 98% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementGtk.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp with 98% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeGtk.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp with 91% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.cpp [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp with 96% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.h [moved from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h with 79% similarity]
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt
Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-docs.sgml
Source/WebKit/WebProcess/InjectedBundle/API/gtk/WebKitFrame.h
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDefines.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDocument.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMElement.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMNode.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMObject.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/DOM/webkitdom.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/WebKitFrame.h
Source/WebKit/WebProcess/InjectedBundle/API/wpe/WebKitWebHitTestResult.h [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/WebKitWebPage.h
Source/WebKit/WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.cpp.template [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.h.template [new file with mode: 0644]
Source/WebKit/WebProcess/InjectedBundle/API/wpe/webkit-web-extension.h
Source/cmake/OptionsWPE.cmake
Tools/ChangeLog
Tools/Scripts/webkitpy/style/checker.py
Tools/TestWebKitAPI/Tests/WebKitGLib/DOMElementTest.cpp [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/WebKitGLib/EditorTest.cpp [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/WebKitGLib/FrameTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGLib/TestDOMElement.cpp [new file with mode: 0644]
Tools/TestWebKitAPI/Tests/WebKitGLib/TestEditor.cpp [moved from Tools/TestWebKitAPI/Tests/WebKitGtk/TestEditor.cpp with 96% similarity]
Tools/TestWebKitAPI/Tests/WebKitGLib/TestFrame.cpp
Tools/TestWebKitAPI/Tests/WebKitGLib/TestWebExtensions.cpp
Tools/TestWebKitAPI/Tests/WebKitGLib/WebExtensionTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGLib/WebProcessTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/AutocleanupsTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/DOMClientRectTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/DOMNodeFilterTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/DOMNodeTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/DOMXPathNSResolverTest.cpp
Tools/TestWebKitAPI/Tests/WebKitGtk/EditorTest.cpp [deleted file]
Tools/TestWebKitAPI/glib/CMakeLists.txt
Tools/TestWebKitAPI/glib/PlatformGTK.cmake
Tools/TestWebKitAPI/glib/PlatformWPE.cmake
Tools/gtk/generate-gtkdoc

index 6fa9870..993b611 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2018-03-25  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK][WPE] Add API to convert between DOM and JSCValue
+        https://bugs.webkit.org/show_bug.cgi?id=183448
+
+        Reviewed by Michael Catanzaro.
+
+        Define FORWARDING_HEADERS_WPE_DOM_DIR.
+
+        * Source/cmake/OptionsWPE.cmake:
+
 2018-03-22  Adrian Perez de Castro  <aperez@igalia.com>
 
         [WPE] Enable WOFF2 support
index 03ccce2..6b224d5 100644 (file)
@@ -1,3 +1,295 @@
+2018-03-25  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        [GTK][WPE] Add API to convert between DOM and JSCValue
+        https://bugs.webkit.org/show_bug.cgi?id=183448
+
+        Reviewed by Michael Catanzaro.
+
+        Add methods to get a JSCValue for a WebKitDOMObject and to create a WebKitDOMNode from a JSCValue. Deprecate
+        most of the GTK+ DOM bindings API and move the non-deprecated parts to glib dir to be exposed by WPE too.
+
+        * PlatformGTK.cmake:
+        * PlatformWPE.cmake:
+        * SourcesGTK.txt:
+        * SourcesWPE.txt:
+        * UIProcess/API/gtk/docs/webkit2gtk-4.0-sections.txt:
+        * WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.cpp.
+        * WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.h.
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp: Added.
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapDocument):
+        (webkit_dom_document_class_init):
+        (webkit_dom_document_init):
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocumentPrivate.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h.
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp: Added.
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapElement):
+        (webkit_dom_element_class_init):
+        (webkit_dom_element_init):
+        (webkit_dom_element_html_input_element_is_user_edited):
+        (webkit_dom_element_html_input_element_get_auto_filled):
+        (webkit_dom_element_html_input_element_set_auto_filled):
+        (webkit_dom_element_html_input_element_set_editing_value):
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElementPrivate.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementPrivate.h.
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp: Added.
+        (_WebKitDOMNodePrivate::~_WebKitDOMNodePrivate):
+        (WebKit::kit):
+        (WebKit::core):
+        (WebKit::wrapNode):
+        (webkitDOMNodeConstructor):
+        (webkitDOMNodeFinalize):
+        (webkit_dom_node_init):
+        (webkit_dom_node_class_init):
+        (webkitDOMNodeSetCoreObject):
+        (webkitDOMNodeGetCoreObject):
+        (webkit_dom_node_for_js_value):
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNodePrivate.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h.
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObject.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.cpp.
+        (webkitDOMObjectSetProperty):
+        (webkit_dom_object_class_init):
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp: Added.
+        (WebKit::wrap):
+        * WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.h.
+        * WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp:
+        (webkit_frame_get_js_value_for_dom_object):
+        (webkit_frame_get_js_value_for_dom_object_in_script_world):
+        * WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp:
+        (webkit_web_page_class_init):
+        (webkitWebPageCreate):
+        (webkit_web_page_get_dom_document):
+        * WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.cpp:
+        (WebKit::GObjectEventListener::handleEvent):
+        * WebProcess/InjectedBundle/API/gtk/DOM/GObjectNodeFilterCondition.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/GObjectXPathNSResolver.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp.
+        (webkitDOMDocumentDOMEventTargetInit):
+        (webkitDOMDocumentInstallProperties):
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp.
+        (webkitDOMElementDOMEventTargetInit):
+        (webkitDOMElementInstallProperties):
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPrivate.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp.
+        (webkitDOMNodeDOMEventTargetInit):
+        (webkitDOMNodeInstallProperties):
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.cpp: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp.
+        (WebKit::wrapNodeGtk):
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.h.
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathNSResolver.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp:
+        * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.h:
+        * WebProcess/InjectedBundle/API/gtk/DOM/docs/webkitdomgtk-4.0-sections.txt:
+        * WebProcess/InjectedBundle/API/gtk/WebKitFrame.h:
+        * WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDefines.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentPrivate.h.
+        * WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDocument.h: Added.
+        * WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMElement.h: Added.
+        * WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMNode.h: Added.
+        * WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMObject.h: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.h.
+        * WebProcess/InjectedBundle/API/wpe/DOM/webkitdom.h: Renamed from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodePrivate.h.
+        * WebProcess/InjectedBundle/API/wpe/WebKitFrame.h:
+        * WebProcess/InjectedBundle/API/wpe/WebKitWebHitTestResult.h: Added.
+        * WebProcess/InjectedBundle/API/wpe/WebKitWebPage.h:
+        * WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.cpp.template: Added.
+        * WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.h.template: Copied from Source/WebKit/WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObjectPrivate.h.
+        * WebProcess/InjectedBundle/API/wpe/webkit-web-extension.h:
+
 2018-03-26  Zan Dobersek  <zdobersek@igalia.com>
 
         [CoordGraphics] Clean up CoordinatedGraphicsScene construct-time initializations
index 4adcffb..2af338c 100644 (file)
@@ -401,6 +401,7 @@ list(APPEND WebKit_INCLUDE_DIRECTORIES
     "${WEBKIT_DIR}/UIProcess/linux"
     "${WEBKIT_DIR}/UIProcess/soup"
     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib"
+    "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM"
     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk"
     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM"
     "${WEBKIT_DIR}/WebProcess/Plugins/Netscape/unix"
@@ -831,6 +832,7 @@ if (ENABLE_INTROSPECTION)
             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIRequest.h
             ${WEBKIT_DIR}/UIProcess/API/gtk/WebKitURIResponse.h
             ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/*.cpp
+            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM/*.cpp
     )
 
     add_custom_command(
@@ -888,7 +890,7 @@ file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkit2gtk.cfg
     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
     "doc_dir=${WEBKIT_DIR}/UIProcess/API/gtk/docs\n"
-    "source_dirs=${WEBKIT_DIR}/Shared/API/glib"
+    "source_dirs=${WEBKIT_DIR}/Shared/API/glib\n"
     "            ${WEBKIT_DIR}/UIProcess/API/glib\n"
     "            ${WEBKIT_DIR}/UIProcess/API/gtk\n"
     "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib\n"
@@ -909,7 +911,8 @@ file(WRITE ${CMAKE_BINARY_DIR}/gtkdoc-webkitdom.cfg
     "       -I${DERIVED_SOURCES_WEBKIT2GTK_DIR}\n"
     "       -I${FORWARDING_HEADERS_WEBKIT2GTK_DIR}\n"
     "doc_dir=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM/docs\n"
-    "source_dirs=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
+    "source_dirs=${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM\n"
+    "            ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/gtk/DOM\n"
     "headers=${WebKitDOM_GTKDOC_HEADERS}\n"
     "main_sgml_file=webkitdomgtk-docs.sgml\n"
 )
index 03e7e1d..823d416 100644 (file)
@@ -8,6 +8,7 @@ set(WebKit_StorageProcess_OUTPUT_NAME WPEStorageProcess)
 file(MAKE_DIRECTORY ${DERIVED_SOURCES_WPE_API_DIR})
 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_DIR})
 file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_EXTENSION_DIR})
+file(MAKE_DIRECTORY ${FORWARDING_HEADERS_WPE_DOM_DIR})
 
 configure_file(wpe/wpe-webkit.pc.in ${CMAKE_BINARY_DIR}/wpe-webkit.pc @ONLY)
 
@@ -42,9 +43,17 @@ add_custom_command(
     COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
 )
 
+add_custom_command(
+    OUTPUT ${FORWARDING_HEADERS_WPE_DOM_DIR}/wpe
+    DEPENDS ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM
+    COMMAND ln -n -s -f ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM ${FORWARDING_HEADERS_WPE_DOM_DIR}/wpe
+    VERBATIM
+)
+
 add_custom_target(webkitwpe-fake-api-headers
     DEPENDS ${FORWARDING_HEADERS_WPE_DIR}/wpe
             ${FORWARDING_HEADERS_WPE_EXTENSION_DIR}/wpe
+            ${FORWARDING_HEADERS_WPE_DOM_DIR}/wpe
 )
 
 set(WEBKIT_EXTRA_DEPENDENCIES
@@ -80,6 +89,7 @@ list(APPEND WebKit_DERIVED_SOURCES
     ${DERIVED_SOURCES_WEBKIT_DIR}/WebKitResourcesGResourceBundle.c
 
     ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.cpp
+    ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.cpp
 )
 
 set(WPE_API_INSTALLED_HEADERS
@@ -138,6 +148,27 @@ set(WPE_API_INSTALLED_HEADERS
     ${WEBKIT_DIR}/UIProcess/API/wpe/webkit.h
 )
 
+set(WPE_WEB_EXTENSION_API_INSTALLED_HEADERS
+    ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitConsoleMessage.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitFrame.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitScriptWorld.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebEditor.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebExtension.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebHitTestResult.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebPage.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/webkit-web-extension.h
+)
+
+set(WPE_DOM_API_INSTALLED_HEADERS
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/webkitdomdefines.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/webkitdom.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMDocument.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMElement.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMNode.h
+    ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM/WebKitDOMObject.h
+)
+
 # To generate WebKitEnumTypes.h we want to use all installed headers, except WebKitEnumTypes.h itself.
 set(WPE_ENUM_GENERATION_HEADERS ${WPE_API_INSTALLED_HEADERS})
 list(REMOVE_ITEM WPE_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WPE_API_DIR}/WebKitEnumTypes.h)
@@ -152,6 +183,19 @@ add_custom_command(
     VERBATIM
 )
 
+set(WPE_WEB_PROCESS_ENUM_GENERATION_HEADERS ${WPE_WEB_EXTENSION_API_INSTALLED_HEADERS})
+list(REMOVE_ITEM WPE_WEB_PROCESS_ENUM_GENERATION_HEADERS ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.h)
+add_custom_command(
+    OUTPUT ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.h
+           ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.cpp
+    DEPENDS ${WPE_WEB_PROCESS_ENUM_GENERATION_HEADERS}
+
+    COMMAND glib-mkenums --template ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.h.template ${WPE_WEB_PROCESS_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ | sed s/WEBKIT_TYPE_KIT/WEBKIT_TYPE/ > ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.h
+
+    COMMAND glib-mkenums --template ${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/WebKitWebProcessEnumTypes.cpp.template ${WPE_WEB_PROCESS_ENUM_GENERATION_HEADERS} | sed s/web_kit/webkit/ > ${DERIVED_SOURCES_WPE_API_DIR}/WebKitWebProcessEnumTypes.cpp
+    VERBATIM
+)
+
 set(WebKitResources
 )
 
@@ -184,6 +228,7 @@ list(APPEND WebKit_INCLUDE_DIRECTORIES
     "${FORWARDING_HEADERS_DIR}/JavaScriptCore/glib"
     "${FORWARDING_HEADERS_WPE_DIR}"
     "${FORWARDING_HEADERS_WPE_EXTENSION_DIR}"
+    "${FORWARDING_HEADERS_WPE_DOM_DIR}"
     "${DERIVED_SOURCES_DIR}"
     "${DERIVED_SOURCES_WPE_API_DIR}"
     "${WEBCORE_DIR}/platform/graphics/cairo"
@@ -217,7 +262,9 @@ list(APPEND WebKit_INCLUDE_DIRECTORIES
     "${WEBKIT_DIR}/UIProcess/soup"
     "${WEBKIT_DIR}/UIProcess/wpe"
     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib"
+    "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/glib/DOM"
     "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe"
+    "${WEBKIT_DIR}/WebProcess/InjectedBundle/API/wpe/DOM"
     "${WEBKIT_DIR}/WebProcess/soup"
     "${WEBKIT_DIR}/WebProcess/unix"
     "${WEBKIT_DIR}/WebProcess/WebCoreSupport/soup"
index 28e6cd7..401cf61 100644 (file)
@@ -281,6 +281,13 @@ WebProcess/gtk/WebProcessMainGtk.cpp
 WebProcess/soup/WebKitSoupRequestInputStream.cpp
 WebProcess/soup/WebProcessSoup.cpp
 
+WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObject.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp @no-unify
+
 WebProcess/InjectedBundle/API/glib/WebKitConsoleMessage.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp @no-unify
@@ -291,7 +298,6 @@ WebProcess/InjectedBundle/API/glib/WebKitWebHitTestResult.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp @no-unify
 
 WebProcess/InjectedBundle/API/gtk/DOM/ConvertToUTF8String.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/DOMObjectCache.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/GObjectEventListener.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/GObjectNodeFilterCondition.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/GObjectXPathNSResolver.cpp
@@ -312,10 +318,10 @@ WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp
+WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentGtk.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp
+WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElementGtk.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEventTarget.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp
@@ -382,12 +388,11 @@ WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp
+WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeGtk.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeFilter.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMObject.cpp
-WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivate.cpp
+WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMPrivateGtk.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp
 WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp
index 70dbfdf..bab9b06 100644 (file)
@@ -196,12 +196,20 @@ UIProcess/wpe/WebPasteboardProxyWPE.cpp
 UIProcess/wpe/WebPreferencesWPE.cpp
 UIProcess/wpe/WebProcessPoolWPE.cpp
 
+WebProcess/InjectedBundle/API/glib/DOM/DOMObjectCache.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMObject.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp @no-unify
+
 WebProcess/InjectedBundle/API/glib/WebKitConsoleMessage.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitExtensionManager.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitFrame.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitScriptWorld.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitWebEditor.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitWebExtension.cpp @no-unify
+WebProcess/InjectedBundle/API/glib/WebKitWebHitTestResult.cpp @no-unify
 WebProcess/InjectedBundle/API/glib/WebKitWebPage.cpp @no-unify
 
 WebProcess/InjectedBundle/glib/InjectedBundleGlib.cpp
index e952231..8ac0420 100644 (file)
@@ -1490,6 +1490,8 @@ webkit_frame_get_javascript_global_context
 webkit_frame_get_javascript_context_for_script_world
 webkit_frame_get_js_context
 webkit_frame_get_js_context_for_script_world
+webkit_frame_get_js_value_for_dom_object
+webkit_frame_get_js_value_for_dom_object_in_script_world
 
 <SUBSECTION Standard>
 WebKitFrameClass
index 749611f..30d97d6 100644 (file)
   </index>
 
   <index id="api-index-2-20" role="2.20">
-    <title>Index of new symbols in 2.18</title>
+    <title>Index of new symbols in 2.20</title>
     <xi:include href="xml/api-index-2.20.xml"><xi:fallback /></xi:include>
   </index>
 
+  <index id="api-index-2-22" role="2.22">
+    <title>Index of new symbols in 2.22</title>
+    <xi:include href="xml/api-index-2.22.xml"><xi:fallback /></xi:include>
+  </index>
+
   <xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
 </book>
@@ -16,8 +16,7 @@
  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
-#ifndef DOMObjectCache_h
-#define DOMObjectCache_h
+#pragma once
 
 namespace WebCore {
 class Node;
@@ -32,5 +31,3 @@ public:
     static void forget(void* objectHandle);
 };
 } // namespace WebKit
-
-#endif
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp b/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMDocument.cpp
new file mode 100644 (file)
index 0000000..fa70a32
--- /dev/null
@@ -0,0 +1,76 @@
+/*
+ *  Copyright (C) 2018 Igalia S.L.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ */
+
+#include "config.h"
+#include "WebKitDOMDocument.h"
+
+#include "DOMObjectCache.h"
+#include "WebKitDOMDocumentPrivate.h"
+#include "WebKitDOMNodePrivate.h"
+#include "WebKitDOMPrivate.h"
+
+#if PLATFORM(GTK)
+#include "WebKitDOMEventTarget.h"
+#endif
+
+namespace WebKit {
+
+WebKitDOMDocument* kit(WebCore::Document* obj)
+{
+    return WEBKIT_DOM_DOCUMENT(kit(static_cast<WebCore::Node*>(obj)));
+}
+
+WebCore::Document* core(WebKitDOMDocument* document)
+{
+    return document ? static_cast<WebCore::Document*>(webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(document))) : nullptr;
+}
+
+WebKitDOMDocument* wrapDocument(WebCore::Document* coreObject)
+{
+    ASSERT(coreObject);
+#if PLATFORM(GTK)
+    return WEBKIT_DOM_DOCUMENT(g_object_new(WEBKIT_DOM_TYPE_DOCUMENT, "core-object", coreObject, nullptr));
+#else
+    auto* document = WEBKIT_DOM_DOCUMENT(g_object_new(WEBKIT_DOM_TYPE_DOCUMENT, nullptr));
+    webkitDOMNodeSetCoreObject(WEBKIT_DOM_NODE(document), static_cast<WebCore::Node*>(coreObject));
+    return document;
+#endif
+}
+
+} // namespace WebKit
+
+#if PLATFORM(GTK)
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+G_DEFINE_TYPE_WITH_CODE(WebKitDOMDocument, webkit_dom_document, WEBKIT_DOM_TYPE_NODE, G_IMPLEMENT_INTERFACE(WEBKIT_DOM_TYPE_EVENT_TARGET, webkitDOMDocumentDOMEventTargetInit))
+G_GNUC_END_IGNORE_DEPRECATIONS;
+#else
+G_DEFINE_TYPE(WebKitDOMDocument, webkit_dom_document, WEBKIT_DOM_TYPE_NODE)
+#endif
+
+static void webkit_dom_document_class_init(WebKitDOMDocumentClass* documentClass)
+{
+#if PLATFORM(GTK)
+    GObjectClass* gobjectClass = G_OBJECT_CLASS(documentClass);
+    webkitDOMDocumentInstallProperties(gobjectClass);
+#endif
+}
+
+static void webkit_dom_document_init(WebKitDOMDocument*)
+{
+}
@@ -1,5 +1,5 @@
 /*
- *  This file is part of the WebKit open source project.
+ *  Copyright (C) 2018 Igalia S.L.
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Library General Public
  *  Boston, MA 02110-1301, USA.
  */
 
-#ifndef WebKitDOMDocumentPrivate_h
-#define WebKitDOMDocumentPrivate_h
+#pragma once
 
+#include "WebKitDOMDocument.h"
 #include <WebCore/Document.h>
-#include <webkitdom/WebKitDOMDocument.h>
 
 namespace WebKit {
 WebKitDOMDocument* wrapDocument(WebCore::Document*);
@@ -29,4 +28,7 @@ WebKitDOMDocument* kit(WebCore::Document*);
 WebCore::Document* core(WebKitDOMDocument*);
 } // namespace WebKit
 
-#endif /* WebKitDOMDocumentPrivate_h */
+#if PLATFORM(GTK)
+void webkitDOMDocumentDOMEventTargetInit(WebKitDOMEventTargetIface*);
+void webkitDOMDocumentInstallProperties(GObjectClass*);
+#endif
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp b/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMElement.cpp
new file mode 100644 (file)
index 0000000..1332495
--- /dev/null
@@ -0,0 +1,164 @@
+/*
+ *  Copyright (C) 2018 Igalia S.L.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ */
+
+#include "config.h"
+#include "WebKitDOMElement.h"
+
+#include "DOMObjectCache.h"
+#include "WebKitDOMElementPrivate.h"
+#include "WebKitDOMNodePrivate.h"
+#include "WebKitDOMPrivate.h"
+#include <WebCore/HTMLInputElement.h>
+#include <WebCore/HTMLTextAreaElement.h>
+
+#if PLATFORM(GTK)
+#include "WebKitDOMEventTarget.h"
+#endif
+
+namespace WebKit {
+
+WebKitDOMElement* kit(WebCore::Element* obj)
+{
+    return WEBKIT_DOM_ELEMENT(kit(static_cast<WebCore::Node*>(obj)));
+}
+
+WebCore::Element* core(WebKitDOMElement* element)
+{
+    return element ? static_cast<WebCore::Element*>(webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(element))) : nullptr;
+}
+
+WebKitDOMElement* wrapElement(WebCore::Element* coreObject)
+{
+    ASSERT(coreObject);
+#if PLATFORM(GTK)
+    return WEBKIT_DOM_ELEMENT(g_object_new(WEBKIT_DOM_TYPE_ELEMENT, "core-object", coreObject, nullptr));
+#else
+    auto* element = WEBKIT_DOM_ELEMENT(g_object_new(WEBKIT_DOM_TYPE_ELEMENT, nullptr));
+    webkitDOMNodeSetCoreObject(WEBKIT_DOM_NODE(element), static_cast<WebCore::Node*>(coreObject));
+    return element;
+#endif
+}
+
+} // namespace WebKit
+
+#if PLATFORM(GTK)
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+G_DEFINE_TYPE_WITH_CODE(WebKitDOMElement, webkit_dom_element, WEBKIT_DOM_TYPE_NODE, G_IMPLEMENT_INTERFACE(WEBKIT_DOM_TYPE_EVENT_TARGET, webkitDOMElementDOMEventTargetInit))
+G_GNUC_END_IGNORE_DEPRECATIONS;
+#else
+G_DEFINE_TYPE(WebKitDOMElement, webkit_dom_element, WEBKIT_DOM_TYPE_NODE)
+#endif
+
+static void webkit_dom_element_class_init(WebKitDOMElementClass* elementClass)
+{
+#if PLATFORM(GTK)
+    GObjectClass* gobjectClass = G_OBJECT_CLASS(elementClass);
+    webkitDOMElementInstallProperties(gobjectClass);
+#endif
+}
+
+static void webkit_dom_element_init(WebKitDOMElement*)
+{
+}
+
+/**
+ * webkit_dom_element_html_input_element_is_user_edited:
+ * @element: a #WebKitDOMElement
+ *
+ * Get whether @element is an HTML text input element that has been edited by a user action.
+ *
+ * Returns: whether @element has been edited by a user action.
+ *
+ * Since: 2.22
+ */
+gboolean webkit_dom_element_html_input_element_is_user_edited(WebKitDOMElement* element)
+{
+    g_return_val_if_fail(WEBKIT_DOM_IS_ELEMENT(element), FALSE);
+
+    auto* node = webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(element));
+    if (is<WebCore::HTMLInputElement>(node))
+        return downcast<WebCore::HTMLInputElement>(*node).lastChangeWasUserEdit();
+
+    if (is<WebCore::HTMLTextAreaElement>(node))
+        return downcast<WebCore::HTMLTextAreaElement>(*node).lastChangeWasUserEdit();
+
+    return FALSE;
+}
+
+/**
+ * webkit_dom_element_is_html_input_element_auto_filled:
+ * @element: a #WebKitDOMElement
+ *
+ * Get whether the element is an HTML input element that has been filled automatically.
+ *
+ * Returns: whether @element has been filled automatically.
+ *
+ * Since: 2.22
+ */
+gboolean webkit_dom_element_html_input_element_get_auto_filled(WebKitDOMElement* element)
+{
+    g_return_val_if_fail(WEBKIT_DOM_IS_ELEMENT(element), FALSE);
+
+    auto* node = webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(element));
+    if (!is<WebCore::HTMLInputElement>(node))
+        return false;
+
+    return downcast<WebCore::HTMLInputElement>(*node).isAutoFilled();
+}
+
+/**
+ * webkit_dom_element_html_input_element_set_auto_filled:
+ * @element: a #WebKitDOMElement
+ * @auto_filled: value to set
+ *
+ * Set whether the element is an HTML input element that has been filled automatically.
+ * If @element is not an HTML input element this function does nothing.
+ *
+ * Since: 2.22
+ */
+void webkit_dom_element_html_input_element_set_auto_filled(WebKitDOMElement* element, gboolean autoFilled)
+{
+    g_return_if_fail(WEBKIT_DOM_IS_ELEMENT(element));
+
+    auto* node = webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(element));
+    if (!is<WebCore::HTMLInputElement>(node))
+        return;
+
+    downcast<WebCore::HTMLInputElement>(*node).setAutoFilled(autoFilled);
+}
+
+/**
+ * webkit_dom_element_html_input_element_set_editing_value:
+ * @element: a #WebKitDOMElement
+ * @value: the text to set
+ *
+ * Set editing value of an HTML input element. If @element is not an HTML input element this function does nothing.
+ *
+ * Since: 2.22
+ */
+void webkit_dom_element_html_input_element_set_editing_value(WebKitDOMElement* element, const char* value)
+{
+    g_return_if_fail(WEBKIT_DOM_IS_ELEMENT(element));
+
+    auto* node = webkitDOMNodeGetCoreObject(WEBKIT_DOM_NODE(element));
+    if (!is<WebCore::HTMLInputElement>(node))
+        return;
+
+    downcast<WebCore::HTMLInputElement>(*node).setEditingValue(String::fromUTF8(value));
+}
@@ -1,5 +1,5 @@
 /*
- *  This file is part of the WebKit open source project.
+ *  Copyright (C) 2018 Igalia S.L.
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Library General Public
  *  Boston, MA 02110-1301, USA.
  */
 
-#ifndef WebKitDOMElementPrivate_h
-#define WebKitDOMElementPrivate_h
+#pragma once
 
+#include "WebKitDOMElement.h"
 #include <WebCore/Element.h>
-#include <webkitdom/WebKitDOMElement.h>
 
 namespace WebKit {
 WebKitDOMElement* wrapElement(WebCore::Element*);
@@ -29,4 +28,7 @@ WebKitDOMElement* kit(WebCore::Element*);
 WebCore::Element* core(WebKitDOMElement*);
 } // namespace WebKit
 
-#endif /* WebKitDOMElementPrivate_h */
+#if PLATFORM(GTK)
+void webkitDOMElementDOMEventTargetInit(WebKitDOMEventTargetIface*);
+void webkitDOMElementInstallProperties(GObjectClass*);
+#endif
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp b/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMNode.cpp
new file mode 100644 (file)
index 0000000..bd89531
--- /dev/null
@@ -0,0 +1,154 @@
+/*
+ *  Copyright (C) 2018 Igalia S.L.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Library General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this library; see the file COPYING.LIB.  If not, write to
+ *  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ *  Boston, MA 02110-1301, USA.
+ */
+
+#include "config.h"
+#include "WebKitDOMNode.h"
+
+#include "DOMObjectCache.h"
+#include "WebKitDOMNodePrivate.h"
+#include "WebKitDOMPrivate.h"
+#include <WebCore/JSNode.h>
+#include <jsc/JSCContextPrivate.h>
+#include <jsc/JSCValuePrivate.h>
+#include <wtf/RefPtr.h>
+
+#if PLATFORM(GTK)
+#include "WebKitDOMEventTarget.h"
+#endif
+
+#define WEBKIT_DOM_NODE_GET_PRIVATE(obj) G_TYPE_INSTANCE_GET_PRIVATE(obj, WEBKIT_DOM_TYPE_NODE, WebKitDOMNodePrivate)
+
+typedef struct _WebKitDOMNodePrivate {
+    ~_WebKitDOMNodePrivate()
+    {
+        WebKit::DOMObjectCache::forget(coreObject.get());
+    }
+
+    RefPtr<WebCore::Node> coreObject;
+} WebKitDOMNodePrivate;
+
+namespace WebKit {
+
+WebKitDOMNode* kit(WebCore::Node* obj)
+{
+    if (!obj)
+        return nullptr;
+
+    if (gpointer ret = DOMObjectCache::get(obj))
+        return WEBKIT_DOM_NODE(ret);
+
+    return wrap(obj);
+}
+
+WebCore::Node* core(WebKitDOMNode* node)
+{
+    return node ? webkitDOMNodeGetCoreObject(node) : nullptr;
+}
+
+WebKitDOMNode* wrapNode(WebCore::Node* coreObject)
+{
+    ASSERT(coreObject);
+#if PLATFORM(GTK)
+    return WEBKIT_DOM_NODE(g_object_new(WEBKIT_DOM_TYPE_NODE, "core-object", coreObject, nullptr));
+#else
+    auto* node = WEBKIT_DOM_NODE(g_object_new(WEBKIT_DOM_TYPE_NODE, nullptr));
+    webkitDOMNodeSetCoreObject(node, coreObject);
+    return node;
+#endif
+}
+
+} // namespace WebKit
+
+#if PLATFORM(GTK)
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+G_DEFINE_TYPE_WITH_CODE(WebKitDOMNode, webkit_dom_node, WEBKIT_DOM_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(WEBKIT_DOM_TYPE_EVENT_TARGET, webkitDOMNodeDOMEventTargetInit))
+G_GNUC_END_IGNORE_DEPRECATIONS;
+#else
+WEBKIT_DEFINE_TYPE(WebKitDOMNode, webkit_dom_node, WEBKIT_DOM_TYPE_OBJECT)
+#endif
+
+#if PLATFORM(GTK)
+static GObject* webkitDOMNodeConstructor(GType type, guint constructPropertiesCount, GObjectConstructParam* constructProperties)
+{
+    GObject* object = G_OBJECT_CLASS(webkit_dom_node_parent_class)->constructor(type, constructPropertiesCount, constructProperties);
+
+    webkitDOMNodeSetCoreObject(WEBKIT_DOM_NODE(object), static_cast<WebCore::Node*>(WEBKIT_DOM_OBJECT(object)->coreObject));
+
+    return object;
+}
+
+static void webkitDOMNodeFinalize(GObject* object)
+{
+    WebKitDOMNode* node = WEBKIT_DOM_NODE(object);
+
+    WebKitDOMNodePrivate* priv = WEBKIT_DOM_NODE_GET_PRIVATE(node);
+    priv->~WebKitDOMNodePrivate();
+
+    G_OBJECT_CLASS(webkit_dom_node_parent_class)->finalize(object);
+}
+
+static void webkit_dom_node_init(WebKitDOMNode* node)
+{
+    WebKitDOMNodePrivate* priv = WEBKIT_DOM_NODE_GET_PRIVATE(node);
+    new (priv) WebKitDOMNodePrivate();
+}
+#endif
+
+static void webkit_dom_node_class_init(WebKitDOMNodeClass* nodeClass)
+{
+#if PLATFORM(GTK)
+    GObjectClass* gobjectClass = G_OBJECT_CLASS(nodeClass);
+    g_type_class_add_private(gobjectClass, sizeof(WebKitDOMNodePrivate));
+    gobjectClass->constructor = webkitDOMNodeConstructor;
+    gobjectClass->finalize = webkitDOMNodeFinalize;
+    webkitDOMNodeInstallProperties(gobjectClass);
+#endif
+}
+
+void webkitDOMNodeSetCoreObject(WebKitDOMNode* node, WebCore::Node* coreObject)
+{
+    WebKitDOMNodePrivate* priv = WEBKIT_DOM_NODE_GET_PRIVATE(node);
+    priv->coreObject = coreObject;
+    WebKit::DOMObjectCache::put(coreObject, node);
+}
+
+WebCore::Node* webkitDOMNodeGetCoreObject(WebKitDOMNode* node)
+{
+    WebKitDOMNodePrivate* priv = WEBKIT_DOM_NODE_GET_PRIVATE(node);
+    return priv->coreObject.get();
+}
+
+/**
+ * webkit_dom_node_for_js_value:
+ * @value: a #JSCValue
+ *
+ * Get the #WebKitDOMNode for the DOM node referenced by @value.
+ *
+ * Returns: (transfer none): a #WebKitDOMNode, or %NULL if @value doesn't reference a DOM node.
+ *
+ * Since: 2.22
+ */
+WebKitDOMNode* webkit_dom_node_for_js_value(JSCValue* value)
+{
+    g_return_val_if_fail(JSC_IS_VALUE(value), nullptr);
+    g_return_val_if_fail(jsc_value_is_object(value), nullptr);
+
+    auto* jsObject = JSValueToObject(jscContextGetJSContext(jsc_value_get_context(value)), jscValueGetJSValue(value), nullptr);
+    return jsObject ? WebKit::kit(WebCore::JSNode::toWrapped(*toJS(jsObject)->vm(), toJS(jsObject))) : nullptr;
+}
@@ -1,5 +1,5 @@
 /*
- *  This file is part of the WebKit open source project.
+ *  Copyright (C) 2018 Igalia S.L.
  *
  *  This library is free software; you can redistribute it and/or
  *  modify it under the terms of the GNU Library General Public
  *  Boston, MA 02110-1301, USA.
  */
 
-#ifndef WebKitDOMNodePrivate_h
-#define WebKitDOMNodePrivate_h
+#pragma once
 
+#include "WebKitDOMNode.h"
 #include <WebCore/Node.h>
-#include <webkitdom/WebKitDOMNode.h>
 
 namespace WebKit {
 WebKitDOMNode* wrapNode(WebCore::Node*);
@@ -29,4 +28,10 @@ WebKitDOMNode* kit(WebCore::Node*);
 WebCore::Node* core(WebKitDOMNode*);
 } // namespace WebKit
 
-#endif /* WebKitDOMNodePrivate_h */
+void webkitDOMNodeSetCoreObject(WebKitDOMNode*, WebCore::Node*);
+WebCore::Node* webkitDOMNodeGetCoreObject(WebKitDOMNode*);
+
+#if PLATFORM(GTK)
+void webkitDOMNodeDOMEventTargetInit(WebKitDOMEventTargetIface*);
+void webkitDOMNodeInstallProperties(GObjectClass*);
+#endif
@@ -8,10 +8,12 @@
 #include "config.h"
 #include "WebKitDOMObject.h"
 
+#if PLATFORM(GTK)
 enum {
-    DOM_OBJECT_PROP_0,
-    DOM_OBJECT_PROP_CORE_OBJECT
+    PROP_0,
+    PROP_CORE_OBJECT
 };
+#endif
 
 G_DEFINE_TYPE(WebKitDOMObject, webkit_dom_object, G_TYPE_OBJECT)
 
@@ -19,10 +21,11 @@ static void webkit_dom_object_init(WebKitDOMObject*)
 {
 }
 
+#if PLATFORM(GTK)
 static void webkitDOMObjectSetProperty(GObject* object, guint propertyId, const GValue* value, GParamSpec* pspec)
 {
     switch (propertyId) {
-    case DOM_OBJECT_PROP_CORE_OBJECT:
+    case PROP_CORE_OBJECT:
         WEBKIT_DOM_OBJECT(object)->coreObject = g_value_get_pointer(value);
         break;
     default:
@@ -30,18 +33,21 @@ static void webkitDOMObjectSetProperty(GObject* object, guint propertyId, const
         break;
     }
 }
+#endif
 
 static void webkit_dom_object_class_init(WebKitDOMObjectClass* klass)
 {
+#if PLATFORM(GTK)
     GObjectClass* gobjectClass = G_OBJECT_CLASS(klass);
     gobjectClass->set_property = webkitDOMObjectSetProperty;
 
     g_object_class_install_property(
         gobjectClass,
-        DOM_OBJECT_PROP_CORE_OBJECT,
+        PROP_CORE_OBJECT,
         g_param_spec_pointer(
             "core-object",
             "Core Object",
             "The WebCore object the WebKitDOMObject wraps",
             static_cast<GParamFlags>(G_PARAM_WRITABLE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB)));
+#endif
 }
  */
 
 
-#ifndef WebKitDOMObjectPrivate_h
-#define WebKitDOMObjectPrivate_h
+#pragma once
 
-#include <webkitdom/WebKitDOMObject.h>
+#include "WebKitDOMObject.h"
 
 struct _WebKitDOMObject {
     GObject parent;
@@ -30,9 +29,8 @@ struct _WebKitDOMObject {
 struct _WebKitDOMObjectClass {
     GObjectClass parent_class;
 
-    void (* wrap) (WebKitDOMObject*, void* coreObject);
+#if PLATFORM(GTK)
+    // This is only to keep ABI compatibility.
+    void (*webkitdom_reserved)(void);
+#endif
 };
-
-void webkitDOMObjectWrap(WebKitDOMObject*, void* coreObject);
-
-#endif /* WebKitDOMObject_h */
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp b/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.cpp
new file mode 100644 (file)
index 0000000..93ffb87
--- /dev/null
@@ -0,0 +1,61 @@
+/*
+ *  Copyright (C) 2018 Igalia S.L.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#include "config.h"
+#include "WebKitDOMPrivate.h"
+
+#include "WebKitDOMDocumentPrivate.h"
+#include "WebKitDOMElementPrivate.h"
+#include "WebKitDOMNodePrivate.h"
+#include <WebCore/HTMLFormElement.h>
+
+#if PLATFORM(GTK)
+#include "WebKitDOMPrivateGtk.h"
+#endif
+
+namespace WebKit {
+
+WebKitDOMNode* wrap(WebCore::Node* node)
+{
+    ASSERT(node);
+    ASSERT(node->nodeType());
+
+#if PLATFORM(GTK)
+    if (auto* wrapper = wrapNodeGtk(node))
+        return wrapper;
+#endif
+
+    switch (node->nodeType()) {
+    case WebCore::Node::ELEMENT_NODE:
+        return WEBKIT_DOM_NODE(wrapElement(downcast<WebCore::Element>(node)));
+    case WebCore::Node::DOCUMENT_NODE:
+        return WEBKIT_DOM_NODE(wrapDocument(downcast<WebCore::Document>(node)));
+    case WebCore::Node::ATTRIBUTE_NODE:
+    case WebCore::Node::TEXT_NODE:
+    case WebCore::Node::CDATA_SECTION_NODE:
+    case WebCore::Node::PROCESSING_INSTRUCTION_NODE:
+    case WebCore::Node::COMMENT_NODE:
+    case WebCore::Node::DOCUMENT_TYPE_NODE:
+    case WebCore::Node::DOCUMENT_FRAGMENT_NODE:
+        break;
+    }
+
+    return wrapNode(node);
+}
+
+} // namespace WebKit
diff --git a/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.h b/Source/WebKit/WebProcess/InjectedBundle/API/glib/DOM/WebKitDOMPrivate.h
new file mode 100644 (file)
index 0000000..b8db276
--- /dev/null
@@ -0,0 +1,39 @@
+/*
+ *  Copyright (C) 1999-2001 Harri Porten (porten@kde.org)
+ *  Copyright (C) 2003, 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
+ *  Copyright (C) 2007 Samuel Weinig <sam@webkit.org>
+ *  Copyright (C) 2008 Luke Kenneth Casson Leighton <lkcl@lkcl.net>
+ *  Copyright (C) 2008 Martin Soto <soto@freedesktop.org>
+ *  Copyright (C) 2009-2013 Igalia S.L.
+ *
+ *  This library is free software; you can redistribute it and/or
+ *  modify it under the terms of the GNU Lesser General Public
+ *  License as published by the Free Software Foundation; either
+ *  version 2 of the License, or (at your option) any later version.
+ *
+ *  This library is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ *  Lesser General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Lesser General Public
+ *  License along with this library; if not, write to the Free Software
+ *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
+ */
+
+#pragma once
+
+#include "WebKitDOMNode.h"
+#include <wtf/glib/WTFGType.h>
+
+#if PLATFORM(GTK)
+#include "WebKitDOMPrivateGtk.h"
+#endif
+
+namespace WebCore {
+class Node;
+} // namespace WebCore
+
+namespace WebKit {
+WebKitDOMNode* wrap(WebCore::Node*);
+} // namespace WebKit
index f770b6f..21a3f63 100644 (file)
 #include "config.h"
 #include "WebKitFrame.h"
 
+#include "WebKitDOMNodePrivate.h"
 #include "WebKitFramePrivate.h"
 #include "WebKitScriptWorldPrivate.h"
+#include <JavaScriptCore/JSLock.h>
+#include <WebCore/Frame.h>
+#include <WebCore/JSNode.h>
+#include <WebCore/ScriptController.h>
 #include <jsc/JSCContextPrivate.h>
 #include <wtf/glib/WTFGType.h>
 #include <wtf/text/CString.h>
@@ -170,3 +175,53 @@ JSCContext* webkit_frame_get_js_context_for_script_world(WebKitFrame* frame, Web
 
     return jscContextGetOrCreate(frame->priv->webFrame->jsContextForWorld(webkitScriptWorldGetInjectedBundleScriptWorld(world))).leakRef();
 }
+
+/**
+ * webkit_frame_get_js_value_for_dom_object:
+ * @frame: a #WebKitFrame
+ * @dom_object: a #WebKitDOMObject
+ *
+ * Get a #JSCValue referencing the given DOM object. The value is created in the JavaScript execution
+ * context of @frame.
+ *
+ * Returns: (transfer full): the #JSCValue referencing @dom_object.
+ *
+ * Since: 2.22
+ */
+JSCValue* webkit_frame_get_js_value_for_dom_object(WebKitFrame* frame, WebKitDOMObject* domObject)
+{
+    return webkit_frame_get_js_value_for_dom_object_in_script_world(frame, domObject, webkit_script_world_get_default());
+}
+
+/**
+ * webkit_frame_get_js_value_for_dom_object_in_script_world:
+ * @frame: a #WebKitFrame
+ * @dom_object: a #WebKitDOMObject
+ * @world: a #WebKitScriptWorld
+ *
+ * Get a #JSCValue referencing the given DOM object. The value is created in the JavaScript execution
+ * context of @frame for the given #WebKitScriptWorld.
+ *
+ * Returns: (transfer full): the #JSCValue referencing @dom_object
+ *
+ * Since: 2.22
+ */
+JSCValue* webkit_frame_get_js_value_for_dom_object_in_script_world(WebKitFrame* frame, WebKitDOMObject* domObject, WebKitScriptWorld* world)
+{
+    g_return_val_if_fail(WEBKIT_IS_FRAME(frame), nullptr);
+    g_return_val_if_fail(WEBKIT_DOM_IS_OBJECT(domObject), nullptr);
+    g_return_val_if_fail(WEBKIT_IS_SCRIPT_WORLD(world), nullptr);
+
+    auto* wkWorld = webkitScriptWorldGetInjectedBundleScriptWorld(world);
+    auto jsContext = jscContextGetOrCreate(frame->priv->webFrame->jsContextForWorld(wkWorld));
+    JSDOMWindow* globalObject = frame->priv->webFrame->coreFrame()->script().globalObject(wkWorld->coreWorld());
+    JSC::ExecState* exec = globalObject->globalExec();
+    JSValueRef jsValue = nullptr;
+    {
+        JSC::JSLockHolder lock(exec);
+        if (WEBKIT_DOM_IS_NODE(domObject))
+            jsValue = toRef(exec, toJS(exec, globalObject, WebKit::core(WEBKIT_DOM_NODE(domObject))));
+    }
+
+    return jsValue ? jscContextGetOrCreateValue(jsContext.get(), jsValue).leakRef() : nullptr;
+}
index 693ff75..5642f16 100644 (file)
 #include "WebImage.h"
 #include "WebKitConsoleMessagePrivate.h"
 #include "WebKitContextMenuPrivate.h"
+#include "WebKitDOMDocumentPrivate.h"
+#include "WebKitDOMElementPrivate.h"
+#include "WebKitDOMNodePrivate.h"
 #include "WebKitFramePrivate.h"
 #include "WebKitPrivate.h"
 #include "WebKitScriptWorldPrivate.h"
 #include "WebKitURIRequestPrivate.h"
 #include "WebKitURIResponsePrivate.h"
 #include "WebKitWebEditorPrivate.h"
+#include "WebKitWebHitTestResultPrivate.h"
 #include "WebKitWebPagePrivate.h"
+#include "WebKitWebProcessEnumTypes.h"
 #include "WebProcess.h"
 #include <WebCore/Document.h>
 #include <WebCore/DocumentLoader.h>
@@ -47,6 +52,7 @@
 #include <WebCore/FrameDestructionObserver.h>
 #include <WebCore/FrameLoader.h>
 #include <WebCore/FrameView.h>
+#include <WebCore/HTMLFormElement.h>
 #include <WebCore/MainFrame.h>
 #include <glib/gi18n-lib.h>
 #include <wtf/NeverDestroyed.h>
 #include <wtf/text/CString.h>
 #include <wtf/text/StringBuilder.h>
 
-#if PLATFORM(GTK)
-#include "WebKitDOMDocumentPrivate.h"
-#include "WebKitDOMElementPrivate.h"
-#include "WebKitDOMHTMLFormElementPrivate.h"
-#include "WebKitWebHitTestResultPrivate.h"
-#include "WebKitWebProcessEnumTypes.h"
-#endif
-
 using namespace WebKit;
 using namespace WebCore;
 
 enum {
     DOCUMENT_LOADED,
     SEND_REQUEST,
-#if PLATFORM(GTK)
     CONTEXT_MENU,
-#endif
     CONSOLE_MESSAGE_SENT,
-#if PLATFORM(GTK)
     FORM_CONTROLS_ASSOCIATED,
     WILL_SUBMIT_FORM,
-#endif
 
     LAST_SIGNAL
 };
@@ -335,7 +329,6 @@ public:
 private:
     bool getCustomMenuFromDefaultItems(WebPage&, const WebCore::HitTestResult& hitTestResult, const Vector<WebCore::ContextMenuItem>& defaultMenu, Vector<WebContextMenuItemData>& newMenu, RefPtr<API::Object>& userData) override
     {
-#if PLATFORM(GTK)
         GRefPtr<WebKitContextMenu> contextMenu = adoptGRef(webkitContextMenuCreate(kitItems(defaultMenu)));
         GRefPtr<WebKitWebHitTestResult> webHitTestResult = adoptGRef(webkitWebHitTestResultCreate(hitTestResult));
         gboolean returnValue;
@@ -350,10 +343,6 @@ private:
 
         webkitContextMenuPopulate(contextMenu.get(), newMenu);
         return true;
-#elif PLATFORM(WPE)
-        // FIXME: use a shared WebKitHitTestResult in WPE.
-        return false;
-#endif
     }
 
     WebKitWebPage* m_webPage;
@@ -375,7 +364,6 @@ private:
     WebKitWebPage* m_webPage;
 };
 
-#if PLATFORM(GTK)
 class PageFormClient final : public API::InjectedBundle::FormClient {
 public:
     explicit PageFormClient(WebKitWebPage* webPage)
@@ -417,12 +405,11 @@ private:
             g_ptr_array_add(textFieldValues.get(), g_strdup(pair.second.utf8().data()));
         }
 
-        g_signal_emit(m_webPage, signals[WILL_SUBMIT_FORM], 0, WEBKIT_DOM_ELEMENT(WebKit::kit(formElement)), step, webkitSourceFrame, webkitTargetFrame, textFieldNames.get(), textFieldValues.get());
+        g_signal_emit(m_webPage, signals[WILL_SUBMIT_FORM], 0, WEBKIT_DOM_ELEMENT(WebKit::kit(static_cast<Node*>(formElement))), step, webkitSourceFrame, webkitTargetFrame, textFieldNames.get(), textFieldValues.get());
     }
 
     WebKitWebPage* m_webPage;
 };
-#endif
 
 static void webkitWebPageGetProperty(GObject* object, guint propId, GValue* value, GParamSpec* paramSpec)
 {
@@ -507,7 +494,6 @@ static void webkit_web_page_class_init(WebKitWebPageClass* klass)
         WEBKIT_TYPE_URI_REQUEST,
         WEBKIT_TYPE_URI_RESPONSE);
 
-#if PLATFORM(GTK)
     /**
      * WebKitWebPage::context-menu:
      * @web_page: the #WebKitWebPage on which the signal is emitted
@@ -537,7 +523,6 @@ static void webkit_web_page_class_init(WebKitWebPageClass* klass)
         G_TYPE_BOOLEAN, 2,
         WEBKIT_TYPE_CONTEXT_MENU,
         WEBKIT_TYPE_WEB_HIT_TEST_RESULT);
-#endif
 
     /**
      * WebKitWebPage::console-message-sent:
@@ -560,7 +545,6 @@ static void webkit_web_page_class_init(WebKitWebPageClass* klass)
         G_TYPE_NONE, 1,
         WEBKIT_TYPE_CONSOLE_MESSAGE | G_SIGNAL_TYPE_STATIC_SCOPE);
 
-#if PLATFORM(GTK)
     /**
      * WebKitWebPage::form-controls-associated:
      * @web_page: the #WebKitWebPage on which the signal is emitted
@@ -646,7 +630,6 @@ static void webkit_web_page_class_init(WebKitWebPageClass* klass)
         WEBKIT_TYPE_FRAME,
         G_TYPE_PTR_ARRAY,
         G_TYPE_PTR_ARRAY);
-#endif
 }
 
 WebPage* webkitWebPageGetPage(WebKitWebPage *webPage)
@@ -663,9 +646,7 @@ WebKitWebPage* webkitWebPageCreate(WebPage* webPage)
     webPage->setInjectedBundlePageLoaderClient(std::make_unique<PageLoaderClient>(page));
     webPage->setInjectedBundleContextMenuClient(std::make_unique<PageContextMenuClient>(page));
     webPage->setInjectedBundleUIClient(std::make_unique<PageUIClient>(page));
-#if PLATFORM(GTK)
     webPage->setInjectedBundleFormClient(std::make_unique<PageFormClient>(page));
-#endif
 
     return page;
 }
@@ -715,7 +696,6 @@ void webkitWebPageDidReceiveMessage(WebKitWebPage* page, const String& messageNa
         ASSERT_NOT_REACHED();
 }
 
-#if PLATFORM(GTK)
 /**
  * webkit_web_page_get_dom_document:
  * @web_page: a #WebKitWebPage
@@ -727,15 +707,13 @@ void webkitWebPageDidReceiveMessage(WebKitWebPage* page, const String& messageNa
  */
 WebKitDOMDocument* webkit_web_page_get_dom_document(WebKitWebPage* webPage)
 {
-    g_return_val_if_fail(WEBKIT_IS_WEB_PAGE(webPage), 0);
+    g_return_val_if_fail(WEBKIT_IS_WEB_PAGE(webPage), nullptr);
 
-    MainFrame* coreFrame = webPage->priv->webPage->mainFrame();
-    if (!coreFrame)
-        return 0;
+    if (auto* coreFrame = webPage->priv->webPage->mainFrame())
+        return kit(coreFrame->document());
 
-    return kit(coreFrame->document());
+    return nullptr;
 }
-#endif
 
 /**
  * webkit_web_page_get_id:
index 54efbc7..994b9ac 100644 (file)
@@ -66,6 +66,7 @@ void GObjectEventListener::gobjectDestroyed()
 
 void GObjectEventListener::handleEvent(ScriptExecutionContext&, Event& event)
 {
+    G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
     GValue parameters[2] = { G_VALUE_INIT, G_VALUE_INIT };
     g_value_init(&parameters[0], WEBKIT_DOM_TYPE_EVENT_TARGET);
     g_value_set_object(&parameters[0], m_target);
@@ -77,6 +78,7 @@ void GObjectEventListener::handleEvent(ScriptExecutionContext&, Event& event)
     g_closure_invoke(m_handler.get(), 0, 2, parameters, NULL);
     g_value_unset(parameters + 0);
     g_value_unset(parameters + 1);
+    G_GNUC_END_IGNORE_DEPRECATIONS;
 }
 
 bool GObjectEventListener::operator==(const EventListener& listener) const
index a0665b5..ba09d88 100644 (file)
@@ -24,6 +24,8 @@
 
 using namespace WebCore;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 GObjectNodeFilterCondition::~GObjectNodeFilterCondition()
@@ -37,3 +39,4 @@ unsigned short GObjectNodeFilterCondition::acceptNode(Node& node) const
 }
 
 } // namespace WebKit
+G_GNUC_END_IGNORE_DEPRECATIONS;
index a4df82c..905e7b2 100644 (file)
@@ -22,6 +22,8 @@
 #include <wtf/text/CString.h>
 #include <wtf/text/WTFString.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 GObjectXPathNSResolver::~GObjectXPathNSResolver()
@@ -34,3 +36,4 @@ String GObjectXPathNSResolver::lookupNamespaceURI(const String& prefix)
 }
 
 } // namespace WebKit
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 680b165..6bd9aee 100644 (file)
@@ -36,6 +36,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMAttr* kit(WebCore::Attr* obj)
@@ -307,3 +309,4 @@ gchar* webkit_dom_attr_get_local_name(WebKitDOMAttr* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 98597fa..71c4a11 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMAttrClass {
     WebKitDOMNodeClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_attr_get_type(void);
 
 /**
@@ -53,8 +53,10 @@ webkit_dom_attr_get_type(void);
  * @self: A #WebKitDOMAttr
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_attr_get_name(WebKitDOMAttr* self);
 
 /**
@@ -62,8 +64,10 @@ webkit_dom_attr_get_name(WebKitDOMAttr* self);
  * @self: A #WebKitDOMAttr
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_attr_get_specified(WebKitDOMAttr* self);
 
 /**
@@ -71,8 +75,10 @@ webkit_dom_attr_get_specified(WebKitDOMAttr* self);
  * @self: A #WebKitDOMAttr
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_attr_get_value(WebKitDOMAttr* self);
 
 /**
@@ -81,8 +87,10 @@ webkit_dom_attr_get_value(WebKitDOMAttr* self);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_attr_set_value(WebKitDOMAttr* self, const gchar* value, GError** error);
 
 /**
@@ -90,8 +98,10 @@ webkit_dom_attr_set_value(WebKitDOMAttr* self, const gchar* value, GError** erro
  * @self: A #WebKitDOMAttr
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_attr_get_owner_element(WebKitDOMAttr* self);
 
 /**
@@ -101,8 +111,10 @@ webkit_dom_attr_get_owner_element(WebKitDOMAttr* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_attr_get_namespace_uri(WebKitDOMAttr* self);
 
 /**
@@ -112,8 +124,10 @@ webkit_dom_attr_get_namespace_uri(WebKitDOMAttr* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_attr_get_prefix(WebKitDOMAttr* self);
 
 /**
@@ -123,8 +137,10 @@ webkit_dom_attr_get_prefix(WebKitDOMAttr* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_attr_get_local_name(WebKitDOMAttr* self);
 
 G_END_DECLS
index 09d4ac6..6d84c23 100644 (file)
@@ -36,6 +36,8 @@ typedef struct _WebKitDOMBlobPrivate {
     RefPtr<WebCore::Blob> coreObject;
 } WebKitDOMBlobPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMBlob* kit(WebCore::Blob* obj)
@@ -137,3 +139,4 @@ guint64 webkit_dom_blob_get_size(WebKitDOMBlob* self)
     guint64 result = item->size();
     return result;
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index ac50801..a3fb77e 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMBlobClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_blob_get_type(void);
 
 /**
@@ -53,8 +53,10 @@ webkit_dom_blob_get_type(void);
  * @self: A #WebKitDOMBlob
  *
  * Returns: A #guint64
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API guint64
+WEBKIT_DEPRECATED guint64
 webkit_dom_blob_get_size(WebKitDOMBlob* self);
 
 G_END_DECLS
index e01c61f..072c4d0 100644 (file)
@@ -35,6 +35,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCDATASection* kit(WebCore::CDATASection* obj)
@@ -102,3 +104,4 @@ static void webkit_dom_cdata_section_init(WebKitDOMCDATASection* request)
     UNUSED_PARAM(request);
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 6f42489..10468f8 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCDATASectionClass {
     WebKitDOMTextClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_cdata_section_get_type(void);
 
 G_END_DECLS
index 395cc86..3f8bfe6 100644 (file)
@@ -38,6 +38,8 @@ typedef struct _WebKitDOMCSSRulePrivate {
     RefPtr<WebCore::CSSRule> coreObject;
 } WebKitDOMCSSRulePrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCSSRule* kit(WebCore::CSSRule* obj)
@@ -240,3 +242,4 @@ WebKitDOMCSSRule* webkit_dom_css_rule_get_parent_rule(WebKitDOMCSSRule* self)
     return WebKit::kit(gobjectResult.get());
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 430f6f6..59b580a 100644 (file)
@@ -37,41 +37,59 @@ G_BEGIN_DECLS
 #define WEBKIT_DOM_IS_CSS_RULE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  WEBKIT_DOM_TYPE_CSS_RULE))
 #define WEBKIT_DOM_CSS_RULE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  WEBKIT_DOM_TYPE_CSS_RULE, WebKitDOMCSSRuleClass))
 
+#ifndef WEBKIT_DISABLE_DEPRECATED
+
 /**
  * WEBKIT_DOM_CSS_RULE_UNKNOWN_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_UNKNOWN_RULE 0
 
 /**
  * WEBKIT_DOM_CSS_RULE_STYLE_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_STYLE_RULE 1
 
 /**
  * WEBKIT_DOM_CSS_RULE_CHARSET_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_CHARSET_RULE 2
 
 /**
  * WEBKIT_DOM_CSS_RULE_IMPORT_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_IMPORT_RULE 3
 
 /**
  * WEBKIT_DOM_CSS_RULE_MEDIA_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_MEDIA_RULE 4
 
 /**
  * WEBKIT_DOM_CSS_RULE_FONT_FACE_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_FONT_FACE_RULE 5
 
 /**
  * WEBKIT_DOM_CSS_RULE_PAGE_RULE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_RULE_PAGE_RULE 6
 
+#endif /* WEBKIT_DISABLE_DEPRECATED */
+
 struct _WebKitDOMCSSRule {
     WebKitDOMObject parent_instance;
 };
@@ -80,7 +98,7 @@ struct _WebKitDOMCSSRuleClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_css_rule_get_type(void);
 
 /**
@@ -88,8 +106,10 @@ webkit_dom_css_rule_get_type(void);
  * @self: A #WebKitDOMCSSRule
  *
  * Returns: A #gushort
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gushort
+WEBKIT_DEPRECATED gushort
 webkit_dom_css_rule_get_rule_type(WebKitDOMCSSRule* self);
 
 /**
@@ -97,8 +117,10 @@ webkit_dom_css_rule_get_rule_type(WebKitDOMCSSRule* self);
  * @self: A #WebKitDOMCSSRule
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_rule_get_css_text(WebKitDOMCSSRule* self);
 
 /**
@@ -107,8 +129,10 @@ webkit_dom_css_rule_get_css_text(WebKitDOMCSSRule* self);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_rule_set_css_text(WebKitDOMCSSRule* self, const gchar* value, GError** error);
 
 /**
@@ -116,8 +140,10 @@ webkit_dom_css_rule_set_css_text(WebKitDOMCSSRule* self, const gchar* value, GEr
  * @self: A #WebKitDOMCSSRule
  *
  * Returns: (transfer full): A #WebKitDOMCSSStyleSheet
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSStyleSheet*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleSheet*
 webkit_dom_css_rule_get_parent_style_sheet(WebKitDOMCSSRule* self);
 
 /**
@@ -125,8 +151,10 @@ webkit_dom_css_rule_get_parent_style_sheet(WebKitDOMCSSRule* self);
  * @self: A #WebKitDOMCSSRule
  *
  * Returns: (transfer full): A #WebKitDOMCSSRule
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRule*
+WEBKIT_DEPRECATED WebKitDOMCSSRule*
 webkit_dom_css_rule_get_parent_rule(WebKitDOMCSSRule* self);
 
 G_END_DECLS
index c932ade..82d9212 100644 (file)
@@ -37,6 +37,8 @@ typedef struct _WebKitDOMCSSRuleListPrivate {
     RefPtr<WebCore::CSSRuleList> coreObject;
 } WebKitDOMCSSRuleListPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCSSRuleList* kit(WebCore::CSSRuleList* obj)
@@ -149,3 +151,4 @@ gulong webkit_dom_css_rule_list_get_length(WebKitDOMCSSRuleList* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 04deb05..d9a4da5 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCSSRuleListClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_css_rule_list_get_type(void);
 
 /**
@@ -54,8 +54,10 @@ webkit_dom_css_rule_list_get_type(void);
  * @index: A #gulong
  *
  * Returns: (transfer full): A #WebKitDOMCSSRule
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRule*
+WEBKIT_DEPRECATED WebKitDOMCSSRule*
 webkit_dom_css_rule_list_item(WebKitDOMCSSRuleList* self, gulong index);
 
 /**
@@ -63,8 +65,10 @@ webkit_dom_css_rule_list_item(WebKitDOMCSSRuleList* self, gulong index);
  * @self: A #WebKitDOMCSSRuleList
  *
  * Returns: A #gulong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_css_rule_list_get_length(WebKitDOMCSSRuleList* self);
 
 G_END_DECLS
index 918d25d..f4741c9 100644 (file)
@@ -38,6 +38,8 @@ typedef struct _WebKitDOMCSSStyleDeclarationPrivate {
     RefPtr<WebCore::CSSStyleDeclaration> coreObject;
 } WebKitDOMCSSStyleDeclarationPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCSSStyleDeclaration* kit(WebCore::CSSStyleDeclaration* obj)
@@ -303,3 +305,4 @@ WebKitDOMCSSRule* webkit_dom_css_style_declaration_get_parent_rule(WebKitDOMCSSS
     return WebKit::kit(gobjectResult.get());
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 88fe7b8..735fc30 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCSSStyleDeclarationClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_css_style_declaration_get_type(void);
 
 /**
@@ -54,8 +54,10 @@ webkit_dom_css_style_declaration_get_type(void);
  * @propertyName: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_get_property_value(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
 
 /**
@@ -65,8 +67,10 @@ webkit_dom_css_style_declaration_get_property_value(WebKitDOMCSSStyleDeclaration
  * @error: #GError
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_remove_property(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName, GError** error);
 
 /**
@@ -75,8 +79,10 @@ webkit_dom_css_style_declaration_remove_property(WebKitDOMCSSStyleDeclaration* s
  * @propertyName: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_get_property_priority(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
 
 /**
@@ -87,8 +93,10 @@ webkit_dom_css_style_declaration_get_property_priority(WebKitDOMCSSStyleDeclarat
  * @priority: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_style_declaration_set_property(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName, const gchar* value, const gchar* priority, GError** error);
 
 /**
@@ -97,8 +105,10 @@ webkit_dom_css_style_declaration_set_property(WebKitDOMCSSStyleDeclaration* self
  * @index: A #gulong
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_item(WebKitDOMCSSStyleDeclaration* self, gulong index);
 
 /**
@@ -107,8 +117,10 @@ webkit_dom_css_style_declaration_item(WebKitDOMCSSStyleDeclaration* self, gulong
  * @propertyName: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_get_property_shorthand(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
 
 /**
@@ -117,8 +129,10 @@ webkit_dom_css_style_declaration_get_property_shorthand(WebKitDOMCSSStyleDeclara
  * @propertyName: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_css_style_declaration_is_property_implicit(WebKitDOMCSSStyleDeclaration* self, const gchar* propertyName);
 
 /**
@@ -126,8 +140,10 @@ webkit_dom_css_style_declaration_is_property_implicit(WebKitDOMCSSStyleDeclarati
  * @self: A #WebKitDOMCSSStyleDeclaration
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_style_declaration_get_css_text(WebKitDOMCSSStyleDeclaration* self);
 
 /**
@@ -136,8 +152,10 @@ webkit_dom_css_style_declaration_get_css_text(WebKitDOMCSSStyleDeclaration* self
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_style_declaration_set_css_text(WebKitDOMCSSStyleDeclaration* self, const gchar* value, GError** error);
 
 /**
@@ -145,8 +163,10 @@ webkit_dom_css_style_declaration_set_css_text(WebKitDOMCSSStyleDeclaration* self
  * @self: A #WebKitDOMCSSStyleDeclaration
  *
  * Returns: A #gulong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_css_style_declaration_get_length(WebKitDOMCSSStyleDeclaration* self);
 
 /**
@@ -154,8 +174,10 @@ webkit_dom_css_style_declaration_get_length(WebKitDOMCSSStyleDeclaration* self);
  * @self: A #WebKitDOMCSSStyleDeclaration
  *
  * Returns: (transfer full): A #WebKitDOMCSSRule
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRule*
+WEBKIT_DEPRECATED WebKitDOMCSSRule*
 webkit_dom_css_style_declaration_get_parent_rule(WebKitDOMCSSStyleDeclaration* self);
 
 G_END_DECLS
index 0007477..2a112ae 100644 (file)
@@ -34,6 +34,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCSSStyleSheet* kit(WebCore::CSSStyleSheet* obj)
@@ -214,3 +216,4 @@ WebKitDOMCSSRuleList* webkit_dom_css_style_sheet_get_rules(WebKitDOMCSSStyleShee
     return WebKit::kit(gobjectResult.get());
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 9a85b65..a04e04f 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCSSStyleSheetClass {
     WebKitDOMStyleSheetClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_css_style_sheet_get_type(void);
 
 /**
@@ -56,8 +56,10 @@ webkit_dom_css_style_sheet_get_type(void);
  * @error: #GError
  *
  * Returns: A #gulong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_css_style_sheet_insert_rule(WebKitDOMCSSStyleSheet* self, const gchar* rule, gulong index, GError** error);
 
 /**
@@ -66,8 +68,10 @@ webkit_dom_css_style_sheet_insert_rule(WebKitDOMCSSStyleSheet* self, const gchar
  * @index: A #gulong
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_style_sheet_delete_rule(WebKitDOMCSSStyleSheet* self, gulong index, GError** error);
 
 /**
@@ -79,8 +83,10 @@ webkit_dom_css_style_sheet_delete_rule(WebKitDOMCSSStyleSheet* self, gulong inde
  * @error: #GError
  *
  * Returns: A #glong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_css_style_sheet_add_rule(WebKitDOMCSSStyleSheet* self, const gchar* selector, const gchar* style, gulong index, GError** error);
 
 /**
@@ -89,8 +95,10 @@ webkit_dom_css_style_sheet_add_rule(WebKitDOMCSSStyleSheet* self, const gchar* s
  * @index: A #gulong
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_style_sheet_remove_rule(WebKitDOMCSSStyleSheet* self, gulong index, GError** error);
 
 /**
@@ -98,8 +106,10 @@ webkit_dom_css_style_sheet_remove_rule(WebKitDOMCSSStyleSheet* self, gulong inde
  * @self: A #WebKitDOMCSSStyleSheet
  *
  * Returns: (transfer full): A #WebKitDOMCSSRule
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRule*
+WEBKIT_DEPRECATED WebKitDOMCSSRule*
 webkit_dom_css_style_sheet_get_owner_rule(WebKitDOMCSSStyleSheet* self);
 
 /**
@@ -107,8 +117,10 @@ webkit_dom_css_style_sheet_get_owner_rule(WebKitDOMCSSStyleSheet* self);
  * @self: A #WebKitDOMCSSStyleSheet
  *
  * Returns: (transfer full): A #WebKitDOMCSSRuleList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRuleList*
+WEBKIT_DEPRECATED WebKitDOMCSSRuleList*
 webkit_dom_css_style_sheet_get_css_rules(WebKitDOMCSSStyleSheet* self);
 
 /**
@@ -116,8 +128,10 @@ webkit_dom_css_style_sheet_get_css_rules(WebKitDOMCSSStyleSheet* self);
  * @self: A #WebKitDOMCSSStyleSheet
  *
  * Returns: (transfer full): A #WebKitDOMCSSRuleList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSRuleList*
+WEBKIT_DEPRECATED WebKitDOMCSSRuleList*
 webkit_dom_css_style_sheet_get_rules(WebKitDOMCSSStyleSheet* self);
 
 G_END_DECLS
index b3c3e0f..6a9eb59 100644 (file)
@@ -37,6 +37,8 @@ typedef struct _WebKitDOMCSSValuePrivate {
     RefPtr<WebCore::DeprecatedCSSOMValue> coreObject;
 } WebKitDOMCSSValuePrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCSSValue* kit(WebCore::DeprecatedCSSOMValue* obj)
@@ -193,3 +195,4 @@ gushort webkit_dom_css_value_get_css_value_type(WebKitDOMCSSValue* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index d243bbf..26554ae 100644 (file)
@@ -37,26 +37,38 @@ G_BEGIN_DECLS
 #define WEBKIT_DOM_IS_CSS_VALUE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass),  WEBKIT_DOM_TYPE_CSS_VALUE))
 #define WEBKIT_DOM_CSS_VALUE_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS((obj),  WEBKIT_DOM_TYPE_CSS_VALUE, WebKitDOMCSSValueClass))
 
+#ifndef WEBKIT_DISABLE_DEPRECATED
+
 /**
  * WEBKIT_DOM_CSS_VALUE_CSS_INHERIT:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_VALUE_CSS_INHERIT 0
 
 /**
  * WEBKIT_DOM_CSS_VALUE_CSS_PRIMITIVE_VALUE:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_VALUE_CSS_PRIMITIVE_VALUE 1
 
 /**
  * WEBKIT_DOM_CSS_VALUE_CSS_VALUE_LIST:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_VALUE_CSS_VALUE_LIST 2
 
 /**
  * WEBKIT_DOM_CSS_VALUE_CSS_CUSTOM:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_CSS_VALUE_CSS_CUSTOM 3
 
+#endif /* WEBKIT_DISABLE_DEPRECATED */
+
 struct _WebKitDOMCSSValue {
     WebKitDOMObject parent_instance;
 };
@@ -65,7 +77,7 @@ struct _WebKitDOMCSSValueClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_css_value_get_type(void);
 
 /**
@@ -73,8 +85,10 @@ webkit_dom_css_value_get_type(void);
  * @self: A #WebKitDOMCSSValue
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_css_value_get_css_text(WebKitDOMCSSValue* self);
 
 /**
@@ -83,8 +97,10 @@ webkit_dom_css_value_get_css_text(WebKitDOMCSSValue* self);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_css_value_set_css_text(WebKitDOMCSSValue* self, const gchar* value, GError** error);
 
 /**
@@ -92,8 +108,10 @@ webkit_dom_css_value_set_css_text(WebKitDOMCSSValue* self, const gchar* value, G
  * @self: A #WebKitDOMCSSValue
  *
  * Returns: A #gushort
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gushort
+WEBKIT_DEPRECATED gushort
 webkit_dom_css_value_get_css_value_type(WebKitDOMCSSValue* self);
 
 G_END_DECLS
index 620753c..ce90977 100644 (file)
@@ -36,6 +36,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMCharacterData* kit(WebCore::CharacterData* obj)
@@ -256,3 +258,4 @@ gulong webkit_dom_character_data_get_length(WebKitDOMCharacterData* self)
     gulong result = item->length();
     return result;
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 275a5b9..b4f980f 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCharacterDataClass {
     WebKitDOMNodeClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_character_data_get_type(void);
 
 /**
@@ -56,8 +56,10 @@ webkit_dom_character_data_get_type(void);
  * @error: #GError
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_character_data_substring_data(WebKitDOMCharacterData* self, gulong offset, gulong length, GError** error);
 
 /**
@@ -66,8 +68,10 @@ webkit_dom_character_data_substring_data(WebKitDOMCharacterData* self, gulong of
  * @data: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_character_data_append_data(WebKitDOMCharacterData* self, const gchar* data, GError** error);
 
 /**
@@ -77,8 +81,10 @@ webkit_dom_character_data_append_data(WebKitDOMCharacterData* self, const gchar*
  * @data: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_character_data_insert_data(WebKitDOMCharacterData* self, gulong offset, const gchar* data, GError** error);
 
 /**
@@ -88,8 +94,10 @@ webkit_dom_character_data_insert_data(WebKitDOMCharacterData* self, gulong offse
  * @length: A #gulong
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_character_data_delete_data(WebKitDOMCharacterData* self, gulong offset, gulong length, GError** error);
 
 /**
@@ -100,8 +108,10 @@ webkit_dom_character_data_delete_data(WebKitDOMCharacterData* self, gulong offse
  * @data: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_character_data_replace_data(WebKitDOMCharacterData* self, gulong offset, gulong length, const gchar* data, GError** error);
 
 /**
@@ -109,8 +119,10 @@ webkit_dom_character_data_replace_data(WebKitDOMCharacterData* self, gulong offs
  * @self: A #WebKitDOMCharacterData
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_character_data_get_data(WebKitDOMCharacterData* self);
 
 /**
@@ -119,8 +131,10 @@ webkit_dom_character_data_get_data(WebKitDOMCharacterData* self);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_character_data_set_data(WebKitDOMCharacterData* self, const gchar* value, GError** error);
 
 /**
@@ -128,8 +142,10 @@ webkit_dom_character_data_set_data(WebKitDOMCharacterData* self, const gchar* va
  * @self: A #WebKitDOMCharacterData
  *
  * Returns: A #gulong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_character_data_get_length(WebKitDOMCharacterData* self);
 
 G_END_DECLS
index 16126e2..e50fa59 100644 (file)
@@ -37,6 +37,8 @@ typedef struct _WebKitDOMClientRectPrivate {
     RefPtr<WebCore::DOMRect> coreObject;
 } WebKitDOMClientRectPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMClientRect* kit(WebCore::DOMRect* obj)
@@ -240,3 +242,4 @@ gfloat webkit_dom_client_rect_get_height(WebKitDOMClientRect* self)
     g_return_val_if_fail(WEBKIT_DOM_IS_CLIENT_RECT(self), 0);
     return WebKit::core(self)->height();
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index b59d970..b491d22 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMClientRectClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_client_rect_get_type(void);
 
 /**
@@ -57,8 +57,10 @@ webkit_dom_client_rect_get_type(void);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_top(WebKitDOMClientRect* self);
 
 /**
@@ -70,8 +72,10 @@ webkit_dom_client_rect_get_top(WebKitDOMClientRect* self);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_right(WebKitDOMClientRect* self);
 
 /**
@@ -83,8 +87,10 @@ webkit_dom_client_rect_get_right(WebKitDOMClientRect* self);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_bottom(WebKitDOMClientRect* self);
 
 /**
@@ -96,8 +102,10 @@ webkit_dom_client_rect_get_bottom(WebKitDOMClientRect* self);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_left(WebKitDOMClientRect* self);
 
 /**
@@ -109,8 +117,10 @@ webkit_dom_client_rect_get_left(WebKitDOMClientRect* self);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_width(WebKitDOMClientRect* self);
 
 /**
@@ -122,8 +132,10 @@ webkit_dom_client_rect_get_width(WebKitDOMClientRect* self);
  * Returns: A #gfloat
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gfloat
+WEBKIT_DEPRECATED gfloat
 webkit_dom_client_rect_get_height(WebKitDOMClientRect* self);
 
 G_END_DECLS
index 071c6e4..95036ad 100644 (file)
@@ -38,6 +38,8 @@ typedef struct _WebKitDOMClientRectListPrivate {
     RefPtr<WebCore::DOMRectList> coreObject;
 } WebKitDOMClientRectListPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMClientRectList* kit(WebCore::DOMRectList* obj)
@@ -144,3 +146,4 @@ gulong webkit_dom_client_rect_list_get_length(WebKitDOMClientRectList* self)
     g_return_val_if_fail(WEBKIT_DOM_IS_CLIENT_RECT_LIST(self), 0);
     return WebKit::core(self)->length();
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index eb9a4f7..2d9c05f 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMClientRectListClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_client_rect_list_get_type(void);
 
 /**
@@ -57,8 +57,10 @@ webkit_dom_client_rect_list_get_type(void);
  * Returns: A #gulong
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_client_rect_list_get_length(WebKitDOMClientRectList* self);
 
 /**
@@ -71,8 +73,10 @@ webkit_dom_client_rect_list_get_length(WebKitDOMClientRectList* self);
  * Returns: (transfer full): A #WebKitDOMClientRect
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMClientRect* webkit_dom_client_rect_list_item(WebKitDOMClientRectList* self, gulong index);
+WEBKIT_DEPRECATED WebKitDOMClientRect* webkit_dom_client_rect_list_item(WebKitDOMClientRectList* self, gulong index);
 
 G_END_DECLS
 
index ede9e0c..eab34fa 100644 (file)
@@ -35,6 +35,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMComment* kit(WebCore::Comment* obj)
@@ -102,3 +104,4 @@ static void webkit_dom_comment_init(WebKitDOMComment* request)
     UNUSED_PARAM(request);
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 66bfb63..fc73ab0 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMCommentClass {
     WebKitDOMCharacterDataClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_comment_get_type(void);
 
 G_END_DECLS
index 445926e..f91cf50 100644 (file)
@@ -42,6 +42,8 @@ typedef struct _WebKitDOMDOMImplementationPrivate {
     RefPtr<WebCore::DOMImplementation> coreObject;
 } WebKitDOMDOMImplementationPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDOMImplementation* kit(WebCore::DOMImplementation* obj)
@@ -181,3 +183,4 @@ WebKitDOMHTMLDocument* webkit_dom_dom_implementation_create_html_document(WebKit
     return WebKit::kit(gobjectResult.get());
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 0e92e81..2ec042f 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDOMImplementationClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_dom_implementation_get_type(void);
 
 /**
@@ -55,8 +55,10 @@ webkit_dom_dom_implementation_get_type(void);
  * @version: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_implementation_has_feature(WebKitDOMDOMImplementation* self, const gchar* feature, const gchar* version);
 
 /**
@@ -68,8 +70,10 @@ webkit_dom_dom_implementation_has_feature(WebKitDOMDOMImplementation* self, cons
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMDocumentType
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDocumentType*
+WEBKIT_DEPRECATED WebKitDOMDocumentType*
 webkit_dom_dom_implementation_create_document_type(WebKitDOMDOMImplementation* self, const gchar* qualifiedName, const gchar* publicId, const gchar* systemId, GError** error);
 
 /**
@@ -81,8 +85,10 @@ webkit_dom_dom_implementation_create_document_type(WebKitDOMDOMImplementation* s
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMDocument
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDocument*
+WEBKIT_DEPRECATED WebKitDOMDocument*
 webkit_dom_dom_implementation_create_document(WebKitDOMDOMImplementation* self, const gchar* namespaceURI, const gchar* qualifiedName, WebKitDOMDocumentType* doctype, GError** error);
 
 /**
@@ -93,8 +99,10 @@ webkit_dom_dom_implementation_create_document(WebKitDOMDOMImplementation* self,
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMCSSStyleSheet
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSStyleSheet*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleSheet*
 webkit_dom_dom_implementation_create_css_style_sheet(WebKitDOMDOMImplementation* self, const gchar* title, const gchar* media, GError** error);
 
 /**
@@ -103,8 +111,10 @@ webkit_dom_dom_implementation_create_css_style_sheet(WebKitDOMDOMImplementation*
  * @title: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMHTMLDocument
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLDocument*
+WEBKIT_DEPRECATED WebKitDOMHTMLDocument*
 webkit_dom_dom_implementation_create_html_document(WebKitDOMDOMImplementation* self, const gchar* title);
 
 G_END_DECLS
index f85f254..d0947e4 100644 (file)
@@ -39,6 +39,8 @@ typedef struct _WebKitDOMDOMSelectionPrivate {
     RefPtr<WebCore::DOMSelection> coreObject;
 } WebKitDOMDOMSelectionPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDOMSelection* kit(WebCore::DOMSelection* obj)
@@ -529,3 +531,4 @@ gulong webkit_dom_dom_selection_get_extent_offset(WebKitDOMDOMSelection* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index ae558b9..9ca07ef 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDOMSelectionClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_dom_selection_get_type(void);
 
 /**
@@ -55,8 +55,10 @@ webkit_dom_dom_selection_get_type(void);
  * @offset: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_collapse(WebKitDOMDOMSelection* self, WebKitDOMNode* node, gulong offset);
 
 /**
@@ -65,8 +67,10 @@ webkit_dom_dom_selection_collapse(WebKitDOMDOMSelection* self, WebKitDOMNode* no
  * @error: #GError
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_collapse_to_end(WebKitDOMDOMSelection* self, GError** error);
 
 /**
@@ -75,8 +79,10 @@ webkit_dom_dom_selection_collapse_to_end(WebKitDOMDOMSelection* self, GError** e
  * @error: #GError
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_collapse_to_start(WebKitDOMDOMSelection* self, GError** error);
 
 /**
@@ -84,8 +90,10 @@ webkit_dom_dom_selection_collapse_to_start(WebKitDOMDOMSelection* self, GError**
  * @self: A #WebKitDOMDOMSelection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_delete_from_document(WebKitDOMDOMSelection* self);
 
 /**
@@ -97,8 +105,10 @@ webkit_dom_dom_selection_delete_from_document(WebKitDOMDOMSelection* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_selection_contains_node(WebKitDOMDOMSelection* self, WebKitDOMNode* node, gboolean allowPartial);
 
 /**
@@ -107,8 +117,10 @@ webkit_dom_dom_selection_contains_node(WebKitDOMDOMSelection* self, WebKitDOMNod
  * @node: A #WebKitDOMNode
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_select_all_children(WebKitDOMDOMSelection* self, WebKitDOMNode* node);
 
 /**
@@ -119,8 +131,10 @@ webkit_dom_dom_selection_select_all_children(WebKitDOMDOMSelection* self, WebKit
  * @error: #GError
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_extend(WebKitDOMDOMSelection* self, WebKitDOMNode* node, gulong offset, GError** error);
 
 /**
@@ -132,8 +146,10 @@ webkit_dom_dom_selection_extend(WebKitDOMDOMSelection* self, WebKitDOMNode* node
  * Returns: (transfer full): A #WebKitDOMRange
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMRange*
+WEBKIT_DEPRECATED WebKitDOMRange*
 webkit_dom_dom_selection_get_range_at(WebKitDOMDOMSelection* self, gulong index, GError** error);
 
 /**
@@ -141,8 +157,10 @@ webkit_dom_dom_selection_get_range_at(WebKitDOMDOMSelection* self, gulong index,
  * @self: A #WebKitDOMDOMSelection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_remove_all_ranges(WebKitDOMDOMSelection* self);
 
 /**
@@ -151,8 +169,10 @@ webkit_dom_dom_selection_remove_all_ranges(WebKitDOMDOMSelection* self);
  * @range: A #WebKitDOMRange
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_add_range(WebKitDOMDOMSelection* self, WebKitDOMRange* range);
 
 /**
@@ -164,8 +184,10 @@ webkit_dom_dom_selection_add_range(WebKitDOMDOMSelection* self, WebKitDOMRange*
  * @extentOffset: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_set_base_and_extent(WebKitDOMDOMSelection* self, WebKitDOMNode* baseNode, gulong baseOffset, WebKitDOMNode* extentNode, gulong extentOffset);
 
 /**
@@ -175,8 +197,10 @@ webkit_dom_dom_selection_set_base_and_extent(WebKitDOMDOMSelection* self, WebKit
  * @offset: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_set_position(WebKitDOMDOMSelection* self, WebKitDOMNode* node, gulong offset);
 
 /**
@@ -184,8 +208,10 @@ webkit_dom_dom_selection_set_position(WebKitDOMDOMSelection* self, WebKitDOMNode
  * @self: A #WebKitDOMDOMSelection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_empty(WebKitDOMDOMSelection* self);
 
 /**
@@ -196,8 +222,10 @@ webkit_dom_dom_selection_empty(WebKitDOMDOMSelection* self);
  * @granularity: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_selection_modify(WebKitDOMDOMSelection* self, const gchar* alter, const gchar* direction, const gchar* granularity);
 
 /**
@@ -207,8 +235,10 @@ webkit_dom_dom_selection_modify(WebKitDOMDOMSelection* self, const gchar* alter,
  * Returns: (transfer none): A #WebKitDOMNode
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_dom_selection_get_anchor_node(WebKitDOMDOMSelection* self);
 
 /**
@@ -218,8 +248,10 @@ webkit_dom_dom_selection_get_anchor_node(WebKitDOMDOMSelection* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_selection_get_anchor_offset(WebKitDOMDOMSelection* self);
 
 /**
@@ -229,8 +261,10 @@ webkit_dom_dom_selection_get_anchor_offset(WebKitDOMDOMSelection* self);
  * Returns: (transfer none): A #WebKitDOMNode
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_dom_selection_get_focus_node(WebKitDOMDOMSelection* self);
 
 /**
@@ -240,8 +274,10 @@ webkit_dom_dom_selection_get_focus_node(WebKitDOMDOMSelection* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_selection_get_focus_offset(WebKitDOMDOMSelection* self);
 
 /**
@@ -251,8 +287,10 @@ webkit_dom_dom_selection_get_focus_offset(WebKitDOMDOMSelection* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_selection_get_is_collapsed(WebKitDOMDOMSelection* self);
 
 /**
@@ -262,8 +300,10 @@ webkit_dom_dom_selection_get_is_collapsed(WebKitDOMDOMSelection* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_selection_get_range_count(WebKitDOMDOMSelection* self);
 
 /**
@@ -273,8 +313,10 @@ webkit_dom_dom_selection_get_range_count(WebKitDOMDOMSelection* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_selection_get_selection_type(WebKitDOMDOMSelection* self);
 
 /**
@@ -284,8 +326,10 @@ webkit_dom_dom_selection_get_selection_type(WebKitDOMDOMSelection* self);
  * Returns: (transfer none): A #WebKitDOMNode
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_dom_selection_get_base_node(WebKitDOMDOMSelection* self);
 
 /**
@@ -295,8 +339,10 @@ webkit_dom_dom_selection_get_base_node(WebKitDOMDOMSelection* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_selection_get_base_offset(WebKitDOMDOMSelection* self);
 
 /**
@@ -306,8 +352,10 @@ webkit_dom_dom_selection_get_base_offset(WebKitDOMDOMSelection* self);
  * Returns: (transfer none): A #WebKitDOMNode
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_dom_selection_get_extent_node(WebKitDOMDOMSelection* self);
 
 /**
@@ -317,8 +365,10 @@ webkit_dom_dom_selection_get_extent_node(WebKitDOMDOMSelection* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_selection_get_extent_offset(WebKitDOMDOMSelection* self);
 
 G_END_DECLS
index 9a92173..65c7fbe 100644 (file)
@@ -37,6 +37,8 @@ typedef struct _WebKitDOMDOMTokenListPrivate {
     RefPtr<WebCore::DOMTokenList> coreObject;
 } WebKitDOMDOMTokenListPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDOMTokenList* kit(WebCore::DOMTokenList* obj)
@@ -280,3 +282,4 @@ void webkit_dom_dom_token_list_set_value(WebKitDOMDOMTokenList* self, const gcha
     item->setValue(convertedValue);
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 223f0e2..603db71 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDOMTokenListClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_dom_token_list_get_type(void);
 
 /**
@@ -56,8 +56,10 @@ webkit_dom_dom_token_list_get_type(void);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_token_list_item(WebKitDOMDOMTokenList* self, gulong index);
 
 /**
@@ -68,8 +70,10 @@ webkit_dom_dom_token_list_item(WebKitDOMDOMTokenList* self, gulong index);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_token_list_contains(WebKitDOMDOMTokenList* self, const gchar* token);
 
 /**
@@ -79,8 +83,10 @@ webkit_dom_dom_token_list_contains(WebKitDOMDOMTokenList* self, const gchar* tok
  * @...: list of #gchar ended by %NULL.
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_token_list_add(WebKitDOMDOMTokenList* self, GError** error, ...);
 
 /**
@@ -90,8 +96,10 @@ webkit_dom_dom_token_list_add(WebKitDOMDOMTokenList* self, GError** error, ...);
  * @...: list of #gchar ended by %NULL.
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_token_list_remove(WebKitDOMDOMTokenList* self, GError** error, ...);
 
 /**
@@ -104,8 +112,10 @@ webkit_dom_dom_token_list_remove(WebKitDOMDOMTokenList* self, GError** error, ..
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_token_list_toggle(WebKitDOMDOMTokenList* self, const gchar* token, gboolean force, GError** error);
 
 /**
@@ -116,8 +126,10 @@ webkit_dom_dom_token_list_toggle(WebKitDOMDOMTokenList* self, const gchar* token
  * @error: #GError
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_token_list_replace(WebKitDOMDOMTokenList* self, const gchar* token, const gchar* newToken, GError** error);
 
 /**
@@ -127,8 +139,10 @@ webkit_dom_dom_token_list_replace(WebKitDOMDOMTokenList* self, const gchar* toke
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_token_list_get_length(WebKitDOMDOMTokenList* self);
 
 /**
@@ -138,8 +152,10 @@ webkit_dom_dom_token_list_get_length(WebKitDOMDOMTokenList* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_token_list_get_value(WebKitDOMDOMTokenList* self);
 
 /**
@@ -148,8 +164,10 @@ webkit_dom_dom_token_list_get_value(WebKitDOMDOMTokenList* self);
  * @value: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_token_list_set_value(WebKitDOMDOMTokenList* self, const gchar* value);
 
 G_END_DECLS
index 75dfb93..9a32adf 100644 (file)
@@ -48,6 +48,8 @@ typedef struct _WebKitDOMDOMWindowPrivate {
     RefPtr<WebCore::DOMWindow> coreObject;
 } WebKitDOMDOMWindowPrivate;
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDOMWindow* kit(WebCore::DOMWindow* obj)
@@ -1057,3 +1059,4 @@ gboolean webkit_dom_dom_window_webkit_message_handlers_post_message(WebKitDOMDOM
 
     return TRUE;
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index b548fcb..c0f54b8 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDOMWindowClass {
     WebKitDOMObjectClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_dom_window_get_type(void);
 
 /**
@@ -55,8 +55,10 @@ webkit_dom_dom_window_get_type(void);
  * Returns: (transfer full): A #WebKitDOMDOMSelection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMSelection*
+WEBKIT_DEPRECATED WebKitDOMDOMSelection*
 webkit_dom_dom_window_get_selection(WebKitDOMDOMWindow* self);
 
 /**
@@ -64,8 +66,10 @@ webkit_dom_dom_window_get_selection(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_focus(WebKitDOMDOMWindow* self);
 
 /**
@@ -73,8 +77,10 @@ webkit_dom_dom_window_focus(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_blur(WebKitDOMDOMWindow* self);
 
 /**
@@ -82,8 +88,10 @@ webkit_dom_dom_window_blur(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_close(WebKitDOMDOMWindow* self);
 
 /**
@@ -91,8 +99,10 @@ webkit_dom_dom_window_close(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_print(WebKitDOMDOMWindow* self);
 
 /**
@@ -100,8 +110,10 @@ webkit_dom_dom_window_print(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_stop(WebKitDOMDOMWindow* self);
 
 /**
@@ -110,8 +122,10 @@ webkit_dom_dom_window_stop(WebKitDOMDOMWindow* self);
  * @message: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_alert(WebKitDOMDOMWindow* self, const gchar* message);
 
 /**
@@ -122,8 +136,10 @@ webkit_dom_dom_window_alert(WebKitDOMDOMWindow* self, const gchar* message);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_window_confirm(WebKitDOMDOMWindow* self, const gchar* message);
 
 /**
@@ -135,8 +151,10 @@ webkit_dom_dom_window_confirm(WebKitDOMDOMWindow* self, const gchar* message);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_window_prompt(WebKitDOMDOMWindow* self, const gchar* message, const gchar* defaultValue);
 
 /**
@@ -153,8 +171,10 @@ webkit_dom_dom_window_prompt(WebKitDOMDOMWindow* self, const gchar* message, con
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_window_find(WebKitDOMDOMWindow* self, const gchar* string, gboolean caseSensitive, gboolean backwards, gboolean wrap, gboolean wholeWord, gboolean searchInFrames, gboolean showDialog);
 
 /**
@@ -164,8 +184,10 @@ webkit_dom_dom_window_find(WebKitDOMDOMWindow* self, const gchar* string, gboole
  * @y: A #gdouble
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_scroll_by(WebKitDOMDOMWindow* self, gdouble x, gdouble y);
 
 /**
@@ -175,8 +197,10 @@ webkit_dom_dom_window_scroll_by(WebKitDOMDOMWindow* self, gdouble x, gdouble y);
  * @y: A #gdouble
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_scroll_to(WebKitDOMDOMWindow* self, gdouble x, gdouble y);
 
 /**
@@ -186,8 +210,10 @@ webkit_dom_dom_window_scroll_to(WebKitDOMDOMWindow* self, gdouble x, gdouble y);
  * @y: A #gfloat
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_move_by(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
 
 /**
@@ -197,8 +223,10 @@ webkit_dom_dom_window_move_by(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
  * @y: A #gfloat
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_move_to(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
 
 /**
@@ -208,8 +236,10 @@ webkit_dom_dom_window_move_to(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
  * @y: A #gfloat
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_resize_by(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
 
 /**
@@ -219,8 +249,10 @@ webkit_dom_dom_window_resize_by(WebKitDOMDOMWindow* self, gfloat x, gfloat y);
  * @height: A #gfloat
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_resize_to(WebKitDOMDOMWindow* self, gfloat width, gfloat height);
 
 /**
@@ -232,8 +264,10 @@ webkit_dom_dom_window_resize_to(WebKitDOMDOMWindow* self, gfloat width, gfloat h
  * Returns: (transfer full): A #WebKitDOMCSSStyleDeclaration
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMCSSStyleDeclaration*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleDeclaration*
 webkit_dom_dom_window_get_computed_style(WebKitDOMDOMWindow* self, WebKitDOMElement* element, const gchar* pseudoElement);
 
 /**
@@ -241,8 +275,10 @@ webkit_dom_dom_window_get_computed_style(WebKitDOMDOMWindow* self, WebKitDOMElem
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_capture_events(WebKitDOMDOMWindow* self);
 
 /**
@@ -250,8 +286,10 @@ webkit_dom_dom_window_capture_events(WebKitDOMDOMWindow* self);
  * @self: A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_release_events(WebKitDOMDOMWindow* self);
 
 /**
@@ -261,8 +299,10 @@ webkit_dom_dom_window_release_events(WebKitDOMDOMWindow* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_dom_window_get_frame_element(WebKitDOMDOMWindow* self);
 
 /**
@@ -272,8 +312,10 @@ webkit_dom_dom_window_get_frame_element(WebKitDOMDOMWindow* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_window_get_offscreen_buffering(WebKitDOMDOMWindow* self);
 
 /**
@@ -283,8 +325,10 @@ webkit_dom_dom_window_get_offscreen_buffering(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_outer_height(WebKitDOMDOMWindow* self);
 
 /**
@@ -294,8 +338,10 @@ webkit_dom_dom_window_get_outer_height(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_outer_width(WebKitDOMDOMWindow* self);
 
 /**
@@ -305,8 +351,10 @@ webkit_dom_dom_window_get_outer_width(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_inner_height(WebKitDOMDOMWindow* self);
 
 /**
@@ -316,8 +364,10 @@ webkit_dom_dom_window_get_inner_height(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_inner_width(WebKitDOMDOMWindow* self);
 
 /**
@@ -327,8 +377,10 @@ webkit_dom_dom_window_get_inner_width(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_screen_x(WebKitDOMDOMWindow* self);
 
 /**
@@ -338,8 +390,10 @@ webkit_dom_dom_window_get_screen_x(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_screen_y(WebKitDOMDOMWindow* self);
 
 /**
@@ -349,8 +403,10 @@ webkit_dom_dom_window_get_screen_y(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_screen_left(WebKitDOMDOMWindow* self);
 
 /**
@@ -360,8 +416,10 @@ webkit_dom_dom_window_get_screen_left(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_screen_top(WebKitDOMDOMWindow* self);
 
 /**
@@ -371,8 +429,10 @@ webkit_dom_dom_window_get_screen_top(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_scroll_x(WebKitDOMDOMWindow* self);
 
 /**
@@ -382,8 +442,10 @@ webkit_dom_dom_window_get_scroll_x(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_scroll_y(WebKitDOMDOMWindow* self);
 
 /**
@@ -393,8 +455,10 @@ webkit_dom_dom_window_get_scroll_y(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_page_x_offset(WebKitDOMDOMWindow* self);
 
 /**
@@ -404,8 +468,10 @@ webkit_dom_dom_window_get_page_x_offset(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_page_y_offset(WebKitDOMDOMWindow* self);
 
 /**
@@ -415,8 +481,10 @@ webkit_dom_dom_window_get_page_y_offset(WebKitDOMDOMWindow* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_window_get_closed(WebKitDOMDOMWindow* self);
 
 /**
@@ -426,8 +494,10 @@ webkit_dom_dom_window_get_closed(WebKitDOMDOMWindow* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_dom_window_get_length(WebKitDOMDOMWindow* self);
 
 /**
@@ -437,8 +507,10 @@ webkit_dom_dom_window_get_length(WebKitDOMDOMWindow* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_window_get_name(WebKitDOMDOMWindow* self);
 
 /**
@@ -447,8 +519,10 @@ webkit_dom_dom_window_get_name(WebKitDOMDOMWindow* self);
  * @value: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_set_name(WebKitDOMDOMWindow* self, const gchar* value);
 
 /**
@@ -458,8 +532,10 @@ webkit_dom_dom_window_set_name(WebKitDOMDOMWindow* self, const gchar* value);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_window_get_status(WebKitDOMDOMWindow* self);
 
 /**
@@ -468,8 +544,10 @@ webkit_dom_dom_window_get_status(WebKitDOMDOMWindow* self);
  * @value: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_set_status(WebKitDOMDOMWindow* self, const gchar* value);
 
 /**
@@ -479,8 +557,10 @@ webkit_dom_dom_window_set_status(WebKitDOMDOMWindow* self, const gchar* value);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_dom_window_get_default_status(WebKitDOMDOMWindow* self);
 
 /**
@@ -489,8 +569,10 @@ webkit_dom_dom_window_get_default_status(WebKitDOMDOMWindow* self);
  * @value: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_dom_window_set_default_status(WebKitDOMDOMWindow* self, const gchar* value);
 
 /**
@@ -500,8 +582,10 @@ webkit_dom_dom_window_set_default_status(WebKitDOMDOMWindow* self, const gchar*
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_self(WebKitDOMDOMWindow* self);
 
 /**
@@ -511,8 +595,10 @@ webkit_dom_dom_window_get_self(WebKitDOMDOMWindow* self);
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_window(WebKitDOMDOMWindow* self);
 
 /**
@@ -522,8 +608,10 @@ webkit_dom_dom_window_get_window(WebKitDOMDOMWindow* self);
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_frames(WebKitDOMDOMWindow* self);
 
 /**
@@ -533,8 +621,10 @@ webkit_dom_dom_window_get_frames(WebKitDOMDOMWindow* self);
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_opener(WebKitDOMDOMWindow* self);
 
 /**
@@ -544,8 +634,10 @@ webkit_dom_dom_window_get_opener(WebKitDOMDOMWindow* self);
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_parent(WebKitDOMDOMWindow* self);
 
 /**
@@ -555,8 +647,10 @@ webkit_dom_dom_window_get_parent(WebKitDOMDOMWindow* self);
  * Returns: (transfer full): A #WebKitDOMDOMWindow
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_dom_window_get_top(WebKitDOMDOMWindow* self);
 
 /**
@@ -566,8 +660,10 @@ webkit_dom_dom_window_get_top(WebKitDOMDOMWindow* self);
  * Returns: (transfer none): A #WebKitDOMDocument
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMDocument*
+WEBKIT_DEPRECATED WebKitDOMDocument*
 webkit_dom_dom_window_get_document(WebKitDOMDOMWindow* self);
 
 /**
@@ -577,8 +673,10 @@ webkit_dom_dom_window_get_document(WebKitDOMDOMWindow* self);
  * Returns: A #gdouble
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_dom_window_get_device_pixel_ratio(WebKitDOMDOMWindow* self);
 
 /**
@@ -588,8 +686,10 @@ webkit_dom_dom_window_get_device_pixel_ratio(WebKitDOMDOMWindow* self);
  * Returns: A #glong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_dom_window_get_orientation(WebKitDOMDOMWindow* self);
 
 /**
@@ -601,8 +701,10 @@ webkit_dom_dom_window_get_orientation(WebKitDOMDOMWindow* self);
  * Returns: Whether the message was successfully sent.
  *
  * Since: 2.8
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_dom_window_webkit_message_handlers_post_message(WebKitDOMDOMWindow* window, const gchar* handler, const gchar* message);
 
 G_END_DECLS
index ec70f38..0d89352 100644 (file)
@@ -38,6 +38,8 @@
 #include <wtf/RefPtr.h>
 #include <wtf/text/WTFString.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 gchar* webkit_dom_html_element_get_inner_html(WebKitDOMHTMLElement* self)
 {
     g_return_val_if_fail(WEBKIT_DOM_IS_HTML_ELEMENT(self), nullptr);
@@ -325,3 +327,4 @@ gchar* webkit_dom_element_get_webkit_region_overset(WebKitDOMElement*)
     g_warning("%s: CSS Regions support has been removed, this function does nothing.", __func__);
     return nullptr;
 }
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 4a83e03..669a6a1 100644 (file)
@@ -55,8 +55,10 @@ webkit_dom_document_get_type(void);
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_create_element(WebKitDOMDocument* self, const gchar* tagName, GError** error);
 
 /**
@@ -64,8 +66,10 @@ webkit_dom_document_create_element(WebKitDOMDocument* self, const gchar* tagName
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMDocumentFragment
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDocumentFragment*
+WEBKIT_DEPRECATED WebKitDOMDocumentFragment*
 webkit_dom_document_create_document_fragment(WebKitDOMDocument* self);
 
 /**
@@ -74,8 +78,10 @@ webkit_dom_document_create_document_fragment(WebKitDOMDocument* self);
  * @data: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMText
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMText*
+WEBKIT_DEPRECATED WebKitDOMText*
 webkit_dom_document_create_text_node(WebKitDOMDocument* self, const gchar* data);
 
 /**
@@ -84,8 +90,10 @@ webkit_dom_document_create_text_node(WebKitDOMDocument* self, const gchar* data)
  * @data: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMComment
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMComment*
+WEBKIT_DEPRECATED WebKitDOMComment*
 webkit_dom_document_create_comment(WebKitDOMDocument* self, const gchar* data);
 
 /**
@@ -95,8 +103,10 @@ webkit_dom_document_create_comment(WebKitDOMDocument* self, const gchar* data);
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMCDATASection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCDATASection*
+WEBKIT_DEPRECATED WebKitDOMCDATASection*
 webkit_dom_document_create_cdata_section(WebKitDOMDocument* self, const gchar* data, GError** error);
 
 /**
@@ -107,8 +117,10 @@ webkit_dom_document_create_cdata_section(WebKitDOMDocument* self, const gchar* d
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMProcessingInstruction
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMProcessingInstruction*
+WEBKIT_DEPRECATED WebKitDOMProcessingInstruction*
 webkit_dom_document_create_processing_instruction(WebKitDOMDocument* self, const gchar* target, const gchar* data, GError** error);
 
 /**
@@ -118,8 +130,10 @@ webkit_dom_document_create_processing_instruction(WebKitDOMDocument* self, const
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_document_create_attribute(WebKitDOMDocument* self, const gchar* name, GError** error);
 
 /**
@@ -130,8 +144,10 @@ webkit_dom_document_create_attribute(WebKitDOMDocument* self, const gchar* name,
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_elements_by_tag_name_as_html_collection(WebKitDOMDocument* self, const gchar* tagname);
 
 /**
@@ -142,8 +158,10 @@ webkit_dom_document_get_elements_by_tag_name_as_html_collection(WebKitDOMDocumen
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMNode
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_document_import_node(WebKitDOMDocument* self, WebKitDOMNode* importedNode, gboolean deep, GError** error);
 
 /**
@@ -154,8 +172,10 @@ webkit_dom_document_import_node(WebKitDOMDocument* self, WebKitDOMNode* imported
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_create_element_ns(WebKitDOMDocument* self, const gchar* namespaceURI, const gchar* qualifiedName, GError** error);
 
 /**
@@ -166,8 +186,10 @@ webkit_dom_document_create_element_ns(WebKitDOMDocument* self, const gchar* name
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_document_create_attribute_ns(WebKitDOMDocument* self, const gchar* namespaceURI, const gchar* qualifiedName, GError** error);
 
 /**
@@ -179,8 +201,10 @@ webkit_dom_document_create_attribute_ns(WebKitDOMDocument* self, const gchar* na
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_elements_by_tag_name_ns_as_html_collection(WebKitDOMDocument* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
@@ -190,8 +214,10 @@ webkit_dom_document_get_elements_by_tag_name_ns_as_html_collection(WebKitDOMDocu
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMNode
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNode*
+WEBKIT_DEPRECATED WebKitDOMNode*
 webkit_dom_document_adopt_node(WebKitDOMDocument* self, WebKitDOMNode* source, GError** error);
 
 /**
@@ -201,8 +227,10 @@ webkit_dom_document_adopt_node(WebKitDOMDocument* self, WebKitDOMNode* source, G
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMEvent
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMEvent*
+WEBKIT_DEPRECATED WebKitDOMEvent*
 webkit_dom_document_create_event(WebKitDOMDocument* self, const gchar* eventType, GError** error);
 
 /**
@@ -210,8 +238,10 @@ webkit_dom_document_create_event(WebKitDOMDocument* self, const gchar* eventType
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMRange
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMRange*
+WEBKIT_DEPRECATED WebKitDOMRange*
 webkit_dom_document_create_range(WebKitDOMDocument* self);
 
 /**
@@ -224,8 +254,10 @@ webkit_dom_document_create_range(WebKitDOMDocument* self);
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMNodeIterator
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNodeIterator*
+WEBKIT_DEPRECATED WebKitDOMNodeIterator*
 webkit_dom_document_create_node_iterator(WebKitDOMDocument* self, WebKitDOMNode* root, gulong whatToShow, WebKitDOMNodeFilter* filter, gboolean expandEntityReferences, GError** error);
 
 /**
@@ -238,8 +270,10 @@ webkit_dom_document_create_node_iterator(WebKitDOMDocument* self, WebKitDOMNode*
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMTreeWalker
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMTreeWalker*
+WEBKIT_DEPRECATED WebKitDOMTreeWalker*
 webkit_dom_document_create_tree_walker(WebKitDOMDocument* self, WebKitDOMNode* root, gulong whatToShow, WebKitDOMNodeFilter* filter, gboolean expandEntityReferences, GError** error);
 
 /**
@@ -249,8 +283,10 @@ webkit_dom_document_create_tree_walker(WebKitDOMDocument* self, WebKitDOMNode* r
  * @pseudoElement: (allow-none): A #gchar
  *
  * Returns: (transfer full): A #WebKitDOMCSSStyleDeclaration
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSStyleDeclaration*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleDeclaration*
 webkit_dom_document_get_override_style(WebKitDOMDocument* self, WebKitDOMElement* element, const gchar* pseudoElement);
 
 /**
@@ -261,8 +297,10 @@ webkit_dom_document_get_override_style(WebKitDOMDocument* self, WebKitDOMElement
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMXPathExpression
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMXPathExpression*
+WEBKIT_DEPRECATED WebKitDOMXPathExpression*
 webkit_dom_document_create_expression(WebKitDOMDocument* self, const gchar* expression, WebKitDOMXPathNSResolver* resolver, GError** error);
 
 /**
@@ -271,8 +309,10 @@ webkit_dom_document_create_expression(WebKitDOMDocument* self, const gchar* expr
  * @nodeResolver: A #WebKitDOMNode
  *
  * Returns: (transfer full): A #WebKitDOMXPathNSResolver
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMXPathNSResolver*
+WEBKIT_DEPRECATED WebKitDOMXPathNSResolver*
 webkit_dom_document_create_ns_resolver(WebKitDOMDocument* self, WebKitDOMNode* nodeResolver);
 
 /**
@@ -286,8 +326,10 @@ webkit_dom_document_create_ns_resolver(WebKitDOMDocument* self, WebKitDOMNode* n
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMXPathResult
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMXPathResult*
+WEBKIT_DEPRECATED WebKitDOMXPathResult*
 webkit_dom_document_evaluate(WebKitDOMDocument* self, const gchar* expression, WebKitDOMNode* contextNode, WebKitDOMXPathNSResolver* resolver, gushort type, WebKitDOMXPathResult* inResult, GError** error);
 
 /**
@@ -298,8 +340,10 @@ webkit_dom_document_evaluate(WebKitDOMDocument* self, const gchar* expression, W
  * @value: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_exec_command(WebKitDOMDocument* self, const gchar* command, gboolean userInterface, const gchar* value);
 
 /**
@@ -308,8 +352,10 @@ webkit_dom_document_exec_command(WebKitDOMDocument* self, const gchar* command,
  * @command: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_query_command_enabled(WebKitDOMDocument* self, const gchar* command);
 
 /**
@@ -318,8 +364,10 @@ webkit_dom_document_query_command_enabled(WebKitDOMDocument* self, const gchar*
  * @command: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_query_command_indeterm(WebKitDOMDocument* self, const gchar* command);
 
 /**
@@ -328,8 +376,10 @@ webkit_dom_document_query_command_indeterm(WebKitDOMDocument* self, const gchar*
  * @command: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_query_command_state(WebKitDOMDocument* self, const gchar* command);
 
 /**
@@ -338,8 +388,10 @@ webkit_dom_document_query_command_state(WebKitDOMDocument* self, const gchar* co
  * @command: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_query_command_supported(WebKitDOMDocument* self, const gchar* command);
 
 /**
@@ -348,8 +400,10 @@ webkit_dom_document_query_command_supported(WebKitDOMDocument* self, const gchar
  * @command: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_query_command_value(WebKitDOMDocument* self, const gchar* command);
 
 /**
@@ -358,8 +412,10 @@ webkit_dom_document_query_command_value(WebKitDOMDocument* self, const gchar* co
  * @elementName: A #gchar
  *
  * Returns: (transfer full): A #WebKitDOMNodeList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNodeList*
+WEBKIT_DEPRECATED WebKitDOMNodeList*
 webkit_dom_document_get_elements_by_name(WebKitDOMDocument* self, const gchar* elementName);
 
 /**
@@ -369,8 +425,10 @@ webkit_dom_document_get_elements_by_name(WebKitDOMDocument* self, const gchar* e
  * @y: A #glong
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_element_from_point(WebKitDOMDocument* self, glong x, glong y);
 
 /**
@@ -378,8 +436,10 @@ webkit_dom_document_element_from_point(WebKitDOMDocument* self, glong x, glong y
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMCSSStyleDeclaration
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSStyleDeclaration*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleDeclaration*
 webkit_dom_document_create_css_style_declaration(WebKitDOMDocument* self);
 
 /**
@@ -390,8 +450,10 @@ webkit_dom_document_create_css_style_declaration(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_elements_by_class_name_as_html_collection(WebKitDOMDocument* self, const gchar* classNames);
 
 /**
@@ -399,8 +461,10 @@ webkit_dom_document_get_elements_by_class_name_as_html_collection(WebKitDOMDocum
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_has_focus(WebKitDOMDocument* self);
 
 /**
@@ -409,8 +473,10 @@ webkit_dom_document_has_focus(WebKitDOMDocument* self);
  * @elementId: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_element_by_id(WebKitDOMDocument* self, const gchar* elementId);
 
 /**
@@ -420,8 +486,10 @@ webkit_dom_document_get_element_by_id(WebKitDOMDocument* self, const gchar* elem
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_query_selector(WebKitDOMDocument* self, const gchar* selectors, GError** error);
 
 /**
@@ -431,8 +499,10 @@ webkit_dom_document_query_selector(WebKitDOMDocument* self, const gchar* selecto
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMNodeList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNodeList*
+WEBKIT_DEPRECATED WebKitDOMNodeList*
 webkit_dom_document_query_selector_all(WebKitDOMDocument* self, const gchar* selectors, GError** error);
 
 /**
@@ -440,8 +510,10 @@ webkit_dom_document_query_selector_all(WebKitDOMDocument* self, const gchar* sel
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMDocumentType
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDocumentType*
+WEBKIT_DEPRECATED WebKitDOMDocumentType*
 webkit_dom_document_get_doctype(WebKitDOMDocument* self);
 
 /**
@@ -449,8 +521,10 @@ webkit_dom_document_get_doctype(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMDOMImplementation
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDOMImplementation*
+WEBKIT_DEPRECATED WebKitDOMDOMImplementation*
 webkit_dom_document_get_implementation(WebKitDOMDocument* self);
 
 /**
@@ -458,8 +532,10 @@ webkit_dom_document_get_implementation(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_document_element(WebKitDOMDocument* self);
 
 /**
@@ -467,8 +543,10 @@ webkit_dom_document_get_document_element(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_input_encoding(WebKitDOMDocument* self);
 
 /**
@@ -476,8 +554,10 @@ webkit_dom_document_get_input_encoding(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_xml_encoding(WebKitDOMDocument* self);
 
 /**
@@ -485,8 +565,10 @@ webkit_dom_document_get_xml_encoding(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_xml_version(WebKitDOMDocument* self);
 
 /**
@@ -495,8 +577,10 @@ webkit_dom_document_get_xml_version(WebKitDOMDocument* self);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_xml_version(WebKitDOMDocument* self, const gchar* value, GError** error);
 
 /**
@@ -504,8 +588,10 @@ webkit_dom_document_set_xml_version(WebKitDOMDocument* self, const gchar* value,
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_get_xml_standalone(WebKitDOMDocument* self);
 
 /**
@@ -514,8 +600,10 @@ webkit_dom_document_get_xml_standalone(WebKitDOMDocument* self);
  * @value: A #gboolean
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_xml_standalone(WebKitDOMDocument* self, gboolean value, GError** error);
 
 /**
@@ -523,8 +611,10 @@ webkit_dom_document_set_xml_standalone(WebKitDOMDocument* self, gboolean value,
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_document_uri(WebKitDOMDocument* self);
 
 /**
@@ -532,8 +622,10 @@ webkit_dom_document_get_document_uri(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_document_uri(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -541,8 +633,10 @@ webkit_dom_document_set_document_uri(WebKitDOMDocument* self, const gchar* value
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMDOMWindow
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMDOMWindow*
+WEBKIT_DEPRECATED WebKitDOMDOMWindow*
 webkit_dom_document_get_default_view(WebKitDOMDocument* self);
 
 /**
@@ -550,8 +644,10 @@ webkit_dom_document_get_default_view(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMStyleSheetList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMStyleSheetList*
+WEBKIT_DEPRECATED WebKitDOMStyleSheetList*
 webkit_dom_document_get_style_sheets(WebKitDOMDocument* self);
 
 /**
@@ -559,8 +655,10 @@ webkit_dom_document_get_style_sheets(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_title(WebKitDOMDocument* self);
 
 /**
@@ -568,8 +666,10 @@ webkit_dom_document_get_title(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_title(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -579,8 +679,10 @@ webkit_dom_document_set_title(WebKitDOMDocument* self, const gchar* value);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_design_mode(WebKitDOMDocument* self);
 
 /**
@@ -589,8 +691,10 @@ webkit_dom_document_get_design_mode(WebKitDOMDocument* self);
  * @value: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_design_mode(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -598,8 +702,10 @@ webkit_dom_document_set_design_mode(WebKitDOMDocument* self, const gchar* value)
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_referrer(WebKitDOMDocument* self);
 
 /**
@@ -607,8 +713,10 @@ webkit_dom_document_get_referrer(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_domain(WebKitDOMDocument* self);
 
 /**
@@ -616,8 +724,10 @@ webkit_dom_document_get_domain(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_url(WebKitDOMDocument* self);
 
 /**
@@ -626,8 +736,10 @@ webkit_dom_document_get_url(WebKitDOMDocument* self);
  * @error: #GError
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_cookie(WebKitDOMDocument* self, GError** error);
 
 /**
@@ -636,8 +748,10 @@ webkit_dom_document_get_cookie(WebKitDOMDocument* self, GError** error);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_cookie(WebKitDOMDocument* self, const gchar* value, GError** error);
 
 /**
@@ -645,8 +759,10 @@ webkit_dom_document_set_cookie(WebKitDOMDocument* self, const gchar* value, GErr
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMHTMLElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLElement*
+WEBKIT_DEPRECATED WebKitDOMHTMLElement*
 webkit_dom_document_get_body(WebKitDOMDocument* self);
 
 /**
@@ -655,8 +771,10 @@ webkit_dom_document_get_body(WebKitDOMDocument* self);
  * @value: A #WebKitDOMHTMLElement
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_body(WebKitDOMDocument* self, WebKitDOMHTMLElement* value, GError** error);
 
 /**
@@ -664,8 +782,10 @@ webkit_dom_document_set_body(WebKitDOMDocument* self, WebKitDOMHTMLElement* valu
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMHTMLHeadElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLHeadElement*
+WEBKIT_DEPRECATED WebKitDOMHTMLHeadElement*
 webkit_dom_document_get_head(WebKitDOMDocument* self);
 
 /**
@@ -673,8 +793,10 @@ webkit_dom_document_get_head(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_images(WebKitDOMDocument* self);
 
 /**
@@ -682,8 +804,10 @@ webkit_dom_document_get_images(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_applets(WebKitDOMDocument* self);
 
 /**
@@ -691,8 +815,10 @@ webkit_dom_document_get_applets(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_links(WebKitDOMDocument* self);
 
 /**
@@ -700,8 +826,10 @@ webkit_dom_document_get_links(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_forms(WebKitDOMDocument* self);
 
 /**
@@ -709,8 +837,10 @@ webkit_dom_document_get_forms(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_anchors(WebKitDOMDocument* self);
 
 /**
@@ -720,8 +850,10 @@ webkit_dom_document_get_anchors(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_embeds(WebKitDOMDocument* self);
 
 /**
@@ -731,8 +863,10 @@ webkit_dom_document_get_embeds(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_plugins(WebKitDOMDocument* self);
 
 /**
@@ -742,8 +876,10 @@ webkit_dom_document_get_plugins(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_scripts(WebKitDOMDocument* self);
 
 /**
@@ -751,8 +887,10 @@ webkit_dom_document_get_scripts(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_last_modified(WebKitDOMDocument* self);
 
 /**
@@ -760,8 +898,10 @@ webkit_dom_document_get_last_modified(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_charset(WebKitDOMDocument* self);
 
 /**
@@ -769,8 +909,10 @@ webkit_dom_document_get_charset(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_charset(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -778,8 +920,10 @@ webkit_dom_document_set_charset(WebKitDOMDocument* self, const gchar* value);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_ready_state(WebKitDOMDocument* self);
 
 /**
@@ -787,8 +931,10 @@ webkit_dom_document_get_ready_state(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_character_set(WebKitDOMDocument* self);
 
 /**
@@ -796,8 +942,10 @@ webkit_dom_document_get_character_set(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_preferred_stylesheet_set(WebKitDOMDocument* self);
 
 /**
@@ -805,8 +953,10 @@ webkit_dom_document_get_preferred_stylesheet_set(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_selected_stylesheet_set(WebKitDOMDocument* self);
 
 /**
@@ -814,8 +964,10 @@ webkit_dom_document_get_selected_stylesheet_set(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_selected_stylesheet_set(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -823,8 +975,10 @@ webkit_dom_document_set_selected_stylesheet_set(WebKitDOMDocument* self, const g
  * @self: A #WebKitDOMDocument
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_active_element(WebKitDOMDocument* self);
 
 /**
@@ -834,8 +988,10 @@ webkit_dom_document_get_active_element(WebKitDOMDocument* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_compat_mode(WebKitDOMDocument* self);
 
 /**
@@ -847,8 +1003,10 @@ webkit_dom_document_get_compat_mode(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMRange
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMRange*
+WEBKIT_DEPRECATED WebKitDOMRange*
 webkit_dom_document_caret_range_from_point(WebKitDOMDocument* self, glong x, glong y);
 
 /**
@@ -856,8 +1014,10 @@ webkit_dom_document_caret_range_from_point(WebKitDOMDocument* self, glong x, glo
  * @self: A #WebKitDOMDocument
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_webkit_cancel_fullscreen(WebKitDOMDocument* self);
 
 /**
@@ -865,8 +1025,10 @@ webkit_dom_document_webkit_cancel_fullscreen(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_webkit_exit_fullscreen(WebKitDOMDocument* self);
 
 /**
@@ -874,8 +1036,10 @@ webkit_dom_document_webkit_exit_fullscreen(WebKitDOMDocument* self);
  * @self: A #WebKitDOMDocument
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_exit_pointer_lock(WebKitDOMDocument* self);
 
 /**
@@ -885,8 +1049,10 @@ webkit_dom_document_exit_pointer_lock(WebKitDOMDocument* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_content_type(WebKitDOMDocument* self);
 
 /**
@@ -896,8 +1062,10 @@ webkit_dom_document_get_content_type(WebKitDOMDocument* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_dir(WebKitDOMDocument* self);
 
 /**
@@ -906,8 +1074,10 @@ webkit_dom_document_get_dir(WebKitDOMDocument* self);
  * @value: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_document_set_dir(WebKitDOMDocument* self, const gchar* value);
 
 /**
@@ -917,8 +1087,10 @@ webkit_dom_document_set_dir(WebKitDOMDocument* self, const gchar* value);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_get_webkit_is_fullscreen(WebKitDOMDocument* self);
 
 /**
@@ -928,8 +1100,10 @@ webkit_dom_document_get_webkit_is_fullscreen(WebKitDOMDocument* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_get_webkit_fullscreen_keyboard_input_allowed(WebKitDOMDocument* self);
 
 /**
@@ -939,8 +1113,10 @@ webkit_dom_document_get_webkit_fullscreen_keyboard_input_allowed(WebKitDOMDocume
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_webkit_current_fullscreen_element(WebKitDOMDocument* self);
 
 /**
@@ -950,8 +1126,10 @@ webkit_dom_document_get_webkit_current_fullscreen_element(WebKitDOMDocument* sel
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_get_webkit_fullscreen_enabled(WebKitDOMDocument* self);
 
 /**
@@ -961,8 +1139,10 @@ webkit_dom_document_get_webkit_fullscreen_enabled(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_webkit_fullscreen_element(WebKitDOMDocument* self);
 
 /**
@@ -972,8 +1152,10 @@ webkit_dom_document_get_webkit_fullscreen_element(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_pointer_lock_element(WebKitDOMDocument* self);
 
 /**
@@ -983,8 +1165,10 @@ webkit_dom_document_get_pointer_lock_element(WebKitDOMDocument* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_visibility_state(WebKitDOMDocument* self);
 
 /**
@@ -994,8 +1178,10 @@ webkit_dom_document_get_visibility_state(WebKitDOMDocument* self);
  * Returns: A #gboolean
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_document_get_hidden(WebKitDOMDocument* self);
 
 /**
@@ -1005,8 +1191,10 @@ webkit_dom_document_get_hidden(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMHTMLScriptElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLScriptElement*
+WEBKIT_DEPRECATED WebKitDOMHTMLScriptElement*
 webkit_dom_document_get_current_script(WebKitDOMDocument* self);
 
 /**
@@ -1016,8 +1204,10 @@ webkit_dom_document_get_current_script(WebKitDOMDocument* self);
  * Returns: A #gchar
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_get_origin(WebKitDOMDocument* self);
 
 /**
@@ -1027,8 +1217,10 @@ webkit_dom_document_get_origin(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_scrolling_element(WebKitDOMDocument* self);
 
 /**
@@ -1038,8 +1230,10 @@ webkit_dom_document_get_scrolling_element(WebKitDOMDocument* self);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_get_children(WebKitDOMDocument* self);
 
 /**
@@ -1049,8 +1243,10 @@ webkit_dom_document_get_children(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_first_element_child(WebKitDOMDocument* self);
 
 /**
@@ -1060,8 +1256,10 @@ webkit_dom_document_get_first_element_child(WebKitDOMDocument* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_get_last_element_child(WebKitDOMDocument* self);
 
 /**
@@ -1071,8 +1269,10 @@ webkit_dom_document_get_last_element_child(WebKitDOMDocument* self);
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_document_get_child_element_count(WebKitDOMDocument* self);
 
 G_END_DECLS
index 4115334..e8fec69 100644 (file)
@@ -39,6 +39,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDocumentFragment* kit(WebCore::DocumentFragment* obj)
@@ -260,3 +262,4 @@ gulong webkit_dom_document_fragment_get_child_element_count(WebKitDOMDocumentFra
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index f1ab7b2..0976692 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDocumentFragmentClass {
     WebKitDOMNodeClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_document_fragment_get_type(void);
 
 /**
@@ -56,8 +56,10 @@ webkit_dom_document_fragment_get_type(void);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_fragment_get_element_by_id(WebKitDOMDocumentFragment* self, const gchar* elementId);
 
 /**
@@ -69,8 +71,10 @@ webkit_dom_document_fragment_get_element_by_id(WebKitDOMDocumentFragment* self,
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_fragment_query_selector(WebKitDOMDocumentFragment* self, const gchar* selectors, GError** error);
 
 /**
@@ -82,8 +86,10 @@ webkit_dom_document_fragment_query_selector(WebKitDOMDocumentFragment* self, con
  * Returns: (transfer full): A #WebKitDOMNodeList
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMNodeList*
+WEBKIT_DEPRECATED WebKitDOMNodeList*
 webkit_dom_document_fragment_query_selector_all(WebKitDOMDocumentFragment* self, const gchar* selectors, GError** error);
 
 /**
@@ -93,8 +99,10 @@ webkit_dom_document_fragment_query_selector_all(WebKitDOMDocumentFragment* self,
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_document_fragment_get_children(WebKitDOMDocumentFragment* self);
 
 /**
@@ -104,8 +112,10 @@ webkit_dom_document_fragment_get_children(WebKitDOMDocumentFragment* self);
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_fragment_get_first_element_child(WebKitDOMDocumentFragment* self);
 
 /**
@@ -115,8 +125,10 @@ webkit_dom_document_fragment_get_first_element_child(WebKitDOMDocumentFragment*
  * Returns: (transfer none): A #WebKitDOMElement
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_document_fragment_get_last_element_child(WebKitDOMDocumentFragment* self);
 
 /**
@@ -126,8 +138,10 @@ webkit_dom_document_fragment_get_last_element_child(WebKitDOMDocumentFragment* s
  * Returns: A #gulong
  *
  * Since: 2.16
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
-WEBKIT_API gulong
+WEBKIT_DEPRECATED gulong
 webkit_dom_document_fragment_get_child_element_count(WebKitDOMDocumentFragment* self);
 
 G_END_DECLS
@@ -21,7 +21,6 @@
 #include "WebKitDOMDocument.h"
 
 #include "ConvertToUTF8String.h"
-#include "DOMObjectCache.h"
 #include "GObjectEventListener.h"
 #include "WebKitDOMAttrPrivate.h"
 #include "WebKitDOMCDATASectionPrivate.h"
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
-namespace WebKit {
-
-WebKitDOMDocument* kit(WebCore::Document* obj)
-{
-    return WEBKIT_DOM_DOCUMENT(kit(static_cast<WebCore::Node*>(obj)));
-}
-
-WebCore::Document* core(WebKitDOMDocument* request)
-{
-    return request ? static_cast<WebCore::Document*>(WEBKIT_DOM_OBJECT(request)->coreObject) : 0;
-}
-
-WebKitDOMDocument* wrapDocument(WebCore::Document* coreObject)
-{
-    ASSERT(coreObject);
-    return WEBKIT_DOM_DOCUMENT(g_object_new(WEBKIT_DOM_TYPE_DOCUMENT, "core-object", coreObject, nullptr));
-}
-
-} // namespace WebKit
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
 
 static gboolean webkit_dom_document_dispatch_event(WebKitDOMEventTarget* target, WebKitDOMEvent* event, GError** error)
 {
@@ -108,15 +89,13 @@ static gboolean webkit_dom_document_remove_event_listener(WebKitDOMEventTarget*
     return WebKit::GObjectEventListener::removeEventListener(G_OBJECT(target), coreTarget, eventName, handler, useCapture);
 }
 
-static void webkit_dom_document_dom_event_target_init(WebKitDOMEventTargetIface* iface)
+void webkitDOMDocumentDOMEventTargetInit(WebKitDOMEventTargetIface* iface)
 {
     iface->dispatch_event = webkit_dom_document_dispatch_event;
     iface->add_event_listener = webkit_dom_document_add_event_listener;
     iface->remove_event_listener = webkit_dom_document_remove_event_listener;
 }
 
-G_DEFINE_TYPE_WITH_CODE(WebKitDOMDocument, webkit_dom_document, WEBKIT_DOM_TYPE_NODE, G_IMPLEMENT_INTERFACE(WEBKIT_DOM_TYPE_EVENT_TARGET, webkit_dom_document_dom_event_target_init))
-
 enum {
     DOM_DOCUMENT_PROP_0,
     DOM_DOCUMENT_PROP_DOCTYPE,
@@ -374,9 +353,8 @@ static void webkit_dom_document_get_property(GObject* object, guint propertyId,
     }
 }
 
-static void webkit_dom_document_class_init(WebKitDOMDocumentClass* requestClass)
+void webkitDOMDocumentInstallProperties(GObjectClass* gobjectClass)
 {
-    GObjectClass* gobjectClass = G_OBJECT_CLASS(requestClass);
     gobjectClass->set_property = webkit_dom_document_set_property;
     gobjectClass->get_property = webkit_dom_document_get_property;
 
@@ -892,11 +870,6 @@ static void webkit_dom_document_class_init(WebKitDOMDocumentClass* requestClass)
 
 }
 
-static void webkit_dom_document_init(WebKitDOMDocument* request)
-{
-    UNUSED_PARAM(request);
-}
-
 WebKitDOMElement* webkit_dom_document_create_element(WebKitDOMDocument* self, const gchar* tagName, GError** error)
 {
     WebCore::JSMainThreadNullState state;
@@ -2008,3 +1981,4 @@ gulong webkit_dom_document_get_child_element_count(WebKitDOMDocument* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index ac87f64..88873b2 100644 (file)
@@ -36,6 +36,8 @@
 #include <wtf/GetPtr.h>
 #include <wtf/RefPtr.h>
 
+G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
+
 namespace WebKit {
 
 WebKitDOMDocumentType* kit(WebCore::DocumentType* obj)
@@ -249,3 +251,4 @@ gchar* webkit_dom_document_type_get_system_id(WebKitDOMDocumentType* self)
     return result;
 }
 
+G_GNUC_END_IGNORE_DEPRECATIONS;
index 8b899a1..39b5122 100644 (file)
@@ -45,7 +45,7 @@ struct _WebKitDOMDocumentTypeClass {
     WebKitDOMNodeClass parent_class;
 };
 
-WEBKIT_API GType
+WEBKIT_DEPRECATED GType
 webkit_dom_document_type_get_type(void);
 
 /**
@@ -53,8 +53,10 @@ webkit_dom_document_type_get_type(void);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_type_get_name(WebKitDOMDocumentType* self);
 
 /**
@@ -62,8 +64,10 @@ webkit_dom_document_type_get_name(WebKitDOMDocumentType* self);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: (transfer full): A #WebKitDOMNamedNodeMap
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNamedNodeMap*
+WEBKIT_DEPRECATED WebKitDOMNamedNodeMap*
 webkit_dom_document_type_get_entities(WebKitDOMDocumentType* self);
 
 /**
@@ -71,8 +75,10 @@ webkit_dom_document_type_get_entities(WebKitDOMDocumentType* self);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: (transfer full): A #WebKitDOMNamedNodeMap
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNamedNodeMap*
+WEBKIT_DEPRECATED WebKitDOMNamedNodeMap*
 webkit_dom_document_type_get_notations(WebKitDOMDocumentType* self);
 
 /**
@@ -80,8 +86,10 @@ webkit_dom_document_type_get_notations(WebKitDOMDocumentType* self);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_type_get_internal_subset(WebKitDOMDocumentType* self);
 
 /**
@@ -89,8 +97,10 @@ webkit_dom_document_type_get_internal_subset(WebKitDOMDocumentType* self);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_type_get_public_id(WebKitDOMDocumentType* self);
 
 /**
@@ -98,8 +108,10 @@ webkit_dom_document_type_get_public_id(WebKitDOMDocumentType* self);
  * @self: A #WebKitDOMDocumentType
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_document_type_get_system_id(WebKitDOMDocumentType* self);
 
 G_END_DECLS
index dba751e..02263c4 100644 (file)
@@ -46,21 +46,42 @@ struct _WebKitDOMElementClass {
 };
 
 WEBKIT_API GType
-webkit_dom_element_get_type(void);
+webkit_dom_element_get_type                             (void);
+
+WEBKIT_API gboolean
+webkit_dom_element_html_input_element_is_user_edited    (WebKitDOMElement *element);
+
+WEBKIT_API gboolean
+webkit_dom_element_html_input_element_get_auto_filled   (WebKitDOMElement *element);
+
+WEBKIT_API void
+webkit_dom_element_html_input_element_set_auto_filled   (WebKitDOMElement *element,
+                                                         gboolean          auto_filled);
+WEBKIT_API void
+webkit_dom_element_html_input_element_set_editing_value (WebKitDOMElement *element,
+                                                         const char       *value);
+
+#ifndef WEBKIT_DISABLE_DEPRECATED
 
 /**
  * WEBKIT_DOM_ELEMENT_ALLOW_KEYBOARD_INPUT:
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
  */
 #define WEBKIT_DOM_ELEMENT_ALLOW_KEYBOARD_INPUT 1
 
+#endif
+
 /**
  * webkit_dom_element_get_attribute:
  * @self: A #WebKitDOMElement
  * @name: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_attribute(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -70,8 +91,10 @@ webkit_dom_element_get_attribute(WebKitDOMElement* self, const gchar* name);
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_attribute(WebKitDOMElement* self, const gchar* name, const gchar* value, GError** error);
 
 /**
@@ -79,8 +102,10 @@ webkit_dom_element_set_attribute(WebKitDOMElement* self, const gchar* name, cons
  * @self: A #WebKitDOMElement
  * @name: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_remove_attribute(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -89,8 +114,10 @@ webkit_dom_element_remove_attribute(WebKitDOMElement* self, const gchar* name);
  * @name: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_element_get_attribute_node(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -100,8 +127,10 @@ webkit_dom_element_get_attribute_node(WebKitDOMElement* self, const gchar* name)
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_element_set_attribute_node(WebKitDOMElement* self, WebKitDOMAttr* newAttr, GError** error);
 
 /**
@@ -111,8 +140,10 @@ webkit_dom_element_set_attribute_node(WebKitDOMElement* self, WebKitDOMAttr* new
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_element_remove_attribute_node(WebKitDOMElement* self, WebKitDOMAttr* oldAttr, GError** error);
 
 /**
@@ -123,8 +154,10 @@ webkit_dom_element_remove_attribute_node(WebKitDOMElement* self, WebKitDOMAttr*
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_element_get_elements_by_tag_name_as_html_collection(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -132,8 +165,10 @@ webkit_dom_element_get_elements_by_tag_name_as_html_collection(WebKitDOMElement*
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_element_has_attributes(WebKitDOMElement* self);
 
 /**
@@ -143,8 +178,10 @@ webkit_dom_element_has_attributes(WebKitDOMElement* self);
  * @localName: A #gchar
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
@@ -155,8 +192,10 @@ webkit_dom_element_get_attribute_ns(WebKitDOMElement* self, const gchar* namespa
  * @value: A #gchar
  * @error: #GError
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* qualifiedName, const gchar* value, GError** error);
 
 /**
@@ -165,8 +204,10 @@ webkit_dom_element_set_attribute_ns(WebKitDOMElement* self, const gchar* namespa
  * @namespaceURI: A #gchar
  * @localName: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_remove_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
@@ -178,8 +219,10 @@ webkit_dom_element_remove_attribute_ns(WebKitDOMElement* self, const gchar* name
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_element_get_elements_by_tag_name_ns_as_html_collection(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
@@ -189,8 +232,10 @@ webkit_dom_element_get_elements_by_tag_name_ns_as_html_collection(WebKitDOMEleme
  * @localName: A #gchar
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_element_get_attribute_node_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
@@ -200,8 +245,10 @@ webkit_dom_element_get_attribute_node_ns(WebKitDOMElement* self, const gchar* na
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMAttr
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMAttr*
+WEBKIT_DEPRECATED WebKitDOMAttr*
 webkit_dom_element_set_attribute_node_ns(WebKitDOMElement* self, WebKitDOMAttr* newAttr, GError** error);
 
 /**
@@ -210,8 +257,10 @@ webkit_dom_element_set_attribute_node_ns(WebKitDOMElement* self, WebKitDOMAttr*
  * @name: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_element_has_attribute(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -221,24 +270,30 @@ webkit_dom_element_has_attribute(WebKitDOMElement* self, const gchar* name);
  * @localName: A #gchar
  *
  * Returns: A #gboolean
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gboolean
+WEBKIT_DEPRECATED gboolean
 webkit_dom_element_has_attribute_ns(WebKitDOMElement* self, const gchar* namespaceURI, const gchar* localName);
 
 /**
  * webkit_dom_element_focus:
  * @self: A #WebKitDOMElement
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_focus(WebKitDOMElement* self);
 
 /**
  * webkit_dom_element_blur:
  * @self: A #WebKitDOMElement
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_blur(WebKitDOMElement* self);
 
 /**
@@ -246,8 +301,10 @@ webkit_dom_element_blur(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  * @alignWithTop: A #gboolean
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_scroll_into_view(WebKitDOMElement* self, gboolean alignWithTop);
 
 /**
@@ -255,8 +312,10 @@ webkit_dom_element_scroll_into_view(WebKitDOMElement* self, gboolean alignWithTo
  * @self: A #WebKitDOMElement
  * @centerIfNeeded: A #gboolean
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_scroll_into_view_if_needed(WebKitDOMElement* self, gboolean centerIfNeeded);
 
 /**
@@ -264,8 +323,10 @@ webkit_dom_element_scroll_into_view_if_needed(WebKitDOMElement* self, gboolean c
  * @self: A #WebKitDOMElement
  * @lines: A #glong
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_scroll_by_lines(WebKitDOMElement* self, glong lines);
 
 /**
@@ -273,8 +334,10 @@ webkit_dom_element_scroll_by_lines(WebKitDOMElement* self, glong lines);
  * @self: A #WebKitDOMElement
  * @pages: A #glong
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_scroll_by_pages(WebKitDOMElement* self, glong pages);
 
 /**
@@ -285,8 +348,10 @@ webkit_dom_element_scroll_by_pages(WebKitDOMElement* self, glong pages);
  * Returns: (transfer full): A #WebKitDOMHTMLCollection
  *
  * Since: 2.12
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMHTMLCollection*
+WEBKIT_DEPRECATED WebKitDOMHTMLCollection*
 webkit_dom_element_get_elements_by_class_name_as_html_collection(WebKitDOMElement* self, const gchar* name);
 
 /**
@@ -296,8 +361,10 @@ webkit_dom_element_get_elements_by_class_name_as_html_collection(WebKitDOMElemen
  * @error: #GError
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_element_query_selector(WebKitDOMElement* self, const gchar* selectors, GError** error);
 
 /**
@@ -307,8 +374,10 @@ webkit_dom_element_query_selector(WebKitDOMElement* self, const gchar* selectors
  * @error: #GError
  *
  * Returns: (transfer full): A #WebKitDOMNodeList
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNodeList*
+WEBKIT_DEPRECATED WebKitDOMNodeList*
 webkit_dom_element_query_selector_all(WebKitDOMElement* self, const gchar* selectors, GError** error);
 
 /**
@@ -316,8 +385,10 @@ webkit_dom_element_query_selector_all(WebKitDOMElement* self, const gchar* selec
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_tag_name(WebKitDOMElement* self);
 
 /**
@@ -325,8 +396,10 @@ webkit_dom_element_get_tag_name(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: (transfer full): A #WebKitDOMNamedNodeMap
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMNamedNodeMap*
+WEBKIT_DEPRECATED WebKitDOMNamedNodeMap*
 webkit_dom_element_get_attributes(WebKitDOMElement* self);
 
 /**
@@ -334,8 +407,10 @@ webkit_dom_element_get_attributes(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: (transfer full): A #WebKitDOMCSSStyleDeclaration
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMCSSStyleDeclaration*
+WEBKIT_DEPRECATED WebKitDOMCSSStyleDeclaration*
 webkit_dom_element_get_style(WebKitDOMElement* self);
 
 /**
@@ -343,8 +418,10 @@ webkit_dom_element_get_style(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_id(WebKitDOMElement* self);
 
 /**
@@ -352,8 +429,10 @@ webkit_dom_element_get_id(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_id(WebKitDOMElement* self, const gchar* value);
 
 /**
@@ -363,8 +442,10 @@ webkit_dom_element_set_id(WebKitDOMElement* self, const gchar* value);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_namespace_uri(WebKitDOMElement* self);
 
 /**
@@ -374,8 +455,10 @@ webkit_dom_element_get_namespace_uri(WebKitDOMElement* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_prefix(WebKitDOMElement* self);
 
 /**
@@ -385,8 +468,10 @@ webkit_dom_element_get_prefix(WebKitDOMElement* self);
  * Returns: A #gchar
  *
  * Since: 2.14
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_local_name(WebKitDOMElement* self);
 
 /**
@@ -394,8 +479,10 @@ webkit_dom_element_get_local_name(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_offset_left(WebKitDOMElement* self);
 
 /**
@@ -403,8 +490,10 @@ webkit_dom_element_get_offset_left(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_offset_top(WebKitDOMElement* self);
 
 /**
@@ -412,8 +501,10 @@ webkit_dom_element_get_offset_top(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_offset_width(WebKitDOMElement* self);
 
 /**
@@ -421,8 +512,10 @@ webkit_dom_element_get_offset_width(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_offset_height(WebKitDOMElement* self);
 
 /**
@@ -430,8 +523,10 @@ webkit_dom_element_get_offset_height(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_client_left(WebKitDOMElement* self);
 
 /**
@@ -439,8 +534,10 @@ webkit_dom_element_get_client_left(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_client_top(WebKitDOMElement* self);
 
 /**
@@ -448,8 +545,10 @@ webkit_dom_element_get_client_top(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_client_width(WebKitDOMElement* self);
 
 /**
@@ -457,8 +556,10 @@ webkit_dom_element_get_client_width(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gdouble
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gdouble
+WEBKIT_DEPRECATED gdouble
 webkit_dom_element_get_client_height(WebKitDOMElement* self);
 
 /**
@@ -466,8 +567,10 @@ webkit_dom_element_get_client_height(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #glong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_element_get_scroll_left(WebKitDOMElement* self);
 
 /**
@@ -475,8 +578,10 @@ webkit_dom_element_get_scroll_left(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  * @value: A #glong
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_scroll_left(WebKitDOMElement* self, glong value);
 
 /**
@@ -484,8 +589,10 @@ webkit_dom_element_set_scroll_left(WebKitDOMElement* self, glong value);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #glong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_element_get_scroll_top(WebKitDOMElement* self);
 
 /**
@@ -493,8 +600,10 @@ webkit_dom_element_get_scroll_top(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  * @value: A #glong
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_scroll_top(WebKitDOMElement* self, glong value);
 
 /**
@@ -502,8 +611,10 @@ webkit_dom_element_set_scroll_top(WebKitDOMElement* self, glong value);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #glong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_element_get_scroll_width(WebKitDOMElement* self);
 
 /**
@@ -511,8 +622,10 @@ webkit_dom_element_get_scroll_width(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: A #glong
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API glong
+WEBKIT_DEPRECATED glong
 webkit_dom_element_get_scroll_height(WebKitDOMElement* self);
 
 /**
@@ -525,8 +638,10 @@ webkit_dom_element_get_scroll_height(WebKitDOMElement* self);
  * Returns: (transfer full): A #WebKitDOMClientRect
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMClientRect*
+WEBKIT_DEPRECATED WebKitDOMClientRect*
 webkit_dom_element_get_bounding_client_rect(WebKitDOMElement* self);
 
 /**
@@ -539,8 +654,10 @@ webkit_dom_element_get_bounding_client_rect(WebKitDOMElement* self);
  * Returns: (transfer full): A #WebKitDOMClientRectList
  *
  * Since: 2.18
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMClientRectList*
+WEBKIT_DEPRECATED WebKitDOMClientRectList*
 webkit_dom_element_get_client_rects(WebKitDOMElement* self);
 
 /**
@@ -548,8 +665,10 @@ webkit_dom_element_get_client_rects(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  *
  * Returns: (transfer none): A #WebKitDOMElement
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API WebKitDOMElement*
+WEBKIT_DEPRECATED WebKitDOMElement*
 webkit_dom_element_get_offset_parent(WebKitDOMElement* self);
 
 /**
@@ -559,8 +678,10 @@ webkit_dom_element_get_offset_parent(WebKitDOMElement* self);
  * Returns: A #gchar
  *
  * Since: 2.8
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_inner_html(WebKitDOMElement* self);
 
 /**
@@ -570,8 +691,10 @@ webkit_dom_element_get_inner_html(WebKitDOMElement* self);
  * @error: #GError
  *
  * Since: 2.8
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_inner_html(WebKitDOMElement* self, const gchar* value, GError** error);
 
 /**
@@ -581,8 +704,10 @@ webkit_dom_element_set_inner_html(WebKitDOMElement* self, const gchar* value, GE
  * Returns: A #gchar
  *
  * Since: 2.8
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_outer_html(WebKitDOMElement* self);
 
 /**
@@ -592,8 +717,10 @@ webkit_dom_element_get_outer_html(WebKitDOMElement* self);
  * @error: #GError
  *
  * Since: 2.8
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_outer_html(WebKitDOMElement* self, const gchar* value, GError** error);
 
 /**
@@ -601,8 +728,10 @@ webkit_dom_element_set_outer_html(WebKitDOMElement* self, const gchar* value, GE
  * @self: A #WebKitDOMElement
  *
  * Returns: A #gchar
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API gchar*
+WEBKIT_DEPRECATED gchar*
 webkit_dom_element_get_class_name(WebKitDOMElement* self);
 
 /**
@@ -610,8 +739,10 @@ webkit_dom_element_get_class_name(WebKitDOMElement* self);
  * @self: A #WebKitDOMElement
  * @value: A #gchar
  *
+ *
+ * Deprecated: 2.22: Use JavaScriptCore API instead
 **/
-WEBKIT_API void
+WEBKIT_DEPRECATED void
 webkit_dom_element_set_class_name(WebKitDOMElement* self, const gchar* value);
 
 /**
@@ -619,8