https://bugs.webkit.org/show_bug.cgi?id=174757
Reviewed by Darin Adler.
Source/WebCore:
Drop ExceptionCodeDescription class now that there is only one exception
type: DOMException. Instead, we now have static methods on DOMException
to get the name / message for a given exception code.
* CMakeLists.txt:
* Modules/indexeddb/shared/IDBError.cpp:
(WebCore::IDBError::name):
(WebCore::IDBError::message):
* Modules/quota/StorageErrorCallback.cpp:
(WebCore::StorageErrorCallback::CallbackTask::CallbackTask):
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSDOMExceptionHandling.cpp:
(WebCore::createDOMException):
* dom/DOMAllInOne.cpp:
* dom/DOMException.cpp:
(WebCore::errorCodeFromName):
(WebCore::DOMException::create):
(WebCore::DOMException::DOMException):
(WebCore::DOMException::name):
(WebCore::DOMException::message):
* dom/DOMException.h:
* dom/ExceptionCodeDescription.cpp: Removed.
* dom/ExceptionCodeDescription.h: Removed.
* inspector/DOMEditor.cpp:
(WebCore::populateErrorString):
* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::toErrorString):
* inspector/InspectorDOMStorageAgent.cpp:
(WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
Source/WebKit:
Update GTK bindings to use new API on DOMException instead of
ExceptionCodeDescription.
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
(webkit_dom_attr_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp:
(webkit_dom_cdata_section_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
(webkit_dom_css_rule_set_css_text):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp:
(webkit_dom_css_style_declaration_set_property):
(webkit_dom_css_style_declaration_set_css_text):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp:
(webkit_dom_css_style_sheet_insert_rule):
(webkit_dom_css_style_sheet_delete_rule):
(webkit_dom_css_style_sheet_add_rule):
(webkit_dom_css_style_sheet_remove_rule):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp:
(webkit_dom_css_value_set_css_text):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
(webkit_dom_character_data_dispatch_event):
(webkit_dom_character_data_insert_data):
(webkit_dom_character_data_delete_data):
(webkit_dom_character_data_replace_data):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp:
(webkit_dom_comment_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
(webkit_dom_dom_implementation_create_document_type):
(webkit_dom_dom_implementation_create_document):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp:
(webkit_dom_dom_selection_collapse_to_end):
(webkit_dom_dom_selection_collapse_to_start):
(webkit_dom_dom_selection_extend):
(webkit_dom_dom_selection_get_range_at):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp:
(webkit_dom_dom_token_list_add):
(webkit_dom_dom_token_list_remove):
(webkit_dom_dom_token_list_toggle):
(webkit_dom_dom_token_list_replace):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
(webkit_dom_dom_window_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
(webkit_dom_node_set_prefix):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
(webkit_dom_document_dispatch_event):
(webkit_dom_document_create_element):
(webkit_dom_document_create_cdata_section):
(webkit_dom_document_create_processing_instruction):
(webkit_dom_document_create_attribute):
(webkit_dom_document_import_node):
(webkit_dom_document_create_element_ns):
(webkit_dom_document_create_attribute_ns):
(webkit_dom_document_adopt_node):
(webkit_dom_document_create_event):
(webkit_dom_document_create_expression):
(webkit_dom_document_evaluate):
(webkit_dom_document_query_selector):
(webkit_dom_document_query_selector_all):
(webkit_dom_document_set_xml_version):
(webkit_dom_document_set_cookie):
(webkit_dom_document_set_body):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp:
(webkit_dom_document_fragment_dispatch_event):
(webkit_dom_document_fragment_query_selector):
(webkit_dom_document_fragment_query_selector_all):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
(webkit_dom_document_type_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp:
(webkit_dom_element_dispatch_event):
(webkit_dom_element_set_attribute):
(webkit_dom_element_set_attribute_node):
(webkit_dom_element_remove_attribute_node):
(webkit_dom_element_set_attribute_ns):
(webkit_dom_element_set_attribute_node_ns):
(webkit_dom_element_matches):
(webkit_dom_element_closest):
(webkit_dom_element_insert_adjacent_element):
(webkit_dom_element_insert_adjacent_html):
(webkit_dom_element_insert_adjacent_text):
(webkit_dom_element_remove):
(webkit_dom_element_query_selector):
(webkit_dom_element_query_selector_all):
(webkit_dom_element_set_inner_html):
(webkit_dom_element_set_outer_html):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
(webkit_dom_html_anchor_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp:
(webkit_dom_html_applet_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
(webkit_dom_html_area_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp:
(webkit_dom_html_br_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp:
(webkit_dom_html_base_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp:
(webkit_dom_html_body_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
(webkit_dom_html_button_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp:
(webkit_dom_html_canvas_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp:
(webkit_dom_html_d_list_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp:
(webkit_dom_html_directory_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp:
(webkit_dom_html_div_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp:
(webkit_dom_html_document_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp:
(webkit_dom_html_element_dispatch_event):
(webkit_dom_html_element_set_inner_text):
(webkit_dom_html_element_set_outer_text):
(webkit_dom_html_element_set_content_editable):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp:
(webkit_dom_html_embed_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
(webkit_dom_html_field_set_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp:
(webkit_dom_html_font_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
(webkit_dom_html_form_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp:
(webkit_dom_html_frame_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp:
(webkit_dom_html_frame_set_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp:
(webkit_dom_html_hr_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp:
(webkit_dom_html_head_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp:
(webkit_dom_html_heading_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
(webkit_dom_html_html_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
(webkit_dom_html_iframe_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
(webkit_dom_html_image_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
(webkit_dom_html_input_element_dispatch_event):
(webkit_dom_html_input_element_set_max_length):
(webkit_dom_html_input_element_set_size):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp:
(webkit_dom_html_li_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
(webkit_dom_html_label_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp:
(webkit_dom_html_legend_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
(webkit_dom_html_link_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp:
(webkit_dom_html_map_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
(webkit_dom_html_marquee_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp:
(webkit_dom_html_menu_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp:
(webkit_dom_html_meta_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp:
(webkit_dom_html_mod_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
(webkit_dom_html_o_list_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
(webkit_dom_html_object_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp:
(webkit_dom_html_opt_group_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp:
(webkit_dom_html_option_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp:
(webkit_dom_html_paragraph_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp:
(webkit_dom_html_param_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp:
(webkit_dom_html_pre_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp:
(webkit_dom_html_quote_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
(webkit_dom_html_script_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
(webkit_dom_html_select_element_dispatch_event):
(webkit_dom_html_select_element_add):
(webkit_dom_html_select_element_set_length):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
(webkit_dom_html_style_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp:
(webkit_dom_html_table_caption_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp:
(webkit_dom_html_table_cell_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp:
(webkit_dom_html_table_col_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
(webkit_dom_html_table_element_dispatch_event):
(webkit_dom_html_table_element_insert_row):
(webkit_dom_html_table_element_delete_row):
(webkit_dom_html_table_element_set_caption):
(webkit_dom_html_table_element_set_t_head):
(webkit_dom_html_table_element_set_t_foot):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp:
(webkit_dom_html_table_row_element_dispatch_event):
(webkit_dom_html_table_row_element_insert_cell):
(webkit_dom_html_table_row_element_delete_cell):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp:
(webkit_dom_html_table_section_element_dispatch_event):
(webkit_dom_html_table_section_element_insert_row):
(webkit_dom_html_table_section_element_delete_row):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
(webkit_dom_html_text_area_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp:
(webkit_dom_html_title_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp:
(webkit_dom_html_u_list_element_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp:
(webkit_dom_media_list_delete_medium):
(webkit_dom_media_list_append_medium):
(webkit_dom_media_list_set_media_text):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp:
(webkit_dom_named_node_map_set_named_item):
(webkit_dom_named_node_map_remove_named_item):
(webkit_dom_named_node_map_remove_named_item_ns):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
(webkit_dom_node_dispatch_event):
(webkit_dom_node_insert_before):
(webkit_dom_node_replace_child):
(webkit_dom_node_remove_child):
(webkit_dom_node_append_child):
(webkit_dom_node_clone_node_with_error):
(webkit_dom_node_set_node_value):
(webkit_dom_node_set_text_content):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp:
(webkit_dom_processing_instruction_dispatch_event):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp:
(webkit_dom_range_set_start):
(webkit_dom_range_set_end):
(webkit_dom_range_set_start_before):
(webkit_dom_range_set_start_after):
(webkit_dom_range_set_end_before):
(webkit_dom_range_set_end_after):
(webkit_dom_range_select_node):
(webkit_dom_range_select_node_contents):
(webkit_dom_range_compare_boundary_points):
(webkit_dom_range_delete_contents):
(webkit_dom_range_extract_contents):
(webkit_dom_range_clone_contents):
(webkit_dom_range_insert_node):
(webkit_dom_range_surround_contents):
(webkit_dom_range_create_contextual_fragment):
(webkit_dom_range_compare_node):
(webkit_dom_range_intersects_node):
(webkit_dom_range_compare_point):
(webkit_dom_range_is_point_in_range):
(webkit_dom_range_expand):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp:
(webkit_dom_text_dispatch_event):
(webkit_dom_text_split_text):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp:
(webkit_dom_xpath_expression_evaluate):
* WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp:
(webkit_dom_xpath_result_iterate_next):
(webkit_dom_xpath_result_snapshot_item):
(webkit_dom_xpath_result_get_number_value):
(webkit_dom_xpath_result_get_boolean_value):
(webkit_dom_xpath_result_get_single_node_value):
(webkit_dom_xpath_result_get_snapshot_length):
Source/WebKitLegacy/mac:
Stop using ExceptionCodeDescription.
* DOM/ExceptionHandlers.mm:
(raiseDOMErrorException):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@219792
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
dom/EventNames.cpp
dom/EventPath.cpp
dom/EventTarget.cpp
- dom/ExceptionCodeDescription.cpp
dom/ExtensionStyleSheets.cpp
dom/FocusEvent.cpp
dom/GenericEventQueue.cpp
+2017-07-23 Chris Dumez <cdumez@apple.com>
+
+ Drop ExceptionCodeDescription class
+ https://bugs.webkit.org/show_bug.cgi?id=174757
+
+ Reviewed by Darin Adler.
+
+ Drop ExceptionCodeDescription class now that there is only one exception
+ type: DOMException. Instead, we now have static methods on DOMException
+ to get the name / message for a given exception code.
+
+ * CMakeLists.txt:
+ * Modules/indexeddb/shared/IDBError.cpp:
+ (WebCore::IDBError::name):
+ (WebCore::IDBError::message):
+ * Modules/quota/StorageErrorCallback.cpp:
+ (WebCore::StorageErrorCallback::CallbackTask::CallbackTask):
+ * WebCore.xcodeproj/project.pbxproj:
+ * bindings/js/JSDOMExceptionHandling.cpp:
+ (WebCore::createDOMException):
+ * dom/DOMAllInOne.cpp:
+ * dom/DOMException.cpp:
+ (WebCore::errorCodeFromName):
+ (WebCore::DOMException::create):
+ (WebCore::DOMException::DOMException):
+ (WebCore::DOMException::name):
+ (WebCore::DOMException::message):
+ * dom/DOMException.h:
+ * dom/ExceptionCodeDescription.cpp: Removed.
+ * dom/ExceptionCodeDescription.h: Removed.
+ * inspector/DOMEditor.cpp:
+ (WebCore::populateErrorString):
+ * inspector/InspectorDOMAgent.cpp:
+ (WebCore::InspectorDOMAgent::toErrorString):
+ * inspector/InspectorDOMStorageAgent.cpp:
+ (WebCore::InspectorDOMStorageAgent::setDOMStorageItem):
+
2017-07-22 Dan Bernstein <mitz@apple.com>
Fixed building for macOS 10.12 with the macOS 10.13 SDK after r219644.
void blob(FetchBodyOwner&, Ref<DeferredPromise>&&, const String&);
void json(FetchBodyOwner&, Ref<DeferredPromise>&&);
void text(FetchBodyOwner&, Ref<DeferredPromise>&&);
- void formData(FetchBodyOwner&, Ref<DeferredPromise>&& promise) { promise.get().reject(0); }
+ void formData(FetchBodyOwner&, Ref<DeferredPromise>&& promise) { promise.get().reject(ExceptionCode { 0 }); }
#if ENABLE(STREAMS_API)
void consumeAsStream(FetchBodyOwner&, FetchResponseSource&);
#if ENABLE(INDEXED_DATABASE)
-#include "ExceptionCodeDescription.h"
+#include "DOMException.h"
namespace WebCore {
String IDBError::name() const
{
- return ExceptionCodeDescription(m_code).name;
+ return DOMException::name(m_code);
}
String IDBError::message() const
{
- return ExceptionCodeDescription(m_code).description;
+ return DOMException::message(m_code);
}
RefPtr<DOMError> IDBError::toDOMError() const
#include "StorageErrorCallback.h"
#include "DOMException.h"
-#include "ExceptionCodeDescription.h"
namespace WebCore {
StorageErrorCallback::CallbackTask::CallbackTask(RefPtr<StorageErrorCallback>&& callback, ExceptionCode ec)
: ScriptExecutionContext::Task([callback, ec] (ScriptExecutionContext*) {
if (callback)
- callback->handleEvent(DOMException::create(ExceptionCodeDescription(ec)).get());
+ callback->handleEvent(DOMException::create(ec).get());
})
{
}
83D35AEC1C7187FA00F70D5A /* XMLHttpRequestEventTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 83D35AEA1C7187ED00F70D5A /* XMLHttpRequestEventTarget.h */; };
83D35AF11C718D9000F70D5A /* JSXMLHttpRequestEventTarget.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83D35AEF1C718D8400F70D5A /* JSXMLHttpRequestEventTarget.cpp */; };
83D35AF21C718D9000F70D5A /* JSXMLHttpRequestEventTarget.h in Headers */ = {isa = PBXBuildFile; fileRef = 83D35AF01C718D8400F70D5A /* JSXMLHttpRequestEventTarget.h */; };
- 83D3B00B1F22701A00D34D88 /* ExceptionCodeDescription.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83D3B0091F226FB300D34D88 /* ExceptionCodeDescription.cpp */; };
- 83D3B00C1F22701A00D34D88 /* ExceptionCodeDescription.h in Headers */ = {isa = PBXBuildFile; fileRef = 83D3B00A1F226FB300D34D88 /* ExceptionCodeDescription.h */; settings = {ATTRIBUTES = (Private, ); }; };
83E359A21BB1031D002CEB98 /* JSHTMLTimeElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 83E359A01BB1031D002CEB98 /* JSHTMLTimeElement.h */; };
83E359A31BB1031D002CEB98 /* JSHTMLTimeElement.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 83E359A11BB1031D002CEB98 /* JSHTMLTimeElement.cpp */; };
83FE7CA71DA9F1A70037237C /* UIEventInit.h in Headers */ = {isa = PBXBuildFile; fileRef = 83FE7CA41DA9F1660037237C /* UIEventInit.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC6049CC0DB560C200204739 /* CSSCanvasValue.h in Headers */ = {isa = PBXBuildFile; fileRef = BC6049CB0DB560C200204739 /* CSSCanvasValue.h */; };
BC604A430DB5634E00204739 /* CSSCanvasValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC604A420DB5634E00204739 /* CSSCanvasValue.cpp */; };
BC6090200E91B8EC000C68B5 /* JSEventTargetCustom.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60901E0E91B8EC000C68B5 /* JSEventTargetCustom.cpp */; };
- BC60D6E90D28D83400B9918F /* DOMException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D6E80D28D83400B9918F /* DOMException.h */; };
+ BC60D6E90D28D83400B9918F /* DOMException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D6E80D28D83400B9918F /* DOMException.h */; settings = {ATTRIBUTES = (Private, ); }; };
BC60D7C00D29A46300B9918F /* JSDOMException.cpp in Sources */ = {isa = PBXBuildFile; fileRef = BC60D7BE0D29A46300B9918F /* JSDOMException.cpp */; };
BC60D7C10D29A46300B9918F /* JSDOMException.h in Headers */ = {isa = PBXBuildFile; fileRef = BC60D7BF0D29A46300B9918F /* JSDOMException.h */; };
BC64640A11D7F304006455B0 /* DOMStringMap.h in Headers */ = {isa = PBXBuildFile; fileRef = BC64640811D7F304006455B0 /* DOMStringMap.h */; };
83D35AEB1C7187ED00F70D5A /* XMLHttpRequestEventTarget.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = XMLHttpRequestEventTarget.idl; sourceTree = "<group>"; };
83D35AEF1C718D8400F70D5A /* JSXMLHttpRequestEventTarget.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSXMLHttpRequestEventTarget.cpp; sourceTree = "<group>"; };
83D35AF01C718D8400F70D5A /* JSXMLHttpRequestEventTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSXMLHttpRequestEventTarget.h; sourceTree = "<group>"; };
- 83D3B0091F226FB300D34D88 /* ExceptionCodeDescription.cpp */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.cpp.cpp; path = ExceptionCodeDescription.cpp; sourceTree = "<group>"; };
- 83D3B00A1F226FB300D34D88 /* ExceptionCodeDescription.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ExceptionCodeDescription.h; sourceTree = "<group>"; };
83E045EC1DAA104F00B0D8B9 /* JSEventModifierInit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSEventModifierInit.cpp; sourceTree = "<group>"; };
83E045ED1DAA104F00B0D8B9 /* JSEventModifierInit.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSEventModifierInit.h; sourceTree = "<group>"; };
83E045EE1DAA104F00B0D8B9 /* JSUIEventInit.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSUIEventInit.cpp; sourceTree = "<group>"; };
CDCE5CD014633BC900D47CCA /* EventTargetFactory.in */,
93D196321D6CAB8200FC7E47 /* Exception.h */,
935FBCF109BA143B00E230B1 /* ExceptionCode.h */,
- 83D3B0091F226FB300D34D88 /* ExceptionCodeDescription.cpp */,
- 83D3B00A1F226FB300D34D88 /* ExceptionCodeDescription.h */,
93D196301D6CAB7600FC7E47 /* ExceptionOr.h */,
E47E276716036EDC00EE2AFB /* ExtensionStyleSheets.cpp */,
E47E276416036ED200EE2AFB /* ExtensionStyleSheets.h */,
8367587F1C56E99B008A1087 /* JSHTMLDataElement.h in Headers */,
F5C041E70FFCA96D00839D4A /* JSHTMLDataListElement.h in Headers */,
D359D8BF129CA55C0006E5D2 /* JSHTMLDetailsElement.h in Headers */,
- 83D3B00C1F22701A00D34D88 /* ExceptionCodeDescription.h in Headers */,
76808B50159DADFA002B5233 /* JSHTMLDialogElement.h in Headers */,
1A85B1E70A1B240500D8C87C /* JSHTMLDirectoryElement.h in Headers */,
1A85B2B70A1B2AC700D8C87C /* JSHTMLDivElement.h in Headers */,
31A089081E737D51003B6609 /* WebGPUDepthStencilState.cpp in Sources */,
31A089091E737D51003B6609 /* WebGPUDrawable.cpp in Sources */,
31A0890A1E737D51003B6609 /* WebGPUEnums.cpp in Sources */,
- 83D3B00B1F22701A00D34D88 /* ExceptionCodeDescription.cpp in Sources */,
31A0890B1E737D51003B6609 /* WebGPUFunction.cpp in Sources */,
316BDB8B1E6E153000DE0D5A /* WebGPULayer.mm in Sources */,
31A0890C1E737D51003B6609 /* WebGPULibrary.cpp in Sources */,
#include "CachedScript.h"
#include "DOMException.h"
#include "DOMWindow.h"
-#include "ExceptionCodeDescription.h"
#include "JSDOMException.h"
#include "JSDOMPromiseDeferred.h"
#include "JSDOMWindow.h"
// For now, we're going to assume the lexicalGlobalObject. Which is wrong in cases like this:
// frames[0].document.createElement(null, null); // throws an exception which should have the subframe's prototypes.
JSDOMGlobalObject* globalObject = deprecatedGlobalObjectForPrototype(exec);
-
- ExceptionCodeDescription description(ec);
-
- CString messageCString;
- if (message)
- messageCString = message->utf8();
- if (message && !message->isEmpty()) {
- // It is safe to do this because the char* contents of the CString are copied into a new WTF::String before the CString is destroyed.
- description.description = messageCString.data();
- }
-
- JSValue errorObject = toJS(exec, globalObject, DOMException::create(description));
+ JSValue errorObject = toJS(exec, globalObject, DOMException::create(ec, message));
ASSERT(errorObject);
addErrorInfo(exec, asObject(errorObject), true);
#include "EventNames.cpp"
#include "EventPath.cpp"
#include "EventTarget.cpp"
-#include "ExceptionCodeDescription.cpp"
#include "ExtensionStyleSheets.cpp"
#include "FocusEvent.cpp"
#include "GenericEventQueue.cpp"
#include "config.h"
#include "DOMException.h"
-#include "ExceptionCode.h"
-#include "ExceptionCodeDescription.h"
-
namespace WebCore {
// http://heycam.github.io/webidl/#idl-DOMException-error-names
-static const struct CoreException {
- const char* const name;
- const char* const description;
- ExceptionCode code;
-} coreExceptions[] = {
+static const DOMException::Description descriptions[] = {
{ "IndexSizeError", "The index is not in the allowed range.", 1 },
{ nullptr, nullptr, 0 }, // DOMStringSizeError
{ "HierarchyRequestError", "The operation would yield an incorrect node tree.", 3 },
{ "NotAllowedError", "The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.", 0 }
};
-static ExceptionCode errorCodeFromName(const String& name)
+auto DOMException::description(ExceptionCode ec) -> const Description&
{
- for (auto& entry : coreExceptions) {
- if (entry.name == name)
- return entry.code;
+ size_t index = ec - 1;
+ if (index < WTF_ARRAY_LENGTH(descriptions)) {
+ ASSERT(!descriptions[index].legacyCode || descriptions[index].legacyCode == ec);
+ return descriptions[index];
}
- return 0;
+
+ static const Description emptyDescription { nullptr, nullptr, 0 };
+ return emptyDescription;
}
-Ref<DOMException> DOMException::create(const String& message, const String& name)
+static DOMException::LegacyCode legacyCodeFromName(const String& name)
{
- return adoptRef(*new DOMException(errorCodeFromName(name), message, name));
+ for (auto& description : descriptions) {
+ if (description.name == name)
+ return description.legacyCode;
+ }
+ return 0;
}
-DOMException::DOMException(ExceptionCode ec, const String& message, const String& name)
- : m_code(ec)
- , m_name(name)
- , m_message(message)
+Ref<DOMException> DOMException::create(ExceptionCode ec, const String* message)
{
+ auto& description = DOMException::description(ec);
+ return adoptRef(*new DOMException(description.legacyCode, description.name, message && !message->isEmpty() ? *message : ASCIILiteral(description.message)));
}
-DOMException::DOMException(const ExceptionCodeDescription& description)
- : m_code(description.code)
- , m_name(description.name)
- , m_message(description.description)
+Ref<DOMException> DOMException::create(const String& message, const String& name)
{
+ return adoptRef(*new DOMException(legacyCodeFromName(name), name, message));
}
-bool DOMException::initializeDescription(ExceptionCode ec, ExceptionCodeDescription* description)
+DOMException::DOMException(LegacyCode legacyCode, const String& name, const String& message)
+ : m_legacyCode(legacyCode)
+ , m_name(name)
+ , m_message(message)
{
- size_t tableIndex = ec - INDEX_SIZE_ERR;
- if (tableIndex < WTF_ARRAY_LENGTH(coreExceptions)) {
- auto& exception = coreExceptions[tableIndex];
- description->name = exception.name;
- description->description = exception.description;
- description->code = exception.code;
- } else {
- description->name = nullptr;
- description->description = nullptr;
- description->code = 0;
- }
-
- return true;
}
} // namespace WebCore
#pragma once
+#include "ExceptionCode.h"
#include <wtf/text/WTFString.h>
namespace WebCore {
-struct ExceptionCodeDescription;
-using ExceptionCode = int;
-
class DOMException : public RefCounted<DOMException> {
public:
- static Ref<DOMException> create(const ExceptionCodeDescription& description)
- {
- return adoptRef(*new DOMException(description));
- }
+ static Ref<DOMException> create(ExceptionCode, const String* message = nullptr);
+
+ // For DOM bindings.
static Ref<DOMException> create(const String& message, const String& name);
- static bool initializeDescription(ExceptionCode, ExceptionCodeDescription*);
+ using LegacyCode = uint8_t;
+ LegacyCode legacyCode() const { return m_legacyCode; }
- ExceptionCode code() const { return m_code; }
String name() const { return m_name; }
String message() const { return m_message; }
-protected:
- DOMException(ExceptionCode, const String& message, const String& name);
- explicit DOMException(const ExceptionCodeDescription&);
+ struct Description {
+ const char* const name;
+ const char* const message;
+ LegacyCode legacyCode;
+ };
+
+ WEBCORE_EXPORT static const Description& description(ExceptionCode);
+
+ static ASCIILiteral name(ExceptionCode ec) { return ASCIILiteral(description(ec).name); }
+ static ASCIILiteral message(ExceptionCode ec) { return ASCIILiteral(description(ec).message); }
+
+private:
+ DOMException(LegacyCode, const String& name, const String& message);
- ExceptionCode m_code;
+ LegacyCode m_legacyCode;
String m_name;
String m_message;
};
ImplementationLacksVTable,
] exception DOMException {
- readonly attribute unsigned short code;
+ [ImplementedAs=legacyCode] readonly attribute unsigned short code;
readonly attribute DOMString name;
readonly attribute DOMString message;
namespace WebCore {
-using ExceptionCode = int;
+using ExceptionCode = uint8_t;
class Exception {
public:
namespace WebCore {
-// The DOM standards use unsigned short for exception codes.
-// In our DOM implementation we use int instead, and use different
-// numerical ranges for different types of DOM exception, so that
-// an exception of any type can be expressed with a single integer.
-using ExceptionCode = int;
+using ExceptionCode = uint8_t;
// Some of these are considered historical since they have been
// changed or removed from the specifications.
+++ /dev/null
-/*
- * Copyright (C) 2011-2017 Apple Inc. All rights reserved.
- * Copyright (C) 2011 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include "config.h"
-#include "ExceptionCodeDescription.h"
-
-#include "DOMException.h"
-
-namespace WebCore {
-
-ExceptionCodeDescription::ExceptionCodeDescription(ExceptionCode ec)
-{
- ASSERT(ec);
- if (DOMException::initializeDescription(ec, this))
- return;
- ASSERT_NOT_REACHED();
-}
-
-} // namespace WebCore
+++ /dev/null
-/*
- * Copyright (C) 2011-2017 Apple Inc. All rights reserved.
- * Copyright (C) 2011 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#pragma once
-
-#include "ExceptionCode.h"
-
-namespace WebCore {
-
-// FIXME: This should be refactored now that there is only one exception type.
-struct ExceptionCodeDescription {
- WEBCORE_EXPORT explicit ExceptionCodeDescription(ExceptionCode);
-
- // |typeName| has spaces and is suitable for use in exception
- // description strings; maximum length is 10 characters.
- const char* typeName;
-
- // |name| is the exception name, also intended for use in exception
- // description strings; 0 if name not known; maximum length is 27
- // characters.
- const char* name;
-
- // |description| is the exception description, intended for use in
- // exception strings. It is a more readable explanation of error.
- const char* description;
-
- // |code| is the numeric value of the exception within a particular type.
- int code;
-};
-
-} // namespace WebCore
#include "config.h"
#include "DOMEditor.h"
+#include "DOMException.h"
#include "DOMPatchSupport.h"
#include "Document.h"
#include "Element.h"
-#include "ExceptionCodeDescription.h"
#include "InspectorHistory.h"
#include "Node.h"
#include "Text.h"
{
if (!result.hasException())
return true;
- errorString = ExceptionCodeDescription { result.releaseException().code() }.name;
+ errorString = DOMException::name(result.releaseException().code());
return false;
}
#include "Cookie.h"
#include "CookieJar.h"
#include "DOMEditor.h"
+#include "DOMException.h"
#include "DOMPatchSupport.h"
#include "DOMWindow.h"
#include "Document.h"
#include "Element.h"
#include "Event.h"
#include "EventListener.h"
-#include "ExceptionCodeDescription.h"
#include "FrameTree.h"
#include "HTMLElement.h"
#include "HTMLFrameOwnerElement.h"
String InspectorDOMAgent::toErrorString(ExceptionCode ec)
{
- if (ec) {
- ExceptionCodeDescription description(ec);
- return description.name;
- }
- return emptyString();
+ return ec ? String(DOMException::name(ec)) : emptyString();
}
String InspectorDOMAgent::toErrorString(Exception&& exception)
{
- return ExceptionCodeDescription { exception.code() }.name;
+ return DOMException::name(exception.code());
}
InspectorDOMAgent::InspectorDOMAgent(WebAgentContext& context, InspectorPageAgent* pageAgent, InspectorOverlay* overlay)
#include "config.h"
#include "InspectorDOMStorageAgent.h"
+#include "DOMException.h"
#include "DOMWindow.h"
#include "Database.h"
#include "Document.h"
-#include "ExceptionCode.h"
-#include "ExceptionCodeDescription.h"
#include "Frame.h"
#include "InspectorPageAgent.h"
#include "InstrumentingAgents.h"
bool quotaException = false;
storageArea->setItem(frame, key, value, quotaException);
if (quotaException)
- errorString = ExceptionCodeDescription(QUOTA_EXCEEDED_ERR).name;
+ errorString = DOMException::name(QUOTA_EXCEEDED_ERR);
}
void InspectorDOMStorageAgent::removeDOMStorageItem(ErrorString& errorString, const InspectorObject& storageId, const String& key)
+2017-07-23 Chris Dumez <cdumez@apple.com>
+
+ Drop ExceptionCodeDescription class
+ https://bugs.webkit.org/show_bug.cgi?id=174757
+
+ Reviewed by Darin Adler.
+
+ Update GTK bindings to use new API on DOMException instead of
+ ExceptionCodeDescription.
+
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMAttr.cpp:
+ (webkit_dom_attr_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMBlob.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCDATASection.cpp:
+ (webkit_dom_cdata_section_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRule.cpp:
+ (webkit_dom_css_rule_set_css_text):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSRuleList.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleDeclaration.cpp:
+ (webkit_dom_css_style_declaration_set_property):
+ (webkit_dom_css_style_declaration_set_css_text):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSStyleSheet.cpp:
+ (webkit_dom_css_style_sheet_insert_rule):
+ (webkit_dom_css_style_sheet_delete_rule):
+ (webkit_dom_css_style_sheet_add_rule):
+ (webkit_dom_css_style_sheet_remove_rule):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCSSValue.cpp:
+ (webkit_dom_css_value_set_css_text):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMCharacterData.cpp:
+ (webkit_dom_character_data_dispatch_event):
+ (webkit_dom_character_data_insert_data):
+ (webkit_dom_character_data_delete_data):
+ (webkit_dom_character_data_replace_data):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRect.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMClientRectList.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMComment.cpp:
+ (webkit_dom_comment_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMImplementation.cpp:
+ (webkit_dom_dom_implementation_create_document_type):
+ (webkit_dom_dom_implementation_create_document):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMSelection.cpp:
+ (webkit_dom_dom_selection_collapse_to_end):
+ (webkit_dom_dom_selection_collapse_to_start):
+ (webkit_dom_dom_selection_extend):
+ (webkit_dom_dom_selection_get_range_at):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMTokenList.cpp:
+ (webkit_dom_dom_token_list_add):
+ (webkit_dom_dom_token_list_remove):
+ (webkit_dom_dom_token_list_toggle):
+ (webkit_dom_dom_token_list_replace):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDOMWindow.cpp:
+ (webkit_dom_dom_window_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDeprecated.cpp:
+ (webkit_dom_node_set_prefix):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocument.cpp:
+ (webkit_dom_document_dispatch_event):
+ (webkit_dom_document_create_element):
+ (webkit_dom_document_create_cdata_section):
+ (webkit_dom_document_create_processing_instruction):
+ (webkit_dom_document_create_attribute):
+ (webkit_dom_document_import_node):
+ (webkit_dom_document_create_element_ns):
+ (webkit_dom_document_create_attribute_ns):
+ (webkit_dom_document_adopt_node):
+ (webkit_dom_document_create_event):
+ (webkit_dom_document_create_expression):
+ (webkit_dom_document_evaluate):
+ (webkit_dom_document_query_selector):
+ (webkit_dom_document_query_selector_all):
+ (webkit_dom_document_set_xml_version):
+ (webkit_dom_document_set_cookie):
+ (webkit_dom_document_set_body):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentFragment.cpp:
+ (webkit_dom_document_fragment_dispatch_event):
+ (webkit_dom_document_fragment_query_selector):
+ (webkit_dom_document_fragment_query_selector_all):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMDocumentType.cpp:
+ (webkit_dom_document_type_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMElement.cpp:
+ (webkit_dom_element_dispatch_event):
+ (webkit_dom_element_set_attribute):
+ (webkit_dom_element_set_attribute_node):
+ (webkit_dom_element_remove_attribute_node):
+ (webkit_dom_element_set_attribute_ns):
+ (webkit_dom_element_set_attribute_node_ns):
+ (webkit_dom_element_matches):
+ (webkit_dom_element_closest):
+ (webkit_dom_element_insert_adjacent_element):
+ (webkit_dom_element_insert_adjacent_html):
+ (webkit_dom_element_insert_adjacent_text):
+ (webkit_dom_element_remove):
+ (webkit_dom_element_query_selector):
+ (webkit_dom_element_query_selector_all):
+ (webkit_dom_element_set_inner_html):
+ (webkit_dom_element_set_outer_html):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMEvent.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFile.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMFileList.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAnchorElement.cpp:
+ (webkit_dom_html_anchor_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAppletElement.cpp:
+ (webkit_dom_html_applet_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLAreaElement.cpp:
+ (webkit_dom_html_area_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBRElement.cpp:
+ (webkit_dom_html_br_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBaseElement.cpp:
+ (webkit_dom_html_base_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLBodyElement.cpp:
+ (webkit_dom_html_body_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLButtonElement.cpp:
+ (webkit_dom_html_button_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCanvasElement.cpp:
+ (webkit_dom_html_canvas_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLCollection.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDListElement.cpp:
+ (webkit_dom_html_d_list_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDirectoryElement.cpp:
+ (webkit_dom_html_directory_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDivElement.cpp:
+ (webkit_dom_html_div_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLDocument.cpp:
+ (webkit_dom_html_document_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLElement.cpp:
+ (webkit_dom_html_element_dispatch_event):
+ (webkit_dom_html_element_set_inner_text):
+ (webkit_dom_html_element_set_outer_text):
+ (webkit_dom_html_element_set_content_editable):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLEmbedElement.cpp:
+ (webkit_dom_html_embed_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFieldSetElement.cpp:
+ (webkit_dom_html_field_set_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFontElement.cpp:
+ (webkit_dom_html_font_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFormElement.cpp:
+ (webkit_dom_html_form_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameElement.cpp:
+ (webkit_dom_html_frame_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLFrameSetElement.cpp:
+ (webkit_dom_html_frame_set_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHRElement.cpp:
+ (webkit_dom_html_hr_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadElement.cpp:
+ (webkit_dom_html_head_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHeadingElement.cpp:
+ (webkit_dom_html_heading_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLHtmlElement.cpp:
+ (webkit_dom_html_html_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLIFrameElement.cpp:
+ (webkit_dom_html_iframe_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLImageElement.cpp:
+ (webkit_dom_html_image_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLInputElement.cpp:
+ (webkit_dom_html_input_element_dispatch_event):
+ (webkit_dom_html_input_element_set_max_length):
+ (webkit_dom_html_input_element_set_size):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLIElement.cpp:
+ (webkit_dom_html_li_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLabelElement.cpp:
+ (webkit_dom_html_label_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLegendElement.cpp:
+ (webkit_dom_html_legend_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLLinkElement.cpp:
+ (webkit_dom_html_link_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMapElement.cpp:
+ (webkit_dom_html_map_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMarqueeElement.cpp:
+ (webkit_dom_html_marquee_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMenuElement.cpp:
+ (webkit_dom_html_menu_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLMetaElement.cpp:
+ (webkit_dom_html_meta_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLModElement.cpp:
+ (webkit_dom_html_mod_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOListElement.cpp:
+ (webkit_dom_html_o_list_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLObjectElement.cpp:
+ (webkit_dom_html_object_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptGroupElement.cpp:
+ (webkit_dom_html_opt_group_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionElement.cpp:
+ (webkit_dom_html_option_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLOptionsCollection.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParagraphElement.cpp:
+ (webkit_dom_html_paragraph_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLParamElement.cpp:
+ (webkit_dom_html_param_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLPreElement.cpp:
+ (webkit_dom_html_pre_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLQuoteElement.cpp:
+ (webkit_dom_html_quote_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLScriptElement.cpp:
+ (webkit_dom_html_script_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLSelectElement.cpp:
+ (webkit_dom_html_select_element_dispatch_event):
+ (webkit_dom_html_select_element_add):
+ (webkit_dom_html_select_element_set_length):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLStyleElement.cpp:
+ (webkit_dom_html_style_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCaptionElement.cpp:
+ (webkit_dom_html_table_caption_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableCellElement.cpp:
+ (webkit_dom_html_table_cell_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableColElement.cpp:
+ (webkit_dom_html_table_col_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableElement.cpp:
+ (webkit_dom_html_table_element_dispatch_event):
+ (webkit_dom_html_table_element_insert_row):
+ (webkit_dom_html_table_element_delete_row):
+ (webkit_dom_html_table_element_set_caption):
+ (webkit_dom_html_table_element_set_t_head):
+ (webkit_dom_html_table_element_set_t_foot):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableRowElement.cpp:
+ (webkit_dom_html_table_row_element_dispatch_event):
+ (webkit_dom_html_table_row_element_insert_cell):
+ (webkit_dom_html_table_row_element_delete_cell):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTableSectionElement.cpp:
+ (webkit_dom_html_table_section_element_dispatch_event):
+ (webkit_dom_html_table_section_element_insert_row):
+ (webkit_dom_html_table_section_element_delete_row):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTextAreaElement.cpp:
+ (webkit_dom_html_text_area_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLTitleElement.cpp:
+ (webkit_dom_html_title_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMHTMLUListElement.cpp:
+ (webkit_dom_html_u_list_element_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMKeyboardEvent.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMediaList.cpp:
+ (webkit_dom_media_list_delete_medium):
+ (webkit_dom_media_list_append_medium):
+ (webkit_dom_media_list_set_media_text):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMMouseEvent.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNamedNodeMap.cpp:
+ (webkit_dom_named_node_map_set_named_item):
+ (webkit_dom_named_node_map_remove_named_item):
+ (webkit_dom_named_node_map_remove_named_item_ns):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNode.cpp:
+ (webkit_dom_node_dispatch_event):
+ (webkit_dom_node_insert_before):
+ (webkit_dom_node_replace_child):
+ (webkit_dom_node_remove_child):
+ (webkit_dom_node_append_child):
+ (webkit_dom_node_clone_node_with_error):
+ (webkit_dom_node_set_node_value):
+ (webkit_dom_node_set_text_content):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeIterator.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMNodeList.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMProcessingInstruction.cpp:
+ (webkit_dom_processing_instruction_dispatch_event):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMRange.cpp:
+ (webkit_dom_range_set_start):
+ (webkit_dom_range_set_end):
+ (webkit_dom_range_set_start_before):
+ (webkit_dom_range_set_start_after):
+ (webkit_dom_range_set_end_before):
+ (webkit_dom_range_set_end_after):
+ (webkit_dom_range_select_node):
+ (webkit_dom_range_select_node_contents):
+ (webkit_dom_range_compare_boundary_points):
+ (webkit_dom_range_delete_contents):
+ (webkit_dom_range_extract_contents):
+ (webkit_dom_range_clone_contents):
+ (webkit_dom_range_insert_node):
+ (webkit_dom_range_surround_contents):
+ (webkit_dom_range_create_contextual_fragment):
+ (webkit_dom_range_compare_node):
+ (webkit_dom_range_intersects_node):
+ (webkit_dom_range_compare_point):
+ (webkit_dom_range_is_point_in_range):
+ (webkit_dom_range_expand):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheet.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMStyleSheetList.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMText.cpp:
+ (webkit_dom_text_dispatch_event):
+ (webkit_dom_text_split_text):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMTreeWalker.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMUIEvent.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMWheelEvent.cpp:
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathExpression.cpp:
+ (webkit_dom_xpath_expression_evaluate):
+ * WebProcess/InjectedBundle/API/gtk/DOM/WebKitDOMXPathResult.cpp:
+ (webkit_dom_xpath_result_iterate_next):
+ (webkit_dom_xpath_result_snapshot_item):
+ (webkit_dom_xpath_result_get_number_value):
+ (webkit_dom_xpath_result_get_boolean_value):
+ (webkit_dom_xpath_result_get_single_node_value):
+ (webkit_dom_xpath_result_get_snapshot_length):
+
2017-07-22 Wenson Hsieh <wenson_hsieh@apple.com>
[iOS WK2] Remove _WKDraggableElementInfo and fold PositionInformationTests into WKRequestActivatedElementInfo
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMAttrPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMBlobPrivate.h"
#include "WebKitDOMPrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCDATASectionPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCSSRulePrivate.h"
#include "WebKitDOMCSSStyleSheetPrivate.h"
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setCssText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCSSRuleListPrivate.h"
#include "WebKitDOMCSSRulePrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCSSRulePrivate.h"
#include "WebKitDOMCSSStyleDeclarationPrivate.h"
WTF::String convertedPriority = WTF::String::fromUTF8(priority);
auto result = item->setProperty(convertedPropertyName, convertedValue, convertedPriority);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setCssText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCSSRuleListPrivate.h"
#include "WebKitDOMCSSRulePrivate.h"
WTF::String convertedRule = WTF::String::fromUTF8(rule);
auto result = item->insertRule(convertedRule, index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return 0;
}
return result.releaseReturnValue();
WebCore::CSSStyleSheet* item = WebKit::core(self);
auto result = item->deleteRule(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedStyle = WTF::String::fromUTF8(style);
auto result = item->addRule(convertedSelector, convertedStyle, index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return -1;
}
return result.releaseReturnValue();
WebCore::CSSStyleSheet* item = WebKit::core(self);
auto result = item->removeRule(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCSSValuePrivate.h"
#include "WebKitDOMPrivate.h"
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setCssText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCharacterDataPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedData = WTF::String::fromUTF8(data);
auto result = item->insertData(offset, convertedData);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::CharacterData* item = WebKit::core(self);
auto result = item->deleteData(offset, length);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedData = WTF::String::fromUTF8(data);
auto result = item->replaceData(offset, length, convertedData);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "WebKitDOMPrivate.h"
#include <WebCore/CSSImportRule.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/ExceptionCode.h>
#include <WebCore/JSMainThreadExecState.h>
#include <wtf/GetPtr.h>
#include "WebKitDOMPrivate.h"
#include <WebCore/CSSImportRule.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/ExceptionCode.h>
#include <WebCore/JSMainThreadExecState.h>
#include <wtf/GetPtr.h>
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMCommentPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include "WebKitDOMHTMLDocumentPrivate.h"
#include "WebKitDOMPrivate.h"
#include <WebCore/CSSImportRule.h>
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <WebCore/SVGTests.h>
#include <wtf/GetPtr.h>
WTF::String convertedSystemId = WTF::String::fromUTF8(systemId);
auto result = item->createDocumentType(convertedQualifiedName, convertedPublicId, convertedSystemId);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::DocumentType* convertedDoctype = WebKit::core(doctype);
auto result = item->createDocument(convertedNamespaceURI, convertedQualifiedName, convertedDoctype);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDOMSelectionPrivate.h"
#include "WebKitDOMNodePrivate.h"
WebCore::DOMSelection* item = WebKit::core(self);
auto result = item->collapseToEnd();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::DOMSelection* item = WebKit::core(self);
auto result = item->collapseToStart();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedNode = WebKit::core(node);
auto result = item->extend(*convertedNode, offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::DOMSelection* item = WebKit::core(self);
auto result = item->getRangeAt(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDOMTokenListPrivate.h"
#include "WebKitDOMPrivate.h"
va_end(variadicParameterList);
auto result = item->add(WTFMove(convertedTokens));
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
va_end(variadicParameterList);
auto result = item->remove(WTFMove(convertedTokens));
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedToken = WTF::String::fromUTF8(token);
auto result = item->toggle(convertedToken, force);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedNewToken = WTF::String::fromUTF8(newToken);
auto result = item->replace(convertedToken, convertedNewToken);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include <WebCore/SerializedScriptValue.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include "WebKitDOMDeprecated.h"
#include "ConvertToUTF8String.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
#include <WebCore/Element.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <WebCore/HTMLCollection.h>
#include "WebKitDOMDocumentPrivate.h"
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setPrefix(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "WebKitDOMXPathNSResolverPrivate.h"
#include "WebKitDOMXPathResultPrivate.h"
#include <WebCore/CSSImportRule.h>
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <wtf/GetPtr.h>
#include <wtf/RefPtr.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedTagName = WTF::String::fromUTF8(tagName);
auto result = item->createElementForBindings(convertedTagName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedData = WTF::String::fromUTF8(data);
auto result = item->createCDATASection(convertedData);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedData = WTF::String::fromUTF8(data);
auto result = item->createProcessingInstruction(convertedTarget, convertedData);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedName = WTF::String::fromUTF8(name);
auto result = item->createAttribute(convertedName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::Node* convertedImportedNode = WebKit::core(importedNode);
auto result = item->importNode(*convertedImportedNode, deep);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedQualifiedName = WTF::String::fromUTF8(qualifiedName);
auto result = item->createElementNS(convertedNamespaceURI, convertedQualifiedName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedQualifiedName = WTF::String::fromUTF8(qualifiedName);
auto result = item->createAttributeNS(convertedNamespaceURI, convertedQualifiedName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::Node* convertedSource = WebKit::core(source);
auto result = item->adoptNode(*convertedSource);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedEventType = WTF::String::fromUTF8(eventType);
auto result = item->createEvent(convertedEventType);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
RefPtr<WebCore::XPathNSResolver> convertedResolver = WebKit::core(resolver);
auto result = item->createExpression(convertedExpression, WTFMove(convertedResolver));
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::XPathResult* convertedInResult = WebKit::core(inResult);
auto result = item->evaluate(convertedExpression, convertedContextNode, WTFMove(convertedResolver), type, convertedInResult);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelector(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelectorAll(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setXMLVersion(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setCookie(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLElement* convertedValue = WebKit::core(value);
auto result = item->setBodyOrFrameset(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDocumentFragmentPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelector(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelectorAll(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDocumentTypePrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/DOMRect.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setAttribute(convertedName, convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Attr* convertedNewAttr = WebKit::core(newAttr);
auto result = item->setAttributeNode(*convertedNewAttr);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().get());
WebCore::Attr* convertedOldAttr = WebKit::core(oldAttr);
auto result = item->removeAttributeNode(*convertedOldAttr);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setAttributeNS(convertedNamespaceURI, convertedQualifiedName, convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Attr* convertedNewAttr = WebKit::core(newAttr);
auto result = item->setAttributeNodeNS(*convertedNewAttr);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().get());
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->matches(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->closest(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WebCore::Element* convertedElement = WebKit::core(element);
auto result = item->insertAdjacentElement(convertedWhere, *convertedElement);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WTF::String convertedHtml = WTF::String::fromUTF8(html);
auto result = item->insertAdjacentHTML(convertedWhere, convertedHtml);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedText = WTF::String::fromUTF8(text);
auto result = item->insertAdjacentText(convertedWhere, convertedText);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Element* item = WebKit::core(self);
auto result = item->remove();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelector(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WTF::String convertedSelectors = WTF::String::fromUTF8(selectors);
auto result = item->querySelectorAll(convertedSelectors);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setInnerHTML(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setOuterHTML(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
#include "WebKitDOMEventTargetPrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMBlobPrivate.h"
#include "WebKitDOMFilePrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMFileListPrivate.h"
#include "WebKitDOMFilePrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMHTMLCollectionPrivate.h"
#include "WebKitDOMNodePrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setInnerText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setOuterText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setContentEditable(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::HTMLInputElement* item = WebKit::core(self);
auto result = item->setMaxLength(value);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLInputElement* item = WebKit::core(self);
auto result = item->setSize(value);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMHTMLCollectionPrivate.h"
#include "WebKitDOMHTMLOptionElementPrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/HTMLOptGroupElement.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
else if (is<WebCore::HTMLOptGroupElement>(convertedElement))
variantElement = &downcast<WebCore::HTMLOptGroupElement>(*convertedElement);
else {
- WebCore::ExceptionCodeDescription ecdesc(WebCore::TypeError);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(WebCore::TypeError);
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return;
}
auto exception = item->add(WTFMove(variantElement), WebCore::HTMLSelectElement::HTMLElementOrInt(convertedBefore));
if (exception.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(exception.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(exception.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLSelectElement* item = WebKit::core(self);
auto result = item->setLength(value);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::HTMLTableElement* item = WebKit::core(self);
auto result = item->insertRow(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::HTMLTableElement* item = WebKit::core(self);
auto result = item->deleteRow(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLTableCaptionElement* convertedValue = WebKit::core(value);
auto result = item->setCaption(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLTableSectionElement* convertedValue = WebKit::core(value);
auto result = item->setTHead(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::HTMLTableSectionElement* convertedValue = WebKit::core(value);
auto result = item->setTFoot(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::HTMLTableRowElement* item = WebKit::core(self);
auto result = item->insertCell(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::HTMLTableRowElement* item = WebKit::core(self);
auto result = item->deleteCell(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::HTMLTableSectionElement* item = WebKit::core(self);
auto result = item->insertRow(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
return WebKit::kit(result.releaseReturnValue().ptr());
}
WebCore::HTMLTableSectionElement* item = WebKit::core(self);
auto result = item->deleteRow(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/HTMLNames.h>
#include <WebCore/JSMainThreadExecState.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDOMWindowPrivate.h"
#include "WebKitDOMEventPrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMMediaListPrivate.h"
#include "WebKitDOMPrivate.h"
WTF::String convertedOldMedium = WTF::String::fromUTF8(oldMedium);
auto result = item->deleteMedium(convertedOldMedium);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedNewMedium = WTF::String::fromUTF8(newMedium);
auto result = item->appendMedium(convertedNewMedium);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setMediaText(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDOMWindowPrivate.h"
#include "WebKitDOMEventPrivate.h"
#include "WebKitDOMPrivate.h"
#include <WebCore/Attr.h>
#include <WebCore/CSSImportRule.h>
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <wtf/GetPtr.h>
#include <wtf/RefPtr.h>
WebCore::NamedNodeMap* item = WebKit::core(self);
WebCore::Node* convertedNode = WebKit::core(node);
if (!is<WebCore::Attr>(*convertedNode)) {
- WebCore::ExceptionCodeDescription ecdesc(WebCore::TypeError);
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(WebCore::TypeError);
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
auto result = item->setNamedItem(downcast<WebCore::Attr>(*convertedNode));
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().get());
WTF::String convertedName = WTF::String::fromUTF8(name);
auto result = item->removeNamedItem(convertedName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedLocalName = WTF::String::fromUTF8(localName);
auto result = item->removeNamedItemNS(convertedNamespaceURI, convertedLocalName);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include "WebKitDOMNodePrivate.h"
#include "WebKitDOMPrivate.h"
#include <WebCore/CSSImportRule.h>
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <WebCore/SVGTests.h>
#include <wtf/GetPtr.h>
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::Node* convertedRefChild = WebKit::core(refChild);
auto result = item->insertBefore(*convertedNewChild, convertedRefChild);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return newChild;
WebCore::Node* convertedOldChild = WebKit::core(oldChild);
auto result = item->replaceChild(*convertedNewChild, *convertedOldChild);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return oldChild;
WebCore::Node* convertedOldChild = WebKit::core(oldChild);
auto result = item->removeChild(*convertedOldChild);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return oldChild;
WebCore::Node* convertedNewChild = WebKit::core(newChild);
auto result = item->appendChild(*convertedNewChild);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return newChild;
WebCore::Node* item = WebKit::core(self);
auto result = item->cloneNodeForBindings(deep);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setNodeValue(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedValue = WTF::String::fromUTF8(value);
auto result = item->setTextContent(convertedValue);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMNodeFilterPrivate.h"
#include "WebKitDOMNodeIteratorPrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMNodeListPrivate.h"
#include "WebKitDOMNodePrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDocumentFragmentPrivate.h"
#include "WebKitDOMNodePrivate.h"
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setStart(*convertedRefNode, offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setEnd(*convertedRefNode, offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setStartBefore(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setStartAfter(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setEndBefore(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->setEndAfter(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->selectNode(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->selectNodeContents(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Range* convertedSourceRange = WebKit::core(sourceRange);
auto result = item->compareBoundaryPointsForBindings(how, *convertedSourceRange);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return 0;
}
return result.releaseReturnValue();
WebCore::Range* item = WebKit::core(self);
auto result = item->deleteContents();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Range* item = WebKit::core(self);
auto result = item->extractContents();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::Range* item = WebKit::core(self);
auto result = item->cloneContents();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::Node* convertedNewNode = WebKit::core(newNode);
auto result = item->insertNode(*convertedNewNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WebCore::Node* convertedNewParent = WebKit::core(newParent);
auto result = item->surroundContents(*convertedNewParent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
WTF::String convertedHtml = WTF::String::fromUTF8(html);
auto result = item->createContextualFragment(convertedHtml);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->compareNode(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return 0;
}
return result.releaseReturnValue();
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->intersectsNode(*convertedRefNode);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->comparePoint(*convertedRefNode, offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return 0;
}
return result.releaseReturnValue();
WebCore::Node* convertedRefNode = WebKit::core(refNode);
auto result = item->isPointInRange(*convertedRefNode, offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WTF::String convertedUnit = WTF::String::fromUTF8(unit);
auto result = item->expand(convertedUnit);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
}
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMMediaListPrivate.h"
#include "WebKitDOMNodePrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMPrivate.h"
#include "WebKitDOMStyleSheetListPrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include "GObjectEventListener.h"
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMEventPrivate.h"
auto result = coreTarget->dispatchEventForBindings(*coreEvent);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription description(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.code, description.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::Text* item = WebKit::core(self);
auto result = item->splitText(offset);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMNodeFilterPrivate.h"
#include "WebKitDOMNodePrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include <WebCore/KeyboardEvent.h>
#include "WebKitDOMDOMWindowPrivate.h"
#include "DOMObjectCache.h"
#include <WebCore/Document.h>
#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMDOMWindowPrivate.h"
#include "WebKitDOMEventPrivate.h"
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMNodePrivate.h"
#include "WebKitDOMPrivate.h"
WebCore::XPathResult* convertedInResult = WebKit::core(inResult);
auto result = item->evaluate(convertedContextNode, type, convertedInResult);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue().ptr());
#include <WebCore/CSSImportRule.h>
#include "DOMObjectCache.h"
+#include <WebCore/DOMException.h>
#include <WebCore/Document.h>
-#include <WebCore/ExceptionCode.h>
-#include <WebCore/ExceptionCodeDescription.h>
#include <WebCore/JSMainThreadExecState.h>
#include "WebKitDOMNodePrivate.h"
#include "WebKitDOMPrivate.h"
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->iterateNext();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->snapshotItem(index);
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->numberValue();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return 0;
}
return result.releaseReturnValue();
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->booleanValue();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return false;
}
return result.releaseReturnValue();
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->singleNodeValue();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
return nullptr;
}
return WebKit::kit(result.releaseReturnValue());
WebCore::XPathResult* item = WebKit::core(self);
auto result = item->snapshotLength();
if (result.hasException()) {
- WebCore::ExceptionCodeDescription ecdesc(result.releaseException().code());
- g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), ecdesc.code, ecdesc.name);
+ auto description = WebCore::DOMException::description(result.releaseException().code());
+ g_set_error_literal(error, g_quark_from_string("WEBKIT_DOM"), description.legacyCode, description.name);
}
return result.releaseReturnValue();
}
+2017-07-23 Chris Dumez <cdumez@apple.com>
+
+ Drop ExceptionCodeDescription class
+ https://bugs.webkit.org/show_bug.cgi?id=174757
+
+ Reviewed by Darin Adler.
+
+ Stop using ExceptionCodeDescription.
+
+ * DOM/ExceptionHandlers.mm:
+ (raiseDOMErrorException):
+
2017-07-21 Andreas Kling <akling@apple.com>
Use more references in event dispatch code
#import "DOMException.h"
#import "DOMRangeException.h"
#import "DOMXPathException.h"
-#import <WebCore/ExceptionCode.h>
-#import <WebCore/ExceptionCodeDescription.h>
+#import <WebCore/DOMException.h>
NSString * const DOMException = @"DOMException";
NSString * const DOMRangeException = @"DOMRangeException";
{
ASSERT(ec);
- WebCore::ExceptionCodeDescription description(ec);
-
- // FIXME: This should use type and code exclusively and not try to use typeName.
- NSString *exceptionName;
- if (strcmp(description.typeName, "DOM Range") == 0)
- exceptionName = DOMRangeException;
- else if (strcmp(description.typeName, "DOM Events") == 0)
- exceptionName = DOMEventException;
- else
- exceptionName = DOMException;
+ auto description = WebCore::DOMException::description(ec);
NSString *reason;
if (description.name)
- reason = [[NSString alloc] initWithFormat:@"*** %s: %@ %d", description.name, exceptionName, description.code];
+ reason = [[NSString alloc] initWithFormat:@"*** %s: %@ %d", description.name, DOMException, description.legacyCode];
else
- reason = [[NSString alloc] initWithFormat:@"*** %@ %d", exceptionName, description.code];
+ reason = [[NSString alloc] initWithFormat:@"*** %@ %d", DOMException, description.legacyCode];
- NSDictionary *userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:description.code], exceptionName, nil];
+ NSDictionary *userInfo = [[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:description.legacyCode], DOMException, nil];
- NSException *exception = [NSException exceptionWithName:exceptionName reason:reason userInfo:userInfo];
+ NSException *exception = [NSException exceptionWithName:DOMException reason:reason userInfo:userInfo];
[reason release];
[userInfo release];