| 1 | /* |
| 2 | This file is part of the WebKit open source project. |
| 3 | This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
| 4 | |
| 5 | This library is free software; you can redistribute it and/or |
| 6 | modify it under the terms of the GNU Library General Public |
| 7 | License as published by the Free Software Foundation; either |
| 8 | version 2 of the License, or (at your option) any later version. |
| 9 | |
| 10 | This library is distributed in the hope that it will be useful, |
| 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 | Library General Public License for more details. |
| 14 | |
| 15 | You should have received a copy of the GNU Library General Public License |
| 16 | along with this library; see the file COPYING.LIB. If not, write to |
| 17 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 18 | Boston, MA 02110-1301, USA. |
| 19 | */ |
| 20 | |
| 21 | #include "config.h" |
| 22 | #include "JSHTMLElement.h" |
| 23 | |
| 24 | #include "CustomElementReactionQueue.h" |
| 25 | #include "EventNames.h" |
| 26 | #include "HTMLNames.h" |
| 27 | #include "JSCSSStyleDeclaration.h" |
| 28 | #include "JSDOMAttribute.h" |
| 29 | #include "JSDOMBinding.h" |
| 30 | #include "JSDOMConstructor.h" |
| 31 | #include "JSDOMConvertBoolean.h" |
| 32 | #include "JSDOMConvertInterface.h" |
| 33 | #include "JSDOMConvertNullable.h" |
| 34 | #include "JSDOMConvertNumbers.h" |
| 35 | #include "JSDOMConvertStrings.h" |
| 36 | #include "JSDOMExceptionHandling.h" |
| 37 | #include "JSDOMGlobalObject.h" |
| 38 | #include "JSDOMOperation.h" |
| 39 | #include "JSDOMStringMap.h" |
| 40 | #include "JSDOMWrapperCache.h" |
| 41 | #include "JSEventListener.h" |
| 42 | #include "RuntimeEnabledFeatures.h" |
| 43 | #include "ScriptExecutionContext.h" |
| 44 | #include <JavaScriptCore/HeapSnapshotBuilder.h> |
| 45 | #include <JavaScriptCore/JSCInlines.h> |
| 46 | #include <wtf/GetPtr.h> |
| 47 | #include <wtf/PointerPreparations.h> |
| 48 | #include <wtf/URL.h> |
| 49 | |
| 50 | #if ENABLE(CSS_TYPED_OM) |
| 51 | #include "JSStylePropertyMap.h" |
| 52 | #endif |
| 53 | |
| 54 | |
| 55 | namespace WebCore { |
| 56 | using namespace JSC; |
| 57 | |
| 58 | // Functions |
| 59 | |
| 60 | JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionClick(JSC::ExecState*); |
| 61 | JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionFocus(JSC::ExecState*); |
| 62 | JSC::EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionBlur(JSC::ExecState*); |
| 63 | |
| 64 | // Attributes |
| 65 | |
| 66 | JSC::EncodedJSValue jsHTMLElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 67 | bool setJSHTMLElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 68 | JSC::EncodedJSValue jsHTMLElementTitle(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 69 | bool setJSHTMLElementTitle(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 70 | JSC::EncodedJSValue jsHTMLElementLang(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 71 | bool setJSHTMLElementLang(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 72 | JSC::EncodedJSValue jsHTMLElementTranslate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 73 | bool setJSHTMLElementTranslate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 74 | JSC::EncodedJSValue jsHTMLElementDir(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 75 | bool setJSHTMLElementDir(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 76 | JSC::EncodedJSValue jsHTMLElementDataset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 77 | JSC::EncodedJSValue jsHTMLElementHidden(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 78 | bool setJSHTMLElementHidden(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 79 | JSC::EncodedJSValue jsHTMLElementTabIndex(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 80 | bool setJSHTMLElementTabIndex(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 81 | JSC::EncodedJSValue jsHTMLElementAccessKey(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 82 | bool setJSHTMLElementAccessKey(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 83 | JSC::EncodedJSValue jsHTMLElementDraggable(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 84 | bool setJSHTMLElementDraggable(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 85 | JSC::EncodedJSValue jsHTMLElementSpellcheck(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 86 | bool setJSHTMLElementSpellcheck(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 87 | JSC::EncodedJSValue jsHTMLElementInnerText(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 88 | bool setJSHTMLElementInnerText(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 89 | JSC::EncodedJSValue jsHTMLElementContentEditable(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 90 | bool setJSHTMLElementContentEditable(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 91 | JSC::EncodedJSValue jsHTMLElementIsContentEditable(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 92 | JSC::EncodedJSValue jsHTMLElementOffsetParent(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 93 | JSC::EncodedJSValue jsHTMLElementOffsetTop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 94 | JSC::EncodedJSValue jsHTMLElementOffsetLeft(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 95 | JSC::EncodedJSValue jsHTMLElementOffsetWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 96 | JSC::EncodedJSValue jsHTMLElementOffsetHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 97 | JSC::EncodedJSValue jsHTMLElementOuterText(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 98 | bool setJSHTMLElementOuterText(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 99 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 100 | JSC::EncodedJSValue jsHTMLElementAutocorrect(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 101 | bool setJSHTMLElementAutocorrect(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 102 | #endif |
| 103 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 104 | JSC::EncodedJSValue jsHTMLElementAutocapitalize(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 105 | bool setJSHTMLElementAutocapitalize(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 106 | #endif |
| 107 | JSC::EncodedJSValue jsHTMLElementWebkitdropzone(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 108 | bool setJSHTMLElementWebkitdropzone(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 109 | JSC::EncodedJSValue jsHTMLElementInputMode(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 110 | bool setJSHTMLElementInputMode(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 111 | JSC::EncodedJSValue jsHTMLElementStyle(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 112 | bool setJSHTMLElementStyle(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 113 | #if ENABLE(CSS_TYPED_OM) |
| 114 | JSC::EncodedJSValue jsHTMLElementAttributeStyleMap(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 115 | #endif |
| 116 | JSC::EncodedJSValue jsHTMLElementOnabort(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 117 | bool setJSHTMLElementOnabort(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 118 | JSC::EncodedJSValue jsHTMLElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 119 | bool setJSHTMLElementOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 120 | JSC::EncodedJSValue jsHTMLElementOncanplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 121 | bool setJSHTMLElementOncanplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 122 | JSC::EncodedJSValue jsHTMLElementOncanplaythrough(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 123 | bool setJSHTMLElementOncanplaythrough(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 124 | JSC::EncodedJSValue jsHTMLElementOnchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 125 | bool setJSHTMLElementOnchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 126 | JSC::EncodedJSValue jsHTMLElementOnclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 127 | bool setJSHTMLElementOnclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 128 | JSC::EncodedJSValue jsHTMLElementOncontextmenu(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 129 | bool setJSHTMLElementOncontextmenu(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 130 | JSC::EncodedJSValue jsHTMLElementOncuechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 131 | bool setJSHTMLElementOncuechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 132 | JSC::EncodedJSValue jsHTMLElementOndblclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 133 | bool setJSHTMLElementOndblclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 134 | JSC::EncodedJSValue jsHTMLElementOndrag(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 135 | bool setJSHTMLElementOndrag(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 136 | JSC::EncodedJSValue jsHTMLElementOndragend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 137 | bool setJSHTMLElementOndragend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 138 | JSC::EncodedJSValue jsHTMLElementOndragenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 139 | bool setJSHTMLElementOndragenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 140 | JSC::EncodedJSValue jsHTMLElementOndragleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 141 | bool setJSHTMLElementOndragleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 142 | JSC::EncodedJSValue jsHTMLElementOndragover(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 143 | bool setJSHTMLElementOndragover(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 144 | JSC::EncodedJSValue jsHTMLElementOndragstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 145 | bool setJSHTMLElementOndragstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 146 | JSC::EncodedJSValue jsHTMLElementOndrop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 147 | bool setJSHTMLElementOndrop(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 148 | JSC::EncodedJSValue jsHTMLElementOndurationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 149 | bool setJSHTMLElementOndurationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 150 | JSC::EncodedJSValue jsHTMLElementOnemptied(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 151 | bool setJSHTMLElementOnemptied(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 152 | JSC::EncodedJSValue jsHTMLElementOnended(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 153 | bool setJSHTMLElementOnended(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 154 | JSC::EncodedJSValue jsHTMLElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 155 | bool setJSHTMLElementOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 156 | JSC::EncodedJSValue jsHTMLElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 157 | bool setJSHTMLElementOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 158 | JSC::EncodedJSValue jsHTMLElementOninput(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 159 | bool setJSHTMLElementOninput(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 160 | JSC::EncodedJSValue jsHTMLElementOninvalid(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 161 | bool setJSHTMLElementOninvalid(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 162 | JSC::EncodedJSValue jsHTMLElementOnkeydown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 163 | bool setJSHTMLElementOnkeydown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 164 | JSC::EncodedJSValue jsHTMLElementOnkeypress(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 165 | bool setJSHTMLElementOnkeypress(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 166 | JSC::EncodedJSValue jsHTMLElementOnkeyup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 167 | bool setJSHTMLElementOnkeyup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 168 | JSC::EncodedJSValue jsHTMLElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 169 | bool setJSHTMLElementOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 170 | JSC::EncodedJSValue jsHTMLElementOnloadeddata(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 171 | bool setJSHTMLElementOnloadeddata(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 172 | JSC::EncodedJSValue jsHTMLElementOnloadedmetadata(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 173 | bool setJSHTMLElementOnloadedmetadata(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 174 | JSC::EncodedJSValue jsHTMLElementOnloadstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 175 | bool setJSHTMLElementOnloadstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 176 | JSC::EncodedJSValue jsHTMLElementOnmousedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 177 | bool setJSHTMLElementOnmousedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 178 | JSC::EncodedJSValue jsHTMLElementOnmouseenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 179 | bool setJSHTMLElementOnmouseenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 180 | JSC::EncodedJSValue jsHTMLElementOnmouseleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 181 | bool setJSHTMLElementOnmouseleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 182 | JSC::EncodedJSValue jsHTMLElementOnmousemove(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 183 | bool setJSHTMLElementOnmousemove(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 184 | JSC::EncodedJSValue jsHTMLElementOnmouseout(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 185 | bool setJSHTMLElementOnmouseout(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 186 | JSC::EncodedJSValue jsHTMLElementOnmouseover(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 187 | bool setJSHTMLElementOnmouseover(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 188 | JSC::EncodedJSValue jsHTMLElementOnmouseup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 189 | bool setJSHTMLElementOnmouseup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 190 | JSC::EncodedJSValue jsHTMLElementOnmousewheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 191 | bool setJSHTMLElementOnmousewheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 192 | JSC::EncodedJSValue jsHTMLElementOnpause(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 193 | bool setJSHTMLElementOnpause(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 194 | JSC::EncodedJSValue jsHTMLElementOnplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 195 | bool setJSHTMLElementOnplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 196 | JSC::EncodedJSValue jsHTMLElementOnplaying(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 197 | bool setJSHTMLElementOnplaying(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 198 | JSC::EncodedJSValue jsHTMLElementOnprogress(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 199 | bool setJSHTMLElementOnprogress(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 200 | JSC::EncodedJSValue jsHTMLElementOnratechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 201 | bool setJSHTMLElementOnratechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 202 | JSC::EncodedJSValue jsHTMLElementOnrejectionhandled(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 203 | bool setJSHTMLElementOnrejectionhandled(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 204 | JSC::EncodedJSValue jsHTMLElementOnreset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 205 | bool setJSHTMLElementOnreset(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 206 | JSC::EncodedJSValue jsHTMLElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 207 | bool setJSHTMLElementOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 208 | JSC::EncodedJSValue jsHTMLElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 209 | bool setJSHTMLElementOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 210 | JSC::EncodedJSValue jsHTMLElementOnseeked(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 211 | bool setJSHTMLElementOnseeked(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 212 | JSC::EncodedJSValue jsHTMLElementOnseeking(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 213 | bool setJSHTMLElementOnseeking(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 214 | JSC::EncodedJSValue jsHTMLElementOnselect(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 215 | bool setJSHTMLElementOnselect(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 216 | JSC::EncodedJSValue jsHTMLElementOnstalled(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 217 | bool setJSHTMLElementOnstalled(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 218 | JSC::EncodedJSValue jsHTMLElementOnsubmit(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 219 | bool setJSHTMLElementOnsubmit(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 220 | JSC::EncodedJSValue jsHTMLElementOnsuspend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 221 | bool setJSHTMLElementOnsuspend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 222 | JSC::EncodedJSValue jsHTMLElementOntimeupdate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 223 | bool setJSHTMLElementOntimeupdate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 224 | JSC::EncodedJSValue jsHTMLElementOntoggle(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 225 | bool setJSHTMLElementOntoggle(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 226 | JSC::EncodedJSValue jsHTMLElementOnunhandledrejection(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 227 | bool setJSHTMLElementOnunhandledrejection(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 228 | JSC::EncodedJSValue jsHTMLElementOnvolumechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 229 | bool setJSHTMLElementOnvolumechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 230 | JSC::EncodedJSValue jsHTMLElementOnwaiting(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 231 | bool setJSHTMLElementOnwaiting(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 232 | JSC::EncodedJSValue jsHTMLElementOntransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 233 | bool setJSHTMLElementOntransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 234 | JSC::EncodedJSValue jsHTMLElementOntransitionrun(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 235 | bool setJSHTMLElementOntransitionrun(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 236 | JSC::EncodedJSValue jsHTMLElementOntransitionstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 237 | bool setJSHTMLElementOntransitionstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 238 | JSC::EncodedJSValue jsHTMLElementOntransitioncancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 239 | bool setJSHTMLElementOntransitioncancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 240 | JSC::EncodedJSValue jsHTMLElementOnanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 241 | bool setJSHTMLElementOnanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 242 | JSC::EncodedJSValue jsHTMLElementOnanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 243 | bool setJSHTMLElementOnanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 244 | JSC::EncodedJSValue jsHTMLElementOnanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 245 | bool setJSHTMLElementOnanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 246 | JSC::EncodedJSValue jsHTMLElementOnanimationcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 247 | bool setJSHTMLElementOnanimationcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 248 | JSC::EncodedJSValue jsHTMLElementOngotpointercapture(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 249 | bool setJSHTMLElementOngotpointercapture(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 250 | JSC::EncodedJSValue jsHTMLElementOnlostpointercapture(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 251 | bool setJSHTMLElementOnlostpointercapture(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 252 | JSC::EncodedJSValue jsHTMLElementOnpointerdown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 253 | bool setJSHTMLElementOnpointerdown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 254 | JSC::EncodedJSValue jsHTMLElementOnpointermove(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 255 | bool setJSHTMLElementOnpointermove(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 256 | JSC::EncodedJSValue jsHTMLElementOnpointerup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 257 | bool setJSHTMLElementOnpointerup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 258 | JSC::EncodedJSValue jsHTMLElementOnpointercancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 259 | bool setJSHTMLElementOnpointercancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 260 | JSC::EncodedJSValue jsHTMLElementOnpointerover(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 261 | bool setJSHTMLElementOnpointerover(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 262 | JSC::EncodedJSValue jsHTMLElementOnpointerout(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 263 | bool setJSHTMLElementOnpointerout(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 264 | JSC::EncodedJSValue jsHTMLElementOnpointerenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 265 | bool setJSHTMLElementOnpointerenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 266 | JSC::EncodedJSValue jsHTMLElementOnpointerleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 267 | bool setJSHTMLElementOnpointerleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 268 | JSC::EncodedJSValue jsHTMLElementOnsearch(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 269 | bool setJSHTMLElementOnsearch(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 270 | JSC::EncodedJSValue jsHTMLElementOnwheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 271 | bool setJSHTMLElementOnwheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 272 | #if ENABLE(TOUCH_EVENTS) |
| 273 | JSC::EncodedJSValue jsHTMLElementOntouchcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 274 | bool setJSHTMLElementOntouchcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 275 | #endif |
| 276 | #if ENABLE(TOUCH_EVENTS) |
| 277 | JSC::EncodedJSValue jsHTMLElementOntouchend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 278 | bool setJSHTMLElementOntouchend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 279 | #endif |
| 280 | #if ENABLE(TOUCH_EVENTS) |
| 281 | JSC::EncodedJSValue jsHTMLElementOntouchmove(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 282 | bool setJSHTMLElementOntouchmove(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 283 | #endif |
| 284 | #if ENABLE(TOUCH_EVENTS) |
| 285 | JSC::EncodedJSValue jsHTMLElementOntouchstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 286 | bool setJSHTMLElementOntouchstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 287 | #endif |
| 288 | #if ENABLE(TOUCH_EVENTS) |
| 289 | JSC::EncodedJSValue jsHTMLElementOntouchforcechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 290 | bool setJSHTMLElementOntouchforcechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 291 | #endif |
| 292 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 293 | JSC::EncodedJSValue jsHTMLElementOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 294 | bool setJSHTMLElementOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 295 | #endif |
| 296 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 297 | JSC::EncodedJSValue jsHTMLElementOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 298 | bool setJSHTMLElementOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 299 | #endif |
| 300 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 301 | JSC::EncodedJSValue jsHTMLElementOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 302 | bool setJSHTMLElementOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 303 | #endif |
| 304 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 305 | JSC::EncodedJSValue jsHTMLElementOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| 306 | bool setJSHTMLElementOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| 307 | #endif |
| 308 | |
| 309 | class JSHTMLElementPrototype : public JSC::JSNonFinalObject { |
| 310 | public: |
| 311 | using Base = JSC::JSNonFinalObject; |
| 312 | static JSHTMLElementPrototype* create(JSC::VM& vm, JSDOMGlobalObject* globalObject, JSC::Structure* structure) |
| 313 | { |
| 314 | JSHTMLElementPrototype* ptr = new (NotNull, JSC::allocateCell<JSHTMLElementPrototype>(vm.heap)) JSHTMLElementPrototype(vm, globalObject, structure); |
| 315 | ptr->finishCreation(vm); |
| 316 | return ptr; |
| 317 | } |
| 318 | |
| 319 | DECLARE_INFO; |
| 320 | static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype) |
| 321 | { |
| 322 | return JSC::Structure::create(vm, globalObject, prototype, JSC::TypeInfo(JSC::ObjectType, StructureFlags), info()); |
| 323 | } |
| 324 | |
| 325 | private: |
| 326 | JSHTMLElementPrototype(JSC::VM& vm, JSC::JSGlobalObject*, JSC::Structure* structure) |
| 327 | : JSC::JSNonFinalObject(vm, structure) |
| 328 | { |
| 329 | } |
| 330 | |
| 331 | void finishCreation(JSC::VM&); |
| 332 | }; |
| 333 | |
| 334 | using JSHTMLElementConstructor = JSDOMConstructor<JSHTMLElement>; |
| 335 | |
| 336 | template<> JSC::EncodedJSValue JSC_HOST_CALL JSHTMLElementConstructor::construct(JSC::ExecState* exec) |
| 337 | { |
| 338 | ASSERT(exec); |
| 339 | return constructJSHTMLElement(*exec); |
| 340 | } |
| 341 | |
| 342 | template<> JSValue JSHTMLElementConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| 343 | { |
| 344 | return JSElement::getConstructor(vm, &globalObject); |
| 345 | } |
| 346 | |
| 347 | template<> void JSHTMLElementConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| 348 | { |
| 349 | putDirect(vm, vm.propertyNames->prototype, JSHTMLElement::prototype(vm, globalObject), JSC::PropertyAttribute::DontDelete | JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 350 | putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String("HTMLElement"_s )), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 351 | putDirect(vm, vm.propertyNames->length, jsNumber(0), JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::DontEnum); |
| 352 | } |
| 353 | |
| 354 | template<> const ClassInfo JSHTMLElementConstructor::s_info = { "HTMLElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLElementConstructor) }; |
| 355 | |
| 356 | /* Hash table for prototype */ |
| 357 | |
| 358 | static const HashTableValue JSHTMLElementPrototypeTableValues[] = |
| 359 | { |
| 360 | { "constructor" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementConstructor) } }, |
| 361 | { "title" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementTitle), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementTitle) } }, |
| 362 | { "lang" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementLang), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementLang) } }, |
| 363 | { "translate" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementTranslate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementTranslate) } }, |
| 364 | { "dir" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementDir), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementDir) } }, |
| 365 | { "dataset" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementDataset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 366 | { "hidden" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementHidden), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementHidden) } }, |
| 367 | { "tabIndex" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementTabIndex), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementTabIndex) } }, |
| 368 | { "accessKey" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementAccessKey), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementAccessKey) } }, |
| 369 | { "draggable" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementDraggable), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementDraggable) } }, |
| 370 | { "spellcheck" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementSpellcheck), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementSpellcheck) } }, |
| 371 | { "innerText" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementInnerText), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementInnerText) } }, |
| 372 | { "contentEditable" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementContentEditable), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementContentEditable) } }, |
| 373 | { "isContentEditable" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementIsContentEditable), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 374 | { "offsetParent" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOffsetParent), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 375 | { "offsetTop" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOffsetTop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 376 | { "offsetLeft" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOffsetLeft), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 377 | { "offsetWidth" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOffsetWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 378 | { "offsetHeight" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOffsetHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 379 | { "outerText" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOuterText), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOuterText) } }, |
| 380 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 381 | { "autocorrect" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementAutocorrect), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementAutocorrect) } }, |
| 382 | #else |
| 383 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 384 | #endif |
| 385 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 386 | { "autocapitalize" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementAutocapitalize), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementAutocapitalize) } }, |
| 387 | #else |
| 388 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 389 | #endif |
| 390 | { "webkitdropzone" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementWebkitdropzone), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementWebkitdropzone) } }, |
| 391 | { "inputMode" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementInputMode), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementInputMode) } }, |
| 392 | { "style" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementStyle), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementStyle) } }, |
| 393 | #if ENABLE(CSS_TYPED_OM) |
| 394 | { "attributeStyleMap" , static_cast<unsigned>(JSC::PropertyAttribute::ReadOnly | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementAttributeStyleMap), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| 395 | #else |
| 396 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 397 | #endif |
| 398 | { "onabort" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnabort), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnabort) } }, |
| 399 | { "onblur" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnblur), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnblur) } }, |
| 400 | { "oncanplay" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOncanplay), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOncanplay) } }, |
| 401 | { "oncanplaythrough" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOncanplaythrough), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOncanplaythrough) } }, |
| 402 | { "onchange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnchange) } }, |
| 403 | { "onclick" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnclick), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnclick) } }, |
| 404 | { "oncontextmenu" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOncontextmenu), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOncontextmenu) } }, |
| 405 | { "oncuechange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOncuechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOncuechange) } }, |
| 406 | { "ondblclick" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndblclick), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndblclick) } }, |
| 407 | { "ondrag" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndrag), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndrag) } }, |
| 408 | { "ondragend" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndragend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndragend) } }, |
| 409 | { "ondragenter" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndragenter), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndragenter) } }, |
| 410 | { "ondragleave" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndragleave), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndragleave) } }, |
| 411 | { "ondragover" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndragover), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndragover) } }, |
| 412 | { "ondragstart" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndragstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndragstart) } }, |
| 413 | { "ondrop" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndrop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndrop) } }, |
| 414 | { "ondurationchange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOndurationchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOndurationchange) } }, |
| 415 | { "onemptied" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnemptied), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnemptied) } }, |
| 416 | { "onended" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnended), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnended) } }, |
| 417 | { "onerror" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnerror), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnerror) } }, |
| 418 | { "onfocus" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnfocus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnfocus) } }, |
| 419 | { "oninput" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOninput), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOninput) } }, |
| 420 | { "oninvalid" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOninvalid), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOninvalid) } }, |
| 421 | { "onkeydown" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnkeydown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnkeydown) } }, |
| 422 | { "onkeypress" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnkeypress), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnkeypress) } }, |
| 423 | { "onkeyup" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnkeyup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnkeyup) } }, |
| 424 | { "onload" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnload) } }, |
| 425 | { "onloadeddata" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnloadeddata), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnloadeddata) } }, |
| 426 | { "onloadedmetadata" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnloadedmetadata), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnloadedmetadata) } }, |
| 427 | { "onloadstart" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnloadstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnloadstart) } }, |
| 428 | { "onmousedown" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmousedown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmousedown) } }, |
| 429 | { "onmouseenter" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmouseenter), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmouseenter) } }, |
| 430 | { "onmouseleave" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmouseleave), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmouseleave) } }, |
| 431 | { "onmousemove" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmousemove), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmousemove) } }, |
| 432 | { "onmouseout" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmouseout), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmouseout) } }, |
| 433 | { "onmouseover" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmouseover), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmouseover) } }, |
| 434 | { "onmouseup" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmouseup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmouseup) } }, |
| 435 | { "onmousewheel" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnmousewheel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnmousewheel) } }, |
| 436 | { "onpause" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpause), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpause) } }, |
| 437 | { "onplay" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnplay), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnplay) } }, |
| 438 | { "onplaying" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnplaying), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnplaying) } }, |
| 439 | { "onprogress" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnprogress), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnprogress) } }, |
| 440 | { "onratechange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnratechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnratechange) } }, |
| 441 | { "onrejectionhandled" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnrejectionhandled), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnrejectionhandled) } }, |
| 442 | { "onreset" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnreset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnreset) } }, |
| 443 | { "onresize" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnresize), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnresize) } }, |
| 444 | { "onscroll" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnscroll), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnscroll) } }, |
| 445 | { "onseeked" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnseeked), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnseeked) } }, |
| 446 | { "onseeking" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnseeking), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnseeking) } }, |
| 447 | { "onselect" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnselect), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnselect) } }, |
| 448 | { "onstalled" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnstalled), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnstalled) } }, |
| 449 | { "onsubmit" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnsubmit), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnsubmit) } }, |
| 450 | { "onsuspend" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnsuspend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnsuspend) } }, |
| 451 | { "ontimeupdate" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntimeupdate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntimeupdate) } }, |
| 452 | { "ontoggle" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntoggle), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntoggle) } }, |
| 453 | { "onunhandledrejection" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnunhandledrejection), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnunhandledrejection) } }, |
| 454 | { "onvolumechange" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnvolumechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnvolumechange) } }, |
| 455 | { "onwaiting" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwaiting), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwaiting) } }, |
| 456 | { "ontransitionend" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntransitionend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntransitionend) } }, |
| 457 | { "ontransitionrun" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntransitionrun), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntransitionrun) } }, |
| 458 | { "ontransitionstart" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntransitionstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntransitionstart) } }, |
| 459 | { "ontransitioncancel" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntransitioncancel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntransitioncancel) } }, |
| 460 | { "onanimationend" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnanimationend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnanimationend) } }, |
| 461 | { "onanimationiteration" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnanimationiteration), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnanimationiteration) } }, |
| 462 | { "onanimationstart" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnanimationstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnanimationstart) } }, |
| 463 | { "onanimationcancel" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnanimationcancel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnanimationcancel) } }, |
| 464 | { "ongotpointercapture" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOngotpointercapture), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOngotpointercapture) } }, |
| 465 | { "onlostpointercapture" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnlostpointercapture), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnlostpointercapture) } }, |
| 466 | { "onpointerdown" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerdown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerdown) } }, |
| 467 | { "onpointermove" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointermove), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointermove) } }, |
| 468 | { "onpointerup" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerup) } }, |
| 469 | { "onpointercancel" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointercancel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointercancel) } }, |
| 470 | { "onpointerover" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerover), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerover) } }, |
| 471 | { "onpointerout" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerout), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerout) } }, |
| 472 | { "onpointerenter" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerenter), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerenter) } }, |
| 473 | { "onpointerleave" , static_cast<unsigned>(JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnpointerleave), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnpointerleave) } }, |
| 474 | { "onsearch" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnsearch), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnsearch) } }, |
| 475 | { "onwheel" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwheel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwheel) } }, |
| 476 | #if ENABLE(TOUCH_EVENTS) |
| 477 | { "ontouchcancel" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntouchcancel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntouchcancel) } }, |
| 478 | #else |
| 479 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 480 | #endif |
| 481 | #if ENABLE(TOUCH_EVENTS) |
| 482 | { "ontouchend" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntouchend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntouchend) } }, |
| 483 | #else |
| 484 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 485 | #endif |
| 486 | #if ENABLE(TOUCH_EVENTS) |
| 487 | { "ontouchmove" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntouchmove), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntouchmove) } }, |
| 488 | #else |
| 489 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 490 | #endif |
| 491 | #if ENABLE(TOUCH_EVENTS) |
| 492 | { "ontouchstart" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntouchstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntouchstart) } }, |
| 493 | #else |
| 494 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 495 | #endif |
| 496 | #if ENABLE(TOUCH_EVENTS) |
| 497 | { "ontouchforcechange" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOntouchforcechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOntouchforcechange) } }, |
| 498 | #else |
| 499 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 500 | #endif |
| 501 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 502 | { "onwebkitmouseforcechanged" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwebkitmouseforcechanged), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwebkitmouseforcechanged) } }, |
| 503 | #else |
| 504 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 505 | #endif |
| 506 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 507 | { "onwebkitmouseforcedown" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwebkitmouseforcedown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwebkitmouseforcedown) } }, |
| 508 | #else |
| 509 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 510 | #endif |
| 511 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 512 | { "onwebkitmouseforcewillbegin" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwebkitmouseforcewillbegin), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwebkitmouseforcewillbegin) } }, |
| 513 | #else |
| 514 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 515 | #endif |
| 516 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 517 | { "onwebkitmouseforceup" , static_cast<unsigned>(JSC::PropertyAttribute::DontEnum | JSC::PropertyAttribute::CustomAccessor | JSC::PropertyAttribute::DOMAttribute), NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsHTMLElementOnwebkitmouseforceup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSHTMLElementOnwebkitmouseforceup) } }, |
| 518 | #else |
| 519 | { 0, 0, NoIntrinsic, { 0, 0 } }, |
| 520 | #endif |
| 521 | { "click" , static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsHTMLElementPrototypeFunctionClick), (intptr_t) (0) } }, |
| 522 | { "focus" , static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsHTMLElementPrototypeFunctionFocus), (intptr_t) (0) } }, |
| 523 | { "blur" , static_cast<unsigned>(JSC::PropertyAttribute::Function), NoIntrinsic, { (intptr_t)static_cast<RawNativeFunction>(jsHTMLElementPrototypeFunctionBlur), (intptr_t) (0) } }, |
| 524 | }; |
| 525 | |
| 526 | const ClassInfo JSHTMLElementPrototype::s_info = { "HTMLElementPrototype" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLElementPrototype) }; |
| 527 | |
| 528 | void JSHTMLElementPrototype::finishCreation(VM& vm) |
| 529 | { |
| 530 | Base::finishCreation(vm); |
| 531 | reifyStaticProperties(vm, JSHTMLElement::info(), JSHTMLElementPrototypeTableValues, *this); |
| 532 | bool hasDisabledRuntimeProperties = false; |
| 533 | #if ENABLE(CSS_TYPED_OM) |
| 534 | if (!RuntimeEnabledFeatures::sharedFeatures().cssTypedOMEnabled()) { |
| 535 | hasDisabledRuntimeProperties = true; |
| 536 | auto propertyName = Identifier::fromString(&vm, reinterpret_cast<const LChar*>("attributeStyleMap" ), strlen("attributeStyleMap" )); |
| 537 | VM::DeletePropertyModeScope scope(vm, VM::DeletePropertyMode::IgnoreConfigurable); |
| 538 | JSObject::deleteProperty(this, globalObject()->globalExec(), propertyName); |
| 539 | } |
| 540 | #endif |
| 541 | if (hasDisabledRuntimeProperties && structure()->isDictionary()) |
| 542 | flattenDictionaryObject(vm); |
| 543 | } |
| 544 | |
| 545 | const ClassInfo JSHTMLElement::s_info = { "HTMLElement" , &Base::s_info, nullptr, nullptr, CREATE_METHOD_TABLE(JSHTMLElement) }; |
| 546 | |
| 547 | JSHTMLElement::JSHTMLElement(Structure* structure, JSDOMGlobalObject& globalObject, Ref<HTMLElement>&& impl) |
| 548 | : JSElement(structure, globalObject, WTFMove(impl)) |
| 549 | { |
| 550 | } |
| 551 | |
| 552 | void JSHTMLElement::finishCreation(VM& vm) |
| 553 | { |
| 554 | Base::finishCreation(vm); |
| 555 | ASSERT(inherits(vm, info())); |
| 556 | |
| 557 | } |
| 558 | |
| 559 | JSObject* JSHTMLElement::createPrototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 560 | { |
| 561 | return JSHTMLElementPrototype::create(vm, &globalObject, JSHTMLElementPrototype::createStructure(vm, &globalObject, JSElement::prototype(vm, globalObject))); |
| 562 | } |
| 563 | |
| 564 | JSObject* JSHTMLElement::prototype(VM& vm, JSDOMGlobalObject& globalObject) |
| 565 | { |
| 566 | return getDOMPrototype<JSHTMLElement>(vm, globalObject); |
| 567 | } |
| 568 | |
| 569 | JSValue JSHTMLElement::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| 570 | { |
| 571 | return getDOMConstructor<JSHTMLElementConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| 572 | } |
| 573 | |
| 574 | template<> inline JSHTMLElement* IDLAttribute<JSHTMLElement>::cast(ExecState& state, EncodedJSValue thisValue) |
| 575 | { |
| 576 | return jsDynamicCast<JSHTMLElement*>(state.vm(), JSValue::decode(thisValue)); |
| 577 | } |
| 578 | |
| 579 | template<> inline JSHTMLElement* IDLOperation<JSHTMLElement>::cast(ExecState& state) |
| 580 | { |
| 581 | return jsDynamicCast<JSHTMLElement*>(state.vm(), state.thisValue()); |
| 582 | } |
| 583 | |
| 584 | EncodedJSValue jsHTMLElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 585 | { |
| 586 | VM& vm = state->vm(); |
| 587 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 588 | auto* prototype = jsDynamicCast<JSHTMLElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 589 | if (UNLIKELY(!prototype)) |
| 590 | return throwVMTypeError(state, throwScope); |
| 591 | return JSValue::encode(JSHTMLElement::getConstructor(state->vm(), prototype->globalObject())); |
| 592 | } |
| 593 | |
| 594 | bool setJSHTMLElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 595 | { |
| 596 | VM& vm = state->vm(); |
| 597 | auto throwScope = DECLARE_THROW_SCOPE(vm); |
| 598 | auto* prototype = jsDynamicCast<JSHTMLElementPrototype*>(vm, JSValue::decode(thisValue)); |
| 599 | if (UNLIKELY(!prototype)) { |
| 600 | throwVMTypeError(state, throwScope); |
| 601 | return false; |
| 602 | } |
| 603 | // Shadowing a built-in constructor |
| 604 | return prototype->putDirect(vm, vm.propertyNames->constructor, JSValue::decode(encodedValue)); |
| 605 | } |
| 606 | |
| 607 | static inline JSValue jsHTMLElementTitleGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 608 | { |
| 609 | UNUSED_PARAM(throwScope); |
| 610 | UNUSED_PARAM(state); |
| 611 | auto& impl = thisObject.wrapped(); |
| 612 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::titleAttr)); |
| 613 | return result; |
| 614 | } |
| 615 | |
| 616 | EncodedJSValue jsHTMLElementTitle(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 617 | { |
| 618 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementTitleGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "title" ); |
| 619 | } |
| 620 | |
| 621 | static inline bool setJSHTMLElementTitleSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 622 | { |
| 623 | UNUSED_PARAM(throwScope); |
| 624 | CustomElementReactionStack customElementReactionStack(state); |
| 625 | auto& impl = thisObject.wrapped(); |
| 626 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 627 | RETURN_IF_EXCEPTION(throwScope, false); |
| 628 | AttributeSetter::call(state, throwScope, [&] { |
| 629 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::titleAttr, WTFMove(nativeValue)); |
| 630 | }); |
| 631 | return true; |
| 632 | } |
| 633 | |
| 634 | bool setJSHTMLElementTitle(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 635 | { |
| 636 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementTitleSetter>(*state, thisValue, encodedValue, "title" ); |
| 637 | } |
| 638 | |
| 639 | static inline JSValue jsHTMLElementLangGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 640 | { |
| 641 | UNUSED_PARAM(throwScope); |
| 642 | UNUSED_PARAM(state); |
| 643 | auto& impl = thisObject.wrapped(); |
| 644 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::langAttr)); |
| 645 | return result; |
| 646 | } |
| 647 | |
| 648 | EncodedJSValue jsHTMLElementLang(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 649 | { |
| 650 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementLangGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "lang" ); |
| 651 | } |
| 652 | |
| 653 | static inline bool setJSHTMLElementLangSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 654 | { |
| 655 | UNUSED_PARAM(throwScope); |
| 656 | CustomElementReactionStack customElementReactionStack(state); |
| 657 | auto& impl = thisObject.wrapped(); |
| 658 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 659 | RETURN_IF_EXCEPTION(throwScope, false); |
| 660 | AttributeSetter::call(state, throwScope, [&] { |
| 661 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::langAttr, WTFMove(nativeValue)); |
| 662 | }); |
| 663 | return true; |
| 664 | } |
| 665 | |
| 666 | bool setJSHTMLElementLang(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 667 | { |
| 668 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementLangSetter>(*state, thisValue, encodedValue, "lang" ); |
| 669 | } |
| 670 | |
| 671 | static inline JSValue jsHTMLElementTranslateGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 672 | { |
| 673 | UNUSED_PARAM(throwScope); |
| 674 | UNUSED_PARAM(state); |
| 675 | auto& impl = thisObject.wrapped(); |
| 676 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.translate()); |
| 677 | return result; |
| 678 | } |
| 679 | |
| 680 | EncodedJSValue jsHTMLElementTranslate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 681 | { |
| 682 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementTranslateGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "translate" ); |
| 683 | } |
| 684 | |
| 685 | static inline bool setJSHTMLElementTranslateSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 686 | { |
| 687 | UNUSED_PARAM(throwScope); |
| 688 | CustomElementReactionStack customElementReactionStack(state); |
| 689 | auto& impl = thisObject.wrapped(); |
| 690 | auto nativeValue = convert<IDLBoolean>(state, value); |
| 691 | RETURN_IF_EXCEPTION(throwScope, false); |
| 692 | AttributeSetter::call(state, throwScope, [&] { |
| 693 | return impl.setTranslate(WTFMove(nativeValue)); |
| 694 | }); |
| 695 | return true; |
| 696 | } |
| 697 | |
| 698 | bool setJSHTMLElementTranslate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 699 | { |
| 700 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementTranslateSetter>(*state, thisValue, encodedValue, "translate" ); |
| 701 | } |
| 702 | |
| 703 | static inline JSValue jsHTMLElementDirGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 704 | { |
| 705 | UNUSED_PARAM(throwScope); |
| 706 | UNUSED_PARAM(state); |
| 707 | auto& impl = thisObject.wrapped(); |
| 708 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.dir()); |
| 709 | return result; |
| 710 | } |
| 711 | |
| 712 | EncodedJSValue jsHTMLElementDir(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 713 | { |
| 714 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementDirGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "dir" ); |
| 715 | } |
| 716 | |
| 717 | static inline bool setJSHTMLElementDirSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 718 | { |
| 719 | UNUSED_PARAM(throwScope); |
| 720 | CustomElementReactionStack customElementReactionStack(state); |
| 721 | auto& impl = thisObject.wrapped(); |
| 722 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 723 | RETURN_IF_EXCEPTION(throwScope, false); |
| 724 | AttributeSetter::call(state, throwScope, [&] { |
| 725 | return impl.setDir(WTFMove(nativeValue)); |
| 726 | }); |
| 727 | return true; |
| 728 | } |
| 729 | |
| 730 | bool setJSHTMLElementDir(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 731 | { |
| 732 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementDirSetter>(*state, thisValue, encodedValue, "dir" ); |
| 733 | } |
| 734 | |
| 735 | static inline JSValue jsHTMLElementDatasetGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 736 | { |
| 737 | UNUSED_PARAM(throwScope); |
| 738 | UNUSED_PARAM(state); |
| 739 | auto& impl = thisObject.wrapped(); |
| 740 | JSValue result = toJS<IDLInterface<DOMStringMap>>(state, *thisObject.globalObject(), throwScope, impl.dataset()); |
| 741 | return result; |
| 742 | } |
| 743 | |
| 744 | EncodedJSValue jsHTMLElementDataset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 745 | { |
| 746 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementDatasetGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "dataset" ); |
| 747 | } |
| 748 | |
| 749 | static inline JSValue jsHTMLElementHiddenGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 750 | { |
| 751 | UNUSED_PARAM(throwScope); |
| 752 | UNUSED_PARAM(state); |
| 753 | auto& impl = thisObject.wrapped(); |
| 754 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.hasAttributeWithoutSynchronization(WebCore::HTMLNames::hiddenAttr)); |
| 755 | return result; |
| 756 | } |
| 757 | |
| 758 | EncodedJSValue jsHTMLElementHidden(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 759 | { |
| 760 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementHiddenGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "hidden" ); |
| 761 | } |
| 762 | |
| 763 | static inline bool setJSHTMLElementHiddenSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 764 | { |
| 765 | UNUSED_PARAM(throwScope); |
| 766 | CustomElementReactionStack customElementReactionStack(state); |
| 767 | auto& impl = thisObject.wrapped(); |
| 768 | auto nativeValue = convert<IDLBoolean>(state, value); |
| 769 | RETURN_IF_EXCEPTION(throwScope, false); |
| 770 | AttributeSetter::call(state, throwScope, [&] { |
| 771 | return impl.setBooleanAttribute(WebCore::HTMLNames::hiddenAttr, WTFMove(nativeValue)); |
| 772 | }); |
| 773 | return true; |
| 774 | } |
| 775 | |
| 776 | bool setJSHTMLElementHidden(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 777 | { |
| 778 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementHiddenSetter>(*state, thisValue, encodedValue, "hidden" ); |
| 779 | } |
| 780 | |
| 781 | static inline JSValue jsHTMLElementTabIndexGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 782 | { |
| 783 | UNUSED_PARAM(throwScope); |
| 784 | UNUSED_PARAM(state); |
| 785 | auto& impl = thisObject.wrapped(); |
| 786 | JSValue result = toJS<IDLLong>(state, throwScope, impl.tabIndex()); |
| 787 | return result; |
| 788 | } |
| 789 | |
| 790 | EncodedJSValue jsHTMLElementTabIndex(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 791 | { |
| 792 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementTabIndexGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "tabIndex" ); |
| 793 | } |
| 794 | |
| 795 | static inline bool setJSHTMLElementTabIndexSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 796 | { |
| 797 | UNUSED_PARAM(throwScope); |
| 798 | CustomElementReactionStack customElementReactionStack(state); |
| 799 | auto& impl = thisObject.wrapped(); |
| 800 | auto nativeValue = convert<IDLLong>(state, value); |
| 801 | RETURN_IF_EXCEPTION(throwScope, false); |
| 802 | AttributeSetter::call(state, throwScope, [&] { |
| 803 | return impl.setTabIndex(WTFMove(nativeValue)); |
| 804 | }); |
| 805 | return true; |
| 806 | } |
| 807 | |
| 808 | bool setJSHTMLElementTabIndex(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 809 | { |
| 810 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementTabIndexSetter>(*state, thisValue, encodedValue, "tabIndex" ); |
| 811 | } |
| 812 | |
| 813 | static inline JSValue jsHTMLElementAccessKeyGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 814 | { |
| 815 | UNUSED_PARAM(throwScope); |
| 816 | UNUSED_PARAM(state); |
| 817 | auto& impl = thisObject.wrapped(); |
| 818 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::accesskeyAttr)); |
| 819 | return result; |
| 820 | } |
| 821 | |
| 822 | EncodedJSValue jsHTMLElementAccessKey(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 823 | { |
| 824 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementAccessKeyGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "accessKey" ); |
| 825 | } |
| 826 | |
| 827 | static inline bool setJSHTMLElementAccessKeySetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 828 | { |
| 829 | UNUSED_PARAM(throwScope); |
| 830 | CustomElementReactionStack customElementReactionStack(state); |
| 831 | auto& impl = thisObject.wrapped(); |
| 832 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 833 | RETURN_IF_EXCEPTION(throwScope, false); |
| 834 | AttributeSetter::call(state, throwScope, [&] { |
| 835 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::accesskeyAttr, WTFMove(nativeValue)); |
| 836 | }); |
| 837 | return true; |
| 838 | } |
| 839 | |
| 840 | bool setJSHTMLElementAccessKey(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 841 | { |
| 842 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementAccessKeySetter>(*state, thisValue, encodedValue, "accessKey" ); |
| 843 | } |
| 844 | |
| 845 | static inline JSValue jsHTMLElementDraggableGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 846 | { |
| 847 | UNUSED_PARAM(throwScope); |
| 848 | UNUSED_PARAM(state); |
| 849 | auto& impl = thisObject.wrapped(); |
| 850 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.draggable()); |
| 851 | return result; |
| 852 | } |
| 853 | |
| 854 | EncodedJSValue jsHTMLElementDraggable(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 855 | { |
| 856 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementDraggableGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "draggable" ); |
| 857 | } |
| 858 | |
| 859 | static inline bool setJSHTMLElementDraggableSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 860 | { |
| 861 | UNUSED_PARAM(throwScope); |
| 862 | CustomElementReactionStack customElementReactionStack(state); |
| 863 | auto& impl = thisObject.wrapped(); |
| 864 | auto nativeValue = convert<IDLBoolean>(state, value); |
| 865 | RETURN_IF_EXCEPTION(throwScope, false); |
| 866 | AttributeSetter::call(state, throwScope, [&] { |
| 867 | return impl.setDraggable(WTFMove(nativeValue)); |
| 868 | }); |
| 869 | return true; |
| 870 | } |
| 871 | |
| 872 | bool setJSHTMLElementDraggable(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 873 | { |
| 874 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementDraggableSetter>(*state, thisValue, encodedValue, "draggable" ); |
| 875 | } |
| 876 | |
| 877 | static inline JSValue jsHTMLElementSpellcheckGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 878 | { |
| 879 | UNUSED_PARAM(throwScope); |
| 880 | UNUSED_PARAM(state); |
| 881 | auto& impl = thisObject.wrapped(); |
| 882 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.spellcheck()); |
| 883 | return result; |
| 884 | } |
| 885 | |
| 886 | EncodedJSValue jsHTMLElementSpellcheck(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 887 | { |
| 888 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementSpellcheckGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "spellcheck" ); |
| 889 | } |
| 890 | |
| 891 | static inline bool setJSHTMLElementSpellcheckSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 892 | { |
| 893 | UNUSED_PARAM(throwScope); |
| 894 | CustomElementReactionStack customElementReactionStack(state); |
| 895 | auto& impl = thisObject.wrapped(); |
| 896 | auto nativeValue = convert<IDLBoolean>(state, value); |
| 897 | RETURN_IF_EXCEPTION(throwScope, false); |
| 898 | AttributeSetter::call(state, throwScope, [&] { |
| 899 | return impl.setSpellcheck(WTFMove(nativeValue)); |
| 900 | }); |
| 901 | return true; |
| 902 | } |
| 903 | |
| 904 | bool setJSHTMLElementSpellcheck(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 905 | { |
| 906 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementSpellcheckSetter>(*state, thisValue, encodedValue, "spellcheck" ); |
| 907 | } |
| 908 | |
| 909 | static inline JSValue jsHTMLElementInnerTextGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 910 | { |
| 911 | UNUSED_PARAM(throwScope); |
| 912 | UNUSED_PARAM(state); |
| 913 | auto& impl = thisObject.wrapped(); |
| 914 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.innerText()); |
| 915 | return result; |
| 916 | } |
| 917 | |
| 918 | EncodedJSValue jsHTMLElementInnerText(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 919 | { |
| 920 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementInnerTextGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "innerText" ); |
| 921 | } |
| 922 | |
| 923 | static inline bool setJSHTMLElementInnerTextSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 924 | { |
| 925 | UNUSED_PARAM(throwScope); |
| 926 | CustomElementReactionStack customElementReactionStack(state); |
| 927 | auto& impl = thisObject.wrapped(); |
| 928 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
| 929 | RETURN_IF_EXCEPTION(throwScope, false); |
| 930 | AttributeSetter::call(state, throwScope, [&] { |
| 931 | return impl.setInnerText(WTFMove(nativeValue)); |
| 932 | }); |
| 933 | return true; |
| 934 | } |
| 935 | |
| 936 | bool setJSHTMLElementInnerText(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 937 | { |
| 938 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementInnerTextSetter>(*state, thisValue, encodedValue, "innerText" ); |
| 939 | } |
| 940 | |
| 941 | static inline JSValue jsHTMLElementContentEditableGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 942 | { |
| 943 | UNUSED_PARAM(throwScope); |
| 944 | UNUSED_PARAM(state); |
| 945 | auto& impl = thisObject.wrapped(); |
| 946 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.contentEditable()); |
| 947 | return result; |
| 948 | } |
| 949 | |
| 950 | EncodedJSValue jsHTMLElementContentEditable(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 951 | { |
| 952 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementContentEditableGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "contentEditable" ); |
| 953 | } |
| 954 | |
| 955 | static inline bool setJSHTMLElementContentEditableSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 956 | { |
| 957 | UNUSED_PARAM(throwScope); |
| 958 | CustomElementReactionStack customElementReactionStack(state); |
| 959 | auto& impl = thisObject.wrapped(); |
| 960 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 961 | RETURN_IF_EXCEPTION(throwScope, false); |
| 962 | AttributeSetter::call(state, throwScope, [&] { |
| 963 | return impl.setContentEditable(WTFMove(nativeValue)); |
| 964 | }); |
| 965 | return true; |
| 966 | } |
| 967 | |
| 968 | bool setJSHTMLElementContentEditable(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 969 | { |
| 970 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementContentEditableSetter>(*state, thisValue, encodedValue, "contentEditable" ); |
| 971 | } |
| 972 | |
| 973 | static inline JSValue jsHTMLElementIsContentEditableGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 974 | { |
| 975 | UNUSED_PARAM(throwScope); |
| 976 | UNUSED_PARAM(state); |
| 977 | auto& impl = thisObject.wrapped(); |
| 978 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.isContentEditable()); |
| 979 | return result; |
| 980 | } |
| 981 | |
| 982 | EncodedJSValue jsHTMLElementIsContentEditable(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 983 | { |
| 984 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementIsContentEditableGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "isContentEditable" ); |
| 985 | } |
| 986 | |
| 987 | static inline JSValue jsHTMLElementOffsetParentGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 988 | { |
| 989 | UNUSED_PARAM(throwScope); |
| 990 | UNUSED_PARAM(state); |
| 991 | auto& impl = thisObject.wrapped(); |
| 992 | JSValue result = toJS<IDLNullable<IDLInterface<Element>>>(state, *thisObject.globalObject(), throwScope, impl.offsetParentForBindings()); |
| 993 | return result; |
| 994 | } |
| 995 | |
| 996 | EncodedJSValue jsHTMLElementOffsetParent(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 997 | { |
| 998 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOffsetParentGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offsetParent" ); |
| 999 | } |
| 1000 | |
| 1001 | static inline JSValue jsHTMLElementOffsetTopGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1002 | { |
| 1003 | UNUSED_PARAM(throwScope); |
| 1004 | UNUSED_PARAM(state); |
| 1005 | auto& impl = thisObject.wrapped(); |
| 1006 | JSValue result = toJS<IDLDouble>(state, throwScope, impl.offsetTopForBindings()); |
| 1007 | return result; |
| 1008 | } |
| 1009 | |
| 1010 | EncodedJSValue jsHTMLElementOffsetTop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1011 | { |
| 1012 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOffsetTopGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offsetTop" ); |
| 1013 | } |
| 1014 | |
| 1015 | static inline JSValue jsHTMLElementOffsetLeftGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1016 | { |
| 1017 | UNUSED_PARAM(throwScope); |
| 1018 | UNUSED_PARAM(state); |
| 1019 | auto& impl = thisObject.wrapped(); |
| 1020 | JSValue result = toJS<IDLDouble>(state, throwScope, impl.offsetLeftForBindings()); |
| 1021 | return result; |
| 1022 | } |
| 1023 | |
| 1024 | EncodedJSValue jsHTMLElementOffsetLeft(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1025 | { |
| 1026 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOffsetLeftGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offsetLeft" ); |
| 1027 | } |
| 1028 | |
| 1029 | static inline JSValue jsHTMLElementOffsetWidthGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1030 | { |
| 1031 | UNUSED_PARAM(throwScope); |
| 1032 | UNUSED_PARAM(state); |
| 1033 | auto& impl = thisObject.wrapped(); |
| 1034 | JSValue result = toJS<IDLDouble>(state, throwScope, impl.offsetWidth()); |
| 1035 | return result; |
| 1036 | } |
| 1037 | |
| 1038 | EncodedJSValue jsHTMLElementOffsetWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1039 | { |
| 1040 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOffsetWidthGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offsetWidth" ); |
| 1041 | } |
| 1042 | |
| 1043 | static inline JSValue jsHTMLElementOffsetHeightGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1044 | { |
| 1045 | UNUSED_PARAM(throwScope); |
| 1046 | UNUSED_PARAM(state); |
| 1047 | auto& impl = thisObject.wrapped(); |
| 1048 | JSValue result = toJS<IDLDouble>(state, throwScope, impl.offsetHeight()); |
| 1049 | return result; |
| 1050 | } |
| 1051 | |
| 1052 | EncodedJSValue jsHTMLElementOffsetHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1053 | { |
| 1054 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOffsetHeightGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "offsetHeight" ); |
| 1055 | } |
| 1056 | |
| 1057 | static inline JSValue jsHTMLElementOuterTextGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1058 | { |
| 1059 | UNUSED_PARAM(throwScope); |
| 1060 | UNUSED_PARAM(state); |
| 1061 | auto& impl = thisObject.wrapped(); |
| 1062 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.outerText()); |
| 1063 | return result; |
| 1064 | } |
| 1065 | |
| 1066 | EncodedJSValue jsHTMLElementOuterText(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1067 | { |
| 1068 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOuterTextGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "outerText" ); |
| 1069 | } |
| 1070 | |
| 1071 | static inline bool setJSHTMLElementOuterTextSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1072 | { |
| 1073 | UNUSED_PARAM(throwScope); |
| 1074 | CustomElementReactionStack customElementReactionStack(state); |
| 1075 | auto& impl = thisObject.wrapped(); |
| 1076 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
| 1077 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1078 | AttributeSetter::call(state, throwScope, [&] { |
| 1079 | return impl.setOuterText(WTFMove(nativeValue)); |
| 1080 | }); |
| 1081 | return true; |
| 1082 | } |
| 1083 | |
| 1084 | bool setJSHTMLElementOuterText(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1085 | { |
| 1086 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOuterTextSetter>(*state, thisValue, encodedValue, "outerText" ); |
| 1087 | } |
| 1088 | |
| 1089 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 1090 | static inline JSValue jsHTMLElementAutocorrectGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1091 | { |
| 1092 | UNUSED_PARAM(throwScope); |
| 1093 | UNUSED_PARAM(state); |
| 1094 | auto& impl = thisObject.wrapped(); |
| 1095 | JSValue result = toJS<IDLBoolean>(state, throwScope, impl.autocorrect()); |
| 1096 | return result; |
| 1097 | } |
| 1098 | |
| 1099 | EncodedJSValue jsHTMLElementAutocorrect(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1100 | { |
| 1101 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementAutocorrectGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "autocorrect" ); |
| 1102 | } |
| 1103 | |
| 1104 | #endif |
| 1105 | |
| 1106 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 1107 | static inline bool setJSHTMLElementAutocorrectSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1108 | { |
| 1109 | UNUSED_PARAM(throwScope); |
| 1110 | CustomElementReactionStack customElementReactionStack(state); |
| 1111 | auto& impl = thisObject.wrapped(); |
| 1112 | auto nativeValue = convert<IDLBoolean>(state, value); |
| 1113 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1114 | AttributeSetter::call(state, throwScope, [&] { |
| 1115 | return impl.setAutocorrect(WTFMove(nativeValue)); |
| 1116 | }); |
| 1117 | return true; |
| 1118 | } |
| 1119 | |
| 1120 | bool setJSHTMLElementAutocorrect(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1121 | { |
| 1122 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementAutocorrectSetter>(*state, thisValue, encodedValue, "autocorrect" ); |
| 1123 | } |
| 1124 | |
| 1125 | #endif |
| 1126 | |
| 1127 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 1128 | static inline JSValue jsHTMLElementAutocapitalizeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1129 | { |
| 1130 | UNUSED_PARAM(throwScope); |
| 1131 | UNUSED_PARAM(state); |
| 1132 | auto& impl = thisObject.wrapped(); |
| 1133 | JSValue result = toJS<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, throwScope, impl.autocapitalize()); |
| 1134 | return result; |
| 1135 | } |
| 1136 | |
| 1137 | EncodedJSValue jsHTMLElementAutocapitalize(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1138 | { |
| 1139 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementAutocapitalizeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "autocapitalize" ); |
| 1140 | } |
| 1141 | |
| 1142 | #endif |
| 1143 | |
| 1144 | #if ENABLE(IOS_AUTOCORRECT_AND_AUTOCAPITALIZE) |
| 1145 | static inline bool setJSHTMLElementAutocapitalizeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1146 | { |
| 1147 | UNUSED_PARAM(throwScope); |
| 1148 | CustomElementReactionStack customElementReactionStack(state); |
| 1149 | auto& impl = thisObject.wrapped(); |
| 1150 | auto nativeValue = convert<IDLTreatNullAsEmptyAdaptor<IDLDOMString>>(state, value); |
| 1151 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1152 | AttributeSetter::call(state, throwScope, [&] { |
| 1153 | return impl.setAutocapitalize(WTFMove(nativeValue)); |
| 1154 | }); |
| 1155 | return true; |
| 1156 | } |
| 1157 | |
| 1158 | bool setJSHTMLElementAutocapitalize(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1159 | { |
| 1160 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementAutocapitalizeSetter>(*state, thisValue, encodedValue, "autocapitalize" ); |
| 1161 | } |
| 1162 | |
| 1163 | #endif |
| 1164 | |
| 1165 | static inline JSValue jsHTMLElementWebkitdropzoneGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1166 | { |
| 1167 | UNUSED_PARAM(throwScope); |
| 1168 | UNUSED_PARAM(state); |
| 1169 | auto& impl = thisObject.wrapped(); |
| 1170 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.attributeWithoutSynchronization(WebCore::HTMLNames::webkitdropzoneAttr)); |
| 1171 | return result; |
| 1172 | } |
| 1173 | |
| 1174 | EncodedJSValue jsHTMLElementWebkitdropzone(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1175 | { |
| 1176 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementWebkitdropzoneGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "webkitdropzone" ); |
| 1177 | } |
| 1178 | |
| 1179 | static inline bool setJSHTMLElementWebkitdropzoneSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1180 | { |
| 1181 | UNUSED_PARAM(throwScope); |
| 1182 | CustomElementReactionStack customElementReactionStack(state); |
| 1183 | auto& impl = thisObject.wrapped(); |
| 1184 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 1185 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1186 | AttributeSetter::call(state, throwScope, [&] { |
| 1187 | return impl.setAttributeWithoutSynchronization(WebCore::HTMLNames::webkitdropzoneAttr, WTFMove(nativeValue)); |
| 1188 | }); |
| 1189 | return true; |
| 1190 | } |
| 1191 | |
| 1192 | bool setJSHTMLElementWebkitdropzone(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1193 | { |
| 1194 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementWebkitdropzoneSetter>(*state, thisValue, encodedValue, "webkitdropzone" ); |
| 1195 | } |
| 1196 | |
| 1197 | static inline JSValue jsHTMLElementInputModeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1198 | { |
| 1199 | UNUSED_PARAM(throwScope); |
| 1200 | UNUSED_PARAM(state); |
| 1201 | auto& impl = thisObject.wrapped(); |
| 1202 | JSValue result = toJS<IDLDOMString>(state, throwScope, impl.inputMode()); |
| 1203 | return result; |
| 1204 | } |
| 1205 | |
| 1206 | EncodedJSValue jsHTMLElementInputMode(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1207 | { |
| 1208 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementInputModeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "inputMode" ); |
| 1209 | } |
| 1210 | |
| 1211 | static inline bool setJSHTMLElementInputModeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1212 | { |
| 1213 | UNUSED_PARAM(throwScope); |
| 1214 | auto& impl = thisObject.wrapped(); |
| 1215 | auto nativeValue = convert<IDLDOMString>(state, value); |
| 1216 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1217 | AttributeSetter::call(state, throwScope, [&] { |
| 1218 | return impl.setInputMode(WTFMove(nativeValue)); |
| 1219 | }); |
| 1220 | return true; |
| 1221 | } |
| 1222 | |
| 1223 | bool setJSHTMLElementInputMode(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1224 | { |
| 1225 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementInputModeSetter>(*state, thisValue, encodedValue, "inputMode" ); |
| 1226 | } |
| 1227 | |
| 1228 | static inline JSValue jsHTMLElementStyleGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1229 | { |
| 1230 | UNUSED_PARAM(throwScope); |
| 1231 | UNUSED_PARAM(state); |
| 1232 | auto& impl = thisObject.wrapped(); |
| 1233 | JSValue result = toJS<IDLInterface<CSSStyleDeclaration>>(state, *thisObject.globalObject(), throwScope, impl.cssomStyle()); |
| 1234 | return result; |
| 1235 | } |
| 1236 | |
| 1237 | EncodedJSValue jsHTMLElementStyle(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1238 | { |
| 1239 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementStyleGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "style" ); |
| 1240 | } |
| 1241 | |
| 1242 | static inline bool setJSHTMLElementStyleSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1243 | { |
| 1244 | UNUSED_PARAM(throwScope); |
| 1245 | auto id = Identifier::fromString(&state.vm(), reinterpret_cast<const LChar*>("style" ), strlen("style" )); |
| 1246 | auto valueToForwardTo = thisObject.get(&state, id); |
| 1247 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1248 | if (UNLIKELY(!valueToForwardTo.isObject())) { |
| 1249 | throwTypeError(&state, throwScope); |
| 1250 | return false; |
| 1251 | } |
| 1252 | auto forwardId = Identifier::fromString(&state.vm(), reinterpret_cast<const LChar*>("cssText" ), strlen("cssText" )); |
| 1253 | PutPropertySlot slot(valueToForwardTo, false); |
| 1254 | asObject(valueToForwardTo)->methodTable(state.vm())->put(asObject(valueToForwardTo), &state, forwardId, value, slot); |
| 1255 | RETURN_IF_EXCEPTION(throwScope, false); |
| 1256 | return true; |
| 1257 | } |
| 1258 | |
| 1259 | bool setJSHTMLElementStyle(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1260 | { |
| 1261 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementStyleSetter>(*state, thisValue, encodedValue, "style" ); |
| 1262 | } |
| 1263 | |
| 1264 | #if ENABLE(CSS_TYPED_OM) |
| 1265 | static inline JSValue jsHTMLElementAttributeStyleMapGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1266 | { |
| 1267 | UNUSED_PARAM(throwScope); |
| 1268 | UNUSED_PARAM(state); |
| 1269 | if (JSValue cachedValue = thisObject.m_attributeStyleMap.get()) |
| 1270 | return cachedValue; |
| 1271 | auto& impl = thisObject.wrapped(); |
| 1272 | JSValue result = toJS<IDLInterface<StylePropertyMap>>(state, *thisObject.globalObject(), throwScope, impl.ensureAttributeStyleMap()); |
| 1273 | thisObject.m_attributeStyleMap.set(state.vm(), &thisObject, result); |
| 1274 | return result; |
| 1275 | } |
| 1276 | |
| 1277 | EncodedJSValue jsHTMLElementAttributeStyleMap(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1278 | { |
| 1279 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementAttributeStyleMapGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "attributeStyleMap" ); |
| 1280 | } |
| 1281 | |
| 1282 | #endif |
| 1283 | |
| 1284 | static inline JSValue jsHTMLElementOnabortGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1285 | { |
| 1286 | UNUSED_PARAM(throwScope); |
| 1287 | UNUSED_PARAM(state); |
| 1288 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().abortEvent, worldForDOMObject(thisObject)); |
| 1289 | } |
| 1290 | |
| 1291 | EncodedJSValue jsHTMLElementOnabort(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1292 | { |
| 1293 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnabortGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onabort" ); |
| 1294 | } |
| 1295 | |
| 1296 | static inline bool setJSHTMLElementOnabortSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1297 | { |
| 1298 | UNUSED_PARAM(throwScope); |
| 1299 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().abortEvent, value); |
| 1300 | return true; |
| 1301 | } |
| 1302 | |
| 1303 | bool setJSHTMLElementOnabort(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1304 | { |
| 1305 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnabortSetter>(*state, thisValue, encodedValue, "onabort" ); |
| 1306 | } |
| 1307 | |
| 1308 | static inline JSValue jsHTMLElementOnblurGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1309 | { |
| 1310 | UNUSED_PARAM(throwScope); |
| 1311 | UNUSED_PARAM(state); |
| 1312 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().blurEvent, worldForDOMObject(thisObject)); |
| 1313 | } |
| 1314 | |
| 1315 | EncodedJSValue jsHTMLElementOnblur(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1316 | { |
| 1317 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnblurGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onblur" ); |
| 1318 | } |
| 1319 | |
| 1320 | static inline bool setJSHTMLElementOnblurSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1321 | { |
| 1322 | UNUSED_PARAM(throwScope); |
| 1323 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().blurEvent, value); |
| 1324 | return true; |
| 1325 | } |
| 1326 | |
| 1327 | bool setJSHTMLElementOnblur(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1328 | { |
| 1329 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnblurSetter>(*state, thisValue, encodedValue, "onblur" ); |
| 1330 | } |
| 1331 | |
| 1332 | static inline JSValue jsHTMLElementOncanplayGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1333 | { |
| 1334 | UNUSED_PARAM(throwScope); |
| 1335 | UNUSED_PARAM(state); |
| 1336 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().canplayEvent, worldForDOMObject(thisObject)); |
| 1337 | } |
| 1338 | |
| 1339 | EncodedJSValue jsHTMLElementOncanplay(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1340 | { |
| 1341 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOncanplayGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oncanplay" ); |
| 1342 | } |
| 1343 | |
| 1344 | static inline bool setJSHTMLElementOncanplaySetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1345 | { |
| 1346 | UNUSED_PARAM(throwScope); |
| 1347 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().canplayEvent, value); |
| 1348 | return true; |
| 1349 | } |
| 1350 | |
| 1351 | bool setJSHTMLElementOncanplay(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1352 | { |
| 1353 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOncanplaySetter>(*state, thisValue, encodedValue, "oncanplay" ); |
| 1354 | } |
| 1355 | |
| 1356 | static inline JSValue jsHTMLElementOncanplaythroughGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1357 | { |
| 1358 | UNUSED_PARAM(throwScope); |
| 1359 | UNUSED_PARAM(state); |
| 1360 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().canplaythroughEvent, worldForDOMObject(thisObject)); |
| 1361 | } |
| 1362 | |
| 1363 | EncodedJSValue jsHTMLElementOncanplaythrough(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1364 | { |
| 1365 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOncanplaythroughGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oncanplaythrough" ); |
| 1366 | } |
| 1367 | |
| 1368 | static inline bool setJSHTMLElementOncanplaythroughSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1369 | { |
| 1370 | UNUSED_PARAM(throwScope); |
| 1371 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().canplaythroughEvent, value); |
| 1372 | return true; |
| 1373 | } |
| 1374 | |
| 1375 | bool setJSHTMLElementOncanplaythrough(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1376 | { |
| 1377 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOncanplaythroughSetter>(*state, thisValue, encodedValue, "oncanplaythrough" ); |
| 1378 | } |
| 1379 | |
| 1380 | static inline JSValue jsHTMLElementOnchangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1381 | { |
| 1382 | UNUSED_PARAM(throwScope); |
| 1383 | UNUSED_PARAM(state); |
| 1384 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().changeEvent, worldForDOMObject(thisObject)); |
| 1385 | } |
| 1386 | |
| 1387 | EncodedJSValue jsHTMLElementOnchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1388 | { |
| 1389 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onchange" ); |
| 1390 | } |
| 1391 | |
| 1392 | static inline bool setJSHTMLElementOnchangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1393 | { |
| 1394 | UNUSED_PARAM(throwScope); |
| 1395 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().changeEvent, value); |
| 1396 | return true; |
| 1397 | } |
| 1398 | |
| 1399 | bool setJSHTMLElementOnchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1400 | { |
| 1401 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnchangeSetter>(*state, thisValue, encodedValue, "onchange" ); |
| 1402 | } |
| 1403 | |
| 1404 | static inline JSValue jsHTMLElementOnclickGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1405 | { |
| 1406 | UNUSED_PARAM(throwScope); |
| 1407 | UNUSED_PARAM(state); |
| 1408 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().clickEvent, worldForDOMObject(thisObject)); |
| 1409 | } |
| 1410 | |
| 1411 | EncodedJSValue jsHTMLElementOnclick(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1412 | { |
| 1413 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnclickGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onclick" ); |
| 1414 | } |
| 1415 | |
| 1416 | static inline bool setJSHTMLElementOnclickSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1417 | { |
| 1418 | UNUSED_PARAM(throwScope); |
| 1419 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().clickEvent, value); |
| 1420 | return true; |
| 1421 | } |
| 1422 | |
| 1423 | bool setJSHTMLElementOnclick(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1424 | { |
| 1425 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnclickSetter>(*state, thisValue, encodedValue, "onclick" ); |
| 1426 | } |
| 1427 | |
| 1428 | static inline JSValue (ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1429 | { |
| 1430 | UNUSED_PARAM(throwScope); |
| 1431 | UNUSED_PARAM(state); |
| 1432 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().contextmenuEvent, worldForDOMObject(thisObject)); |
| 1433 | } |
| 1434 | |
| 1435 | EncodedJSValue (ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1436 | { |
| 1437 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOncontextmenuGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oncontextmenu" ); |
| 1438 | } |
| 1439 | |
| 1440 | static inline bool (ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1441 | { |
| 1442 | UNUSED_PARAM(throwScope); |
| 1443 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().contextmenuEvent, value); |
| 1444 | return true; |
| 1445 | } |
| 1446 | |
| 1447 | bool (ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1448 | { |
| 1449 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOncontextmenuSetter>(*state, thisValue, encodedValue, "oncontextmenu" ); |
| 1450 | } |
| 1451 | |
| 1452 | static inline JSValue jsHTMLElementOncuechangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1453 | { |
| 1454 | UNUSED_PARAM(throwScope); |
| 1455 | UNUSED_PARAM(state); |
| 1456 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().cuechangeEvent, worldForDOMObject(thisObject)); |
| 1457 | } |
| 1458 | |
| 1459 | EncodedJSValue jsHTMLElementOncuechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1460 | { |
| 1461 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOncuechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oncuechange" ); |
| 1462 | } |
| 1463 | |
| 1464 | static inline bool setJSHTMLElementOncuechangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1465 | { |
| 1466 | UNUSED_PARAM(throwScope); |
| 1467 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().cuechangeEvent, value); |
| 1468 | return true; |
| 1469 | } |
| 1470 | |
| 1471 | bool setJSHTMLElementOncuechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1472 | { |
| 1473 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOncuechangeSetter>(*state, thisValue, encodedValue, "oncuechange" ); |
| 1474 | } |
| 1475 | |
| 1476 | static inline JSValue jsHTMLElementOndblclickGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1477 | { |
| 1478 | UNUSED_PARAM(throwScope); |
| 1479 | UNUSED_PARAM(state); |
| 1480 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dblclickEvent, worldForDOMObject(thisObject)); |
| 1481 | } |
| 1482 | |
| 1483 | EncodedJSValue jsHTMLElementOndblclick(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1484 | { |
| 1485 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndblclickGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondblclick" ); |
| 1486 | } |
| 1487 | |
| 1488 | static inline bool setJSHTMLElementOndblclickSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1489 | { |
| 1490 | UNUSED_PARAM(throwScope); |
| 1491 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dblclickEvent, value); |
| 1492 | return true; |
| 1493 | } |
| 1494 | |
| 1495 | bool setJSHTMLElementOndblclick(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1496 | { |
| 1497 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndblclickSetter>(*state, thisValue, encodedValue, "ondblclick" ); |
| 1498 | } |
| 1499 | |
| 1500 | static inline JSValue jsHTMLElementOndragGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1501 | { |
| 1502 | UNUSED_PARAM(throwScope); |
| 1503 | UNUSED_PARAM(state); |
| 1504 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragEvent, worldForDOMObject(thisObject)); |
| 1505 | } |
| 1506 | |
| 1507 | EncodedJSValue jsHTMLElementOndrag(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1508 | { |
| 1509 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondrag" ); |
| 1510 | } |
| 1511 | |
| 1512 | static inline bool setJSHTMLElementOndragSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1513 | { |
| 1514 | UNUSED_PARAM(throwScope); |
| 1515 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragEvent, value); |
| 1516 | return true; |
| 1517 | } |
| 1518 | |
| 1519 | bool setJSHTMLElementOndrag(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1520 | { |
| 1521 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragSetter>(*state, thisValue, encodedValue, "ondrag" ); |
| 1522 | } |
| 1523 | |
| 1524 | static inline JSValue jsHTMLElementOndragendGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1525 | { |
| 1526 | UNUSED_PARAM(throwScope); |
| 1527 | UNUSED_PARAM(state); |
| 1528 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragendEvent, worldForDOMObject(thisObject)); |
| 1529 | } |
| 1530 | |
| 1531 | EncodedJSValue jsHTMLElementOndragend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1532 | { |
| 1533 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragendGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondragend" ); |
| 1534 | } |
| 1535 | |
| 1536 | static inline bool setJSHTMLElementOndragendSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1537 | { |
| 1538 | UNUSED_PARAM(throwScope); |
| 1539 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragendEvent, value); |
| 1540 | return true; |
| 1541 | } |
| 1542 | |
| 1543 | bool setJSHTMLElementOndragend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1544 | { |
| 1545 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragendSetter>(*state, thisValue, encodedValue, "ondragend" ); |
| 1546 | } |
| 1547 | |
| 1548 | static inline JSValue jsHTMLElementOndragenterGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1549 | { |
| 1550 | UNUSED_PARAM(throwScope); |
| 1551 | UNUSED_PARAM(state); |
| 1552 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragenterEvent, worldForDOMObject(thisObject)); |
| 1553 | } |
| 1554 | |
| 1555 | EncodedJSValue jsHTMLElementOndragenter(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1556 | { |
| 1557 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragenterGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondragenter" ); |
| 1558 | } |
| 1559 | |
| 1560 | static inline bool setJSHTMLElementOndragenterSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1561 | { |
| 1562 | UNUSED_PARAM(throwScope); |
| 1563 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragenterEvent, value); |
| 1564 | return true; |
| 1565 | } |
| 1566 | |
| 1567 | bool setJSHTMLElementOndragenter(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1568 | { |
| 1569 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragenterSetter>(*state, thisValue, encodedValue, "ondragenter" ); |
| 1570 | } |
| 1571 | |
| 1572 | static inline JSValue jsHTMLElementOndragleaveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1573 | { |
| 1574 | UNUSED_PARAM(throwScope); |
| 1575 | UNUSED_PARAM(state); |
| 1576 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragleaveEvent, worldForDOMObject(thisObject)); |
| 1577 | } |
| 1578 | |
| 1579 | EncodedJSValue jsHTMLElementOndragleave(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1580 | { |
| 1581 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragleaveGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondragleave" ); |
| 1582 | } |
| 1583 | |
| 1584 | static inline bool setJSHTMLElementOndragleaveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1585 | { |
| 1586 | UNUSED_PARAM(throwScope); |
| 1587 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragleaveEvent, value); |
| 1588 | return true; |
| 1589 | } |
| 1590 | |
| 1591 | bool setJSHTMLElementOndragleave(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1592 | { |
| 1593 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragleaveSetter>(*state, thisValue, encodedValue, "ondragleave" ); |
| 1594 | } |
| 1595 | |
| 1596 | static inline JSValue jsHTMLElementOndragoverGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1597 | { |
| 1598 | UNUSED_PARAM(throwScope); |
| 1599 | UNUSED_PARAM(state); |
| 1600 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragoverEvent, worldForDOMObject(thisObject)); |
| 1601 | } |
| 1602 | |
| 1603 | EncodedJSValue jsHTMLElementOndragover(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1604 | { |
| 1605 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragoverGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondragover" ); |
| 1606 | } |
| 1607 | |
| 1608 | static inline bool setJSHTMLElementOndragoverSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1609 | { |
| 1610 | UNUSED_PARAM(throwScope); |
| 1611 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragoverEvent, value); |
| 1612 | return true; |
| 1613 | } |
| 1614 | |
| 1615 | bool setJSHTMLElementOndragover(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1616 | { |
| 1617 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragoverSetter>(*state, thisValue, encodedValue, "ondragover" ); |
| 1618 | } |
| 1619 | |
| 1620 | static inline JSValue jsHTMLElementOndragstartGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1621 | { |
| 1622 | UNUSED_PARAM(throwScope); |
| 1623 | UNUSED_PARAM(state); |
| 1624 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dragstartEvent, worldForDOMObject(thisObject)); |
| 1625 | } |
| 1626 | |
| 1627 | EncodedJSValue jsHTMLElementOndragstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1628 | { |
| 1629 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndragstartGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondragstart" ); |
| 1630 | } |
| 1631 | |
| 1632 | static inline bool setJSHTMLElementOndragstartSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1633 | { |
| 1634 | UNUSED_PARAM(throwScope); |
| 1635 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dragstartEvent, value); |
| 1636 | return true; |
| 1637 | } |
| 1638 | |
| 1639 | bool setJSHTMLElementOndragstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1640 | { |
| 1641 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndragstartSetter>(*state, thisValue, encodedValue, "ondragstart" ); |
| 1642 | } |
| 1643 | |
| 1644 | static inline JSValue jsHTMLElementOndropGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1645 | { |
| 1646 | UNUSED_PARAM(throwScope); |
| 1647 | UNUSED_PARAM(state); |
| 1648 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().dropEvent, worldForDOMObject(thisObject)); |
| 1649 | } |
| 1650 | |
| 1651 | EncodedJSValue jsHTMLElementOndrop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1652 | { |
| 1653 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndropGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondrop" ); |
| 1654 | } |
| 1655 | |
| 1656 | static inline bool setJSHTMLElementOndropSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1657 | { |
| 1658 | UNUSED_PARAM(throwScope); |
| 1659 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().dropEvent, value); |
| 1660 | return true; |
| 1661 | } |
| 1662 | |
| 1663 | bool setJSHTMLElementOndrop(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1664 | { |
| 1665 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndropSetter>(*state, thisValue, encodedValue, "ondrop" ); |
| 1666 | } |
| 1667 | |
| 1668 | static inline JSValue jsHTMLElementOndurationchangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1669 | { |
| 1670 | UNUSED_PARAM(throwScope); |
| 1671 | UNUSED_PARAM(state); |
| 1672 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().durationchangeEvent, worldForDOMObject(thisObject)); |
| 1673 | } |
| 1674 | |
| 1675 | EncodedJSValue jsHTMLElementOndurationchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1676 | { |
| 1677 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOndurationchangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ondurationchange" ); |
| 1678 | } |
| 1679 | |
| 1680 | static inline bool setJSHTMLElementOndurationchangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1681 | { |
| 1682 | UNUSED_PARAM(throwScope); |
| 1683 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().durationchangeEvent, value); |
| 1684 | return true; |
| 1685 | } |
| 1686 | |
| 1687 | bool setJSHTMLElementOndurationchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1688 | { |
| 1689 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOndurationchangeSetter>(*state, thisValue, encodedValue, "ondurationchange" ); |
| 1690 | } |
| 1691 | |
| 1692 | static inline JSValue jsHTMLElementOnemptiedGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1693 | { |
| 1694 | UNUSED_PARAM(throwScope); |
| 1695 | UNUSED_PARAM(state); |
| 1696 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().emptiedEvent, worldForDOMObject(thisObject)); |
| 1697 | } |
| 1698 | |
| 1699 | EncodedJSValue jsHTMLElementOnemptied(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1700 | { |
| 1701 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnemptiedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onemptied" ); |
| 1702 | } |
| 1703 | |
| 1704 | static inline bool setJSHTMLElementOnemptiedSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1705 | { |
| 1706 | UNUSED_PARAM(throwScope); |
| 1707 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().emptiedEvent, value); |
| 1708 | return true; |
| 1709 | } |
| 1710 | |
| 1711 | bool setJSHTMLElementOnemptied(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1712 | { |
| 1713 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnemptiedSetter>(*state, thisValue, encodedValue, "onemptied" ); |
| 1714 | } |
| 1715 | |
| 1716 | static inline JSValue jsHTMLElementOnendedGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1717 | { |
| 1718 | UNUSED_PARAM(throwScope); |
| 1719 | UNUSED_PARAM(state); |
| 1720 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().endedEvent, worldForDOMObject(thisObject)); |
| 1721 | } |
| 1722 | |
| 1723 | EncodedJSValue jsHTMLElementOnended(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1724 | { |
| 1725 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnendedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onended" ); |
| 1726 | } |
| 1727 | |
| 1728 | static inline bool setJSHTMLElementOnendedSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1729 | { |
| 1730 | UNUSED_PARAM(throwScope); |
| 1731 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().endedEvent, value); |
| 1732 | return true; |
| 1733 | } |
| 1734 | |
| 1735 | bool setJSHTMLElementOnended(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1736 | { |
| 1737 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnendedSetter>(*state, thisValue, encodedValue, "onended" ); |
| 1738 | } |
| 1739 | |
| 1740 | static inline JSValue jsHTMLElementOnerrorGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1741 | { |
| 1742 | UNUSED_PARAM(throwScope); |
| 1743 | UNUSED_PARAM(state); |
| 1744 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().errorEvent, worldForDOMObject(thisObject)); |
| 1745 | } |
| 1746 | |
| 1747 | EncodedJSValue jsHTMLElementOnerror(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1748 | { |
| 1749 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnerrorGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onerror" ); |
| 1750 | } |
| 1751 | |
| 1752 | static inline bool setJSHTMLElementOnerrorSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1753 | { |
| 1754 | UNUSED_PARAM(throwScope); |
| 1755 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().errorEvent, value); |
| 1756 | return true; |
| 1757 | } |
| 1758 | |
| 1759 | bool setJSHTMLElementOnerror(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1760 | { |
| 1761 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnerrorSetter>(*state, thisValue, encodedValue, "onerror" ); |
| 1762 | } |
| 1763 | |
| 1764 | static inline JSValue jsHTMLElementOnfocusGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1765 | { |
| 1766 | UNUSED_PARAM(throwScope); |
| 1767 | UNUSED_PARAM(state); |
| 1768 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().focusEvent, worldForDOMObject(thisObject)); |
| 1769 | } |
| 1770 | |
| 1771 | EncodedJSValue jsHTMLElementOnfocus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1772 | { |
| 1773 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnfocusGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onfocus" ); |
| 1774 | } |
| 1775 | |
| 1776 | static inline bool setJSHTMLElementOnfocusSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1777 | { |
| 1778 | UNUSED_PARAM(throwScope); |
| 1779 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().focusEvent, value); |
| 1780 | return true; |
| 1781 | } |
| 1782 | |
| 1783 | bool setJSHTMLElementOnfocus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1784 | { |
| 1785 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnfocusSetter>(*state, thisValue, encodedValue, "onfocus" ); |
| 1786 | } |
| 1787 | |
| 1788 | static inline JSValue jsHTMLElementOninputGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1789 | { |
| 1790 | UNUSED_PARAM(throwScope); |
| 1791 | UNUSED_PARAM(state); |
| 1792 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().inputEvent, worldForDOMObject(thisObject)); |
| 1793 | } |
| 1794 | |
| 1795 | EncodedJSValue jsHTMLElementOninput(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1796 | { |
| 1797 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOninputGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oninput" ); |
| 1798 | } |
| 1799 | |
| 1800 | static inline bool setJSHTMLElementOninputSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1801 | { |
| 1802 | UNUSED_PARAM(throwScope); |
| 1803 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().inputEvent, value); |
| 1804 | return true; |
| 1805 | } |
| 1806 | |
| 1807 | bool setJSHTMLElementOninput(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1808 | { |
| 1809 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOninputSetter>(*state, thisValue, encodedValue, "oninput" ); |
| 1810 | } |
| 1811 | |
| 1812 | static inline JSValue jsHTMLElementOninvalidGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1813 | { |
| 1814 | UNUSED_PARAM(throwScope); |
| 1815 | UNUSED_PARAM(state); |
| 1816 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().invalidEvent, worldForDOMObject(thisObject)); |
| 1817 | } |
| 1818 | |
| 1819 | EncodedJSValue jsHTMLElementOninvalid(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1820 | { |
| 1821 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOninvalidGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "oninvalid" ); |
| 1822 | } |
| 1823 | |
| 1824 | static inline bool setJSHTMLElementOninvalidSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1825 | { |
| 1826 | UNUSED_PARAM(throwScope); |
| 1827 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().invalidEvent, value); |
| 1828 | return true; |
| 1829 | } |
| 1830 | |
| 1831 | bool setJSHTMLElementOninvalid(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1832 | { |
| 1833 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOninvalidSetter>(*state, thisValue, encodedValue, "oninvalid" ); |
| 1834 | } |
| 1835 | |
| 1836 | static inline JSValue jsHTMLElementOnkeydownGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1837 | { |
| 1838 | UNUSED_PARAM(throwScope); |
| 1839 | UNUSED_PARAM(state); |
| 1840 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().keydownEvent, worldForDOMObject(thisObject)); |
| 1841 | } |
| 1842 | |
| 1843 | EncodedJSValue jsHTMLElementOnkeydown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1844 | { |
| 1845 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnkeydownGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onkeydown" ); |
| 1846 | } |
| 1847 | |
| 1848 | static inline bool setJSHTMLElementOnkeydownSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1849 | { |
| 1850 | UNUSED_PARAM(throwScope); |
| 1851 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().keydownEvent, value); |
| 1852 | return true; |
| 1853 | } |
| 1854 | |
| 1855 | bool setJSHTMLElementOnkeydown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1856 | { |
| 1857 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnkeydownSetter>(*state, thisValue, encodedValue, "onkeydown" ); |
| 1858 | } |
| 1859 | |
| 1860 | static inline JSValue jsHTMLElementOnkeypressGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1861 | { |
| 1862 | UNUSED_PARAM(throwScope); |
| 1863 | UNUSED_PARAM(state); |
| 1864 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().keypressEvent, worldForDOMObject(thisObject)); |
| 1865 | } |
| 1866 | |
| 1867 | EncodedJSValue jsHTMLElementOnkeypress(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1868 | { |
| 1869 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnkeypressGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onkeypress" ); |
| 1870 | } |
| 1871 | |
| 1872 | static inline bool setJSHTMLElementOnkeypressSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1873 | { |
| 1874 | UNUSED_PARAM(throwScope); |
| 1875 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().keypressEvent, value); |
| 1876 | return true; |
| 1877 | } |
| 1878 | |
| 1879 | bool setJSHTMLElementOnkeypress(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1880 | { |
| 1881 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnkeypressSetter>(*state, thisValue, encodedValue, "onkeypress" ); |
| 1882 | } |
| 1883 | |
| 1884 | static inline JSValue jsHTMLElementOnkeyupGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1885 | { |
| 1886 | UNUSED_PARAM(throwScope); |
| 1887 | UNUSED_PARAM(state); |
| 1888 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().keyupEvent, worldForDOMObject(thisObject)); |
| 1889 | } |
| 1890 | |
| 1891 | EncodedJSValue jsHTMLElementOnkeyup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1892 | { |
| 1893 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnkeyupGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onkeyup" ); |
| 1894 | } |
| 1895 | |
| 1896 | static inline bool setJSHTMLElementOnkeyupSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1897 | { |
| 1898 | UNUSED_PARAM(throwScope); |
| 1899 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().keyupEvent, value); |
| 1900 | return true; |
| 1901 | } |
| 1902 | |
| 1903 | bool setJSHTMLElementOnkeyup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1904 | { |
| 1905 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnkeyupSetter>(*state, thisValue, encodedValue, "onkeyup" ); |
| 1906 | } |
| 1907 | |
| 1908 | static inline JSValue jsHTMLElementOnloadGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1909 | { |
| 1910 | UNUSED_PARAM(throwScope); |
| 1911 | UNUSED_PARAM(state); |
| 1912 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().loadEvent, worldForDOMObject(thisObject)); |
| 1913 | } |
| 1914 | |
| 1915 | EncodedJSValue jsHTMLElementOnload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1916 | { |
| 1917 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnloadGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onload" ); |
| 1918 | } |
| 1919 | |
| 1920 | static inline bool setJSHTMLElementOnloadSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1921 | { |
| 1922 | UNUSED_PARAM(throwScope); |
| 1923 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadEvent, value); |
| 1924 | return true; |
| 1925 | } |
| 1926 | |
| 1927 | bool setJSHTMLElementOnload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1928 | { |
| 1929 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnloadSetter>(*state, thisValue, encodedValue, "onload" ); |
| 1930 | } |
| 1931 | |
| 1932 | static inline JSValue jsHTMLElementOnloadeddataGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1933 | { |
| 1934 | UNUSED_PARAM(throwScope); |
| 1935 | UNUSED_PARAM(state); |
| 1936 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().loadeddataEvent, worldForDOMObject(thisObject)); |
| 1937 | } |
| 1938 | |
| 1939 | EncodedJSValue jsHTMLElementOnloadeddata(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1940 | { |
| 1941 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnloadeddataGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onloadeddata" ); |
| 1942 | } |
| 1943 | |
| 1944 | static inline bool setJSHTMLElementOnloadeddataSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1945 | { |
| 1946 | UNUSED_PARAM(throwScope); |
| 1947 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadeddataEvent, value); |
| 1948 | return true; |
| 1949 | } |
| 1950 | |
| 1951 | bool setJSHTMLElementOnloadeddata(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1952 | { |
| 1953 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnloadeddataSetter>(*state, thisValue, encodedValue, "onloadeddata" ); |
| 1954 | } |
| 1955 | |
| 1956 | static inline JSValue jsHTMLElementOnloadedmetadataGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1957 | { |
| 1958 | UNUSED_PARAM(throwScope); |
| 1959 | UNUSED_PARAM(state); |
| 1960 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().loadedmetadataEvent, worldForDOMObject(thisObject)); |
| 1961 | } |
| 1962 | |
| 1963 | EncodedJSValue jsHTMLElementOnloadedmetadata(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1964 | { |
| 1965 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnloadedmetadataGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onloadedmetadata" ); |
| 1966 | } |
| 1967 | |
| 1968 | static inline bool setJSHTMLElementOnloadedmetadataSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1969 | { |
| 1970 | UNUSED_PARAM(throwScope); |
| 1971 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadedmetadataEvent, value); |
| 1972 | return true; |
| 1973 | } |
| 1974 | |
| 1975 | bool setJSHTMLElementOnloadedmetadata(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 1976 | { |
| 1977 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnloadedmetadataSetter>(*state, thisValue, encodedValue, "onloadedmetadata" ); |
| 1978 | } |
| 1979 | |
| 1980 | static inline JSValue jsHTMLElementOnloadstartGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 1981 | { |
| 1982 | UNUSED_PARAM(throwScope); |
| 1983 | UNUSED_PARAM(state); |
| 1984 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().loadstartEvent, worldForDOMObject(thisObject)); |
| 1985 | } |
| 1986 | |
| 1987 | EncodedJSValue jsHTMLElementOnloadstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 1988 | { |
| 1989 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnloadstartGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onloadstart" ); |
| 1990 | } |
| 1991 | |
| 1992 | static inline bool setJSHTMLElementOnloadstartSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 1993 | { |
| 1994 | UNUSED_PARAM(throwScope); |
| 1995 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().loadstartEvent, value); |
| 1996 | return true; |
| 1997 | } |
| 1998 | |
| 1999 | bool setJSHTMLElementOnloadstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2000 | { |
| 2001 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnloadstartSetter>(*state, thisValue, encodedValue, "onloadstart" ); |
| 2002 | } |
| 2003 | |
| 2004 | static inline JSValue jsHTMLElementOnmousedownGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2005 | { |
| 2006 | UNUSED_PARAM(throwScope); |
| 2007 | UNUSED_PARAM(state); |
| 2008 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mousedownEvent, worldForDOMObject(thisObject)); |
| 2009 | } |
| 2010 | |
| 2011 | EncodedJSValue jsHTMLElementOnmousedown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2012 | { |
| 2013 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmousedownGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmousedown" ); |
| 2014 | } |
| 2015 | |
| 2016 | static inline bool setJSHTMLElementOnmousedownSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2017 | { |
| 2018 | UNUSED_PARAM(throwScope); |
| 2019 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mousedownEvent, value); |
| 2020 | return true; |
| 2021 | } |
| 2022 | |
| 2023 | bool setJSHTMLElementOnmousedown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2024 | { |
| 2025 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmousedownSetter>(*state, thisValue, encodedValue, "onmousedown" ); |
| 2026 | } |
| 2027 | |
| 2028 | static inline JSValue jsHTMLElementOnmouseenterGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2029 | { |
| 2030 | UNUSED_PARAM(throwScope); |
| 2031 | UNUSED_PARAM(state); |
| 2032 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mouseenterEvent, worldForDOMObject(thisObject)); |
| 2033 | } |
| 2034 | |
| 2035 | EncodedJSValue jsHTMLElementOnmouseenter(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2036 | { |
| 2037 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmouseenterGetter, CastedThisErrorBehavior::ReturnEarly>(*state, thisValue, "onmouseenter" ); |
| 2038 | } |
| 2039 | |
| 2040 | static inline bool setJSHTMLElementOnmouseenterSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2041 | { |
| 2042 | UNUSED_PARAM(throwScope); |
| 2043 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mouseenterEvent, value); |
| 2044 | return true; |
| 2045 | } |
| 2046 | |
| 2047 | bool setJSHTMLElementOnmouseenter(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2048 | { |
| 2049 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmouseenterSetter, CastedThisErrorBehavior::ReturnEarly>(*state, thisValue, encodedValue, "onmouseenter" ); |
| 2050 | } |
| 2051 | |
| 2052 | static inline JSValue jsHTMLElementOnmouseleaveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2053 | { |
| 2054 | UNUSED_PARAM(throwScope); |
| 2055 | UNUSED_PARAM(state); |
| 2056 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mouseleaveEvent, worldForDOMObject(thisObject)); |
| 2057 | } |
| 2058 | |
| 2059 | EncodedJSValue jsHTMLElementOnmouseleave(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2060 | { |
| 2061 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmouseleaveGetter, CastedThisErrorBehavior::ReturnEarly>(*state, thisValue, "onmouseleave" ); |
| 2062 | } |
| 2063 | |
| 2064 | static inline bool setJSHTMLElementOnmouseleaveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2065 | { |
| 2066 | UNUSED_PARAM(throwScope); |
| 2067 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mouseleaveEvent, value); |
| 2068 | return true; |
| 2069 | } |
| 2070 | |
| 2071 | bool setJSHTMLElementOnmouseleave(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2072 | { |
| 2073 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmouseleaveSetter, CastedThisErrorBehavior::ReturnEarly>(*state, thisValue, encodedValue, "onmouseleave" ); |
| 2074 | } |
| 2075 | |
| 2076 | static inline JSValue jsHTMLElementOnmousemoveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2077 | { |
| 2078 | UNUSED_PARAM(throwScope); |
| 2079 | UNUSED_PARAM(state); |
| 2080 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mousemoveEvent, worldForDOMObject(thisObject)); |
| 2081 | } |
| 2082 | |
| 2083 | EncodedJSValue jsHTMLElementOnmousemove(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2084 | { |
| 2085 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmousemoveGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmousemove" ); |
| 2086 | } |
| 2087 | |
| 2088 | static inline bool setJSHTMLElementOnmousemoveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2089 | { |
| 2090 | UNUSED_PARAM(throwScope); |
| 2091 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mousemoveEvent, value); |
| 2092 | return true; |
| 2093 | } |
| 2094 | |
| 2095 | bool setJSHTMLElementOnmousemove(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2096 | { |
| 2097 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmousemoveSetter>(*state, thisValue, encodedValue, "onmousemove" ); |
| 2098 | } |
| 2099 | |
| 2100 | static inline JSValue jsHTMLElementOnmouseoutGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2101 | { |
| 2102 | UNUSED_PARAM(throwScope); |
| 2103 | UNUSED_PARAM(state); |
| 2104 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mouseoutEvent, worldForDOMObject(thisObject)); |
| 2105 | } |
| 2106 | |
| 2107 | EncodedJSValue jsHTMLElementOnmouseout(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2108 | { |
| 2109 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmouseoutGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmouseout" ); |
| 2110 | } |
| 2111 | |
| 2112 | static inline bool setJSHTMLElementOnmouseoutSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2113 | { |
| 2114 | UNUSED_PARAM(throwScope); |
| 2115 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mouseoutEvent, value); |
| 2116 | return true; |
| 2117 | } |
| 2118 | |
| 2119 | bool setJSHTMLElementOnmouseout(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2120 | { |
| 2121 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmouseoutSetter>(*state, thisValue, encodedValue, "onmouseout" ); |
| 2122 | } |
| 2123 | |
| 2124 | static inline JSValue jsHTMLElementOnmouseoverGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2125 | { |
| 2126 | UNUSED_PARAM(throwScope); |
| 2127 | UNUSED_PARAM(state); |
| 2128 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mouseoverEvent, worldForDOMObject(thisObject)); |
| 2129 | } |
| 2130 | |
| 2131 | EncodedJSValue jsHTMLElementOnmouseover(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2132 | { |
| 2133 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmouseoverGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmouseover" ); |
| 2134 | } |
| 2135 | |
| 2136 | static inline bool setJSHTMLElementOnmouseoverSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2137 | { |
| 2138 | UNUSED_PARAM(throwScope); |
| 2139 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mouseoverEvent, value); |
| 2140 | return true; |
| 2141 | } |
| 2142 | |
| 2143 | bool setJSHTMLElementOnmouseover(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2144 | { |
| 2145 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmouseoverSetter>(*state, thisValue, encodedValue, "onmouseover" ); |
| 2146 | } |
| 2147 | |
| 2148 | static inline JSValue jsHTMLElementOnmouseupGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2149 | { |
| 2150 | UNUSED_PARAM(throwScope); |
| 2151 | UNUSED_PARAM(state); |
| 2152 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mouseupEvent, worldForDOMObject(thisObject)); |
| 2153 | } |
| 2154 | |
| 2155 | EncodedJSValue jsHTMLElementOnmouseup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2156 | { |
| 2157 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmouseupGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmouseup" ); |
| 2158 | } |
| 2159 | |
| 2160 | static inline bool setJSHTMLElementOnmouseupSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2161 | { |
| 2162 | UNUSED_PARAM(throwScope); |
| 2163 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mouseupEvent, value); |
| 2164 | return true; |
| 2165 | } |
| 2166 | |
| 2167 | bool setJSHTMLElementOnmouseup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2168 | { |
| 2169 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmouseupSetter>(*state, thisValue, encodedValue, "onmouseup" ); |
| 2170 | } |
| 2171 | |
| 2172 | static inline JSValue jsHTMLElementOnmousewheelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2173 | { |
| 2174 | UNUSED_PARAM(throwScope); |
| 2175 | UNUSED_PARAM(state); |
| 2176 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().mousewheelEvent, worldForDOMObject(thisObject)); |
| 2177 | } |
| 2178 | |
| 2179 | EncodedJSValue jsHTMLElementOnmousewheel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2180 | { |
| 2181 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnmousewheelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onmousewheel" ); |
| 2182 | } |
| 2183 | |
| 2184 | static inline bool setJSHTMLElementOnmousewheelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2185 | { |
| 2186 | UNUSED_PARAM(throwScope); |
| 2187 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().mousewheelEvent, value); |
| 2188 | return true; |
| 2189 | } |
| 2190 | |
| 2191 | bool setJSHTMLElementOnmousewheel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2192 | { |
| 2193 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnmousewheelSetter>(*state, thisValue, encodedValue, "onmousewheel" ); |
| 2194 | } |
| 2195 | |
| 2196 | static inline JSValue jsHTMLElementOnpauseGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2197 | { |
| 2198 | UNUSED_PARAM(throwScope); |
| 2199 | UNUSED_PARAM(state); |
| 2200 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pauseEvent, worldForDOMObject(thisObject)); |
| 2201 | } |
| 2202 | |
| 2203 | EncodedJSValue jsHTMLElementOnpause(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2204 | { |
| 2205 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpauseGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpause" ); |
| 2206 | } |
| 2207 | |
| 2208 | static inline bool setJSHTMLElementOnpauseSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2209 | { |
| 2210 | UNUSED_PARAM(throwScope); |
| 2211 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pauseEvent, value); |
| 2212 | return true; |
| 2213 | } |
| 2214 | |
| 2215 | bool setJSHTMLElementOnpause(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2216 | { |
| 2217 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpauseSetter>(*state, thisValue, encodedValue, "onpause" ); |
| 2218 | } |
| 2219 | |
| 2220 | static inline JSValue jsHTMLElementOnplayGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2221 | { |
| 2222 | UNUSED_PARAM(throwScope); |
| 2223 | UNUSED_PARAM(state); |
| 2224 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().playEvent, worldForDOMObject(thisObject)); |
| 2225 | } |
| 2226 | |
| 2227 | EncodedJSValue jsHTMLElementOnplay(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2228 | { |
| 2229 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnplayGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onplay" ); |
| 2230 | } |
| 2231 | |
| 2232 | static inline bool setJSHTMLElementOnplaySetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2233 | { |
| 2234 | UNUSED_PARAM(throwScope); |
| 2235 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().playEvent, value); |
| 2236 | return true; |
| 2237 | } |
| 2238 | |
| 2239 | bool setJSHTMLElementOnplay(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2240 | { |
| 2241 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnplaySetter>(*state, thisValue, encodedValue, "onplay" ); |
| 2242 | } |
| 2243 | |
| 2244 | static inline JSValue jsHTMLElementOnplayingGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2245 | { |
| 2246 | UNUSED_PARAM(throwScope); |
| 2247 | UNUSED_PARAM(state); |
| 2248 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().playingEvent, worldForDOMObject(thisObject)); |
| 2249 | } |
| 2250 | |
| 2251 | EncodedJSValue jsHTMLElementOnplaying(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2252 | { |
| 2253 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnplayingGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onplaying" ); |
| 2254 | } |
| 2255 | |
| 2256 | static inline bool setJSHTMLElementOnplayingSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2257 | { |
| 2258 | UNUSED_PARAM(throwScope); |
| 2259 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().playingEvent, value); |
| 2260 | return true; |
| 2261 | } |
| 2262 | |
| 2263 | bool setJSHTMLElementOnplaying(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2264 | { |
| 2265 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnplayingSetter>(*state, thisValue, encodedValue, "onplaying" ); |
| 2266 | } |
| 2267 | |
| 2268 | static inline JSValue jsHTMLElementOnprogressGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2269 | { |
| 2270 | UNUSED_PARAM(throwScope); |
| 2271 | UNUSED_PARAM(state); |
| 2272 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().progressEvent, worldForDOMObject(thisObject)); |
| 2273 | } |
| 2274 | |
| 2275 | EncodedJSValue jsHTMLElementOnprogress(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2276 | { |
| 2277 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnprogressGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onprogress" ); |
| 2278 | } |
| 2279 | |
| 2280 | static inline bool setJSHTMLElementOnprogressSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2281 | { |
| 2282 | UNUSED_PARAM(throwScope); |
| 2283 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().progressEvent, value); |
| 2284 | return true; |
| 2285 | } |
| 2286 | |
| 2287 | bool setJSHTMLElementOnprogress(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2288 | { |
| 2289 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnprogressSetter>(*state, thisValue, encodedValue, "onprogress" ); |
| 2290 | } |
| 2291 | |
| 2292 | static inline JSValue jsHTMLElementOnratechangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2293 | { |
| 2294 | UNUSED_PARAM(throwScope); |
| 2295 | UNUSED_PARAM(state); |
| 2296 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().ratechangeEvent, worldForDOMObject(thisObject)); |
| 2297 | } |
| 2298 | |
| 2299 | EncodedJSValue jsHTMLElementOnratechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2300 | { |
| 2301 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnratechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onratechange" ); |
| 2302 | } |
| 2303 | |
| 2304 | static inline bool setJSHTMLElementOnratechangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2305 | { |
| 2306 | UNUSED_PARAM(throwScope); |
| 2307 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().ratechangeEvent, value); |
| 2308 | return true; |
| 2309 | } |
| 2310 | |
| 2311 | bool setJSHTMLElementOnratechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2312 | { |
| 2313 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnratechangeSetter>(*state, thisValue, encodedValue, "onratechange" ); |
| 2314 | } |
| 2315 | |
| 2316 | static inline JSValue jsHTMLElementOnrejectionhandledGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2317 | { |
| 2318 | UNUSED_PARAM(throwScope); |
| 2319 | UNUSED_PARAM(state); |
| 2320 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().rejectionhandledEvent, worldForDOMObject(thisObject)); |
| 2321 | } |
| 2322 | |
| 2323 | EncodedJSValue jsHTMLElementOnrejectionhandled(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2324 | { |
| 2325 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnrejectionhandledGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onrejectionhandled" ); |
| 2326 | } |
| 2327 | |
| 2328 | static inline bool setJSHTMLElementOnrejectionhandledSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2329 | { |
| 2330 | UNUSED_PARAM(throwScope); |
| 2331 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().rejectionhandledEvent, value); |
| 2332 | return true; |
| 2333 | } |
| 2334 | |
| 2335 | bool setJSHTMLElementOnrejectionhandled(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2336 | { |
| 2337 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnrejectionhandledSetter>(*state, thisValue, encodedValue, "onrejectionhandled" ); |
| 2338 | } |
| 2339 | |
| 2340 | static inline JSValue jsHTMLElementOnresetGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2341 | { |
| 2342 | UNUSED_PARAM(throwScope); |
| 2343 | UNUSED_PARAM(state); |
| 2344 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().resetEvent, worldForDOMObject(thisObject)); |
| 2345 | } |
| 2346 | |
| 2347 | EncodedJSValue jsHTMLElementOnreset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2348 | { |
| 2349 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnresetGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onreset" ); |
| 2350 | } |
| 2351 | |
| 2352 | static inline bool setJSHTMLElementOnresetSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2353 | { |
| 2354 | UNUSED_PARAM(throwScope); |
| 2355 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().resetEvent, value); |
| 2356 | return true; |
| 2357 | } |
| 2358 | |
| 2359 | bool setJSHTMLElementOnreset(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2360 | { |
| 2361 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnresetSetter>(*state, thisValue, encodedValue, "onreset" ); |
| 2362 | } |
| 2363 | |
| 2364 | static inline JSValue jsHTMLElementOnresizeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2365 | { |
| 2366 | UNUSED_PARAM(throwScope); |
| 2367 | UNUSED_PARAM(state); |
| 2368 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().resizeEvent, worldForDOMObject(thisObject)); |
| 2369 | } |
| 2370 | |
| 2371 | EncodedJSValue jsHTMLElementOnresize(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2372 | { |
| 2373 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnresizeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onresize" ); |
| 2374 | } |
| 2375 | |
| 2376 | static inline bool setJSHTMLElementOnresizeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2377 | { |
| 2378 | UNUSED_PARAM(throwScope); |
| 2379 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().resizeEvent, value); |
| 2380 | return true; |
| 2381 | } |
| 2382 | |
| 2383 | bool setJSHTMLElementOnresize(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2384 | { |
| 2385 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnresizeSetter>(*state, thisValue, encodedValue, "onresize" ); |
| 2386 | } |
| 2387 | |
| 2388 | static inline JSValue jsHTMLElementOnscrollGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2389 | { |
| 2390 | UNUSED_PARAM(throwScope); |
| 2391 | UNUSED_PARAM(state); |
| 2392 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().scrollEvent, worldForDOMObject(thisObject)); |
| 2393 | } |
| 2394 | |
| 2395 | EncodedJSValue jsHTMLElementOnscroll(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2396 | { |
| 2397 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnscrollGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onscroll" ); |
| 2398 | } |
| 2399 | |
| 2400 | static inline bool setJSHTMLElementOnscrollSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2401 | { |
| 2402 | UNUSED_PARAM(throwScope); |
| 2403 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().scrollEvent, value); |
| 2404 | return true; |
| 2405 | } |
| 2406 | |
| 2407 | bool setJSHTMLElementOnscroll(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2408 | { |
| 2409 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnscrollSetter>(*state, thisValue, encodedValue, "onscroll" ); |
| 2410 | } |
| 2411 | |
| 2412 | static inline JSValue jsHTMLElementOnseekedGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2413 | { |
| 2414 | UNUSED_PARAM(throwScope); |
| 2415 | UNUSED_PARAM(state); |
| 2416 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().seekedEvent, worldForDOMObject(thisObject)); |
| 2417 | } |
| 2418 | |
| 2419 | EncodedJSValue jsHTMLElementOnseeked(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2420 | { |
| 2421 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnseekedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onseeked" ); |
| 2422 | } |
| 2423 | |
| 2424 | static inline bool setJSHTMLElementOnseekedSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2425 | { |
| 2426 | UNUSED_PARAM(throwScope); |
| 2427 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().seekedEvent, value); |
| 2428 | return true; |
| 2429 | } |
| 2430 | |
| 2431 | bool setJSHTMLElementOnseeked(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2432 | { |
| 2433 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnseekedSetter>(*state, thisValue, encodedValue, "onseeked" ); |
| 2434 | } |
| 2435 | |
| 2436 | static inline JSValue jsHTMLElementOnseekingGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2437 | { |
| 2438 | UNUSED_PARAM(throwScope); |
| 2439 | UNUSED_PARAM(state); |
| 2440 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().seekingEvent, worldForDOMObject(thisObject)); |
| 2441 | } |
| 2442 | |
| 2443 | EncodedJSValue jsHTMLElementOnseeking(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2444 | { |
| 2445 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnseekingGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onseeking" ); |
| 2446 | } |
| 2447 | |
| 2448 | static inline bool setJSHTMLElementOnseekingSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2449 | { |
| 2450 | UNUSED_PARAM(throwScope); |
| 2451 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().seekingEvent, value); |
| 2452 | return true; |
| 2453 | } |
| 2454 | |
| 2455 | bool setJSHTMLElementOnseeking(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2456 | { |
| 2457 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnseekingSetter>(*state, thisValue, encodedValue, "onseeking" ); |
| 2458 | } |
| 2459 | |
| 2460 | static inline JSValue jsHTMLElementOnselectGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2461 | { |
| 2462 | UNUSED_PARAM(throwScope); |
| 2463 | UNUSED_PARAM(state); |
| 2464 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().selectEvent, worldForDOMObject(thisObject)); |
| 2465 | } |
| 2466 | |
| 2467 | EncodedJSValue jsHTMLElementOnselect(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2468 | { |
| 2469 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnselectGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onselect" ); |
| 2470 | } |
| 2471 | |
| 2472 | static inline bool setJSHTMLElementOnselectSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2473 | { |
| 2474 | UNUSED_PARAM(throwScope); |
| 2475 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().selectEvent, value); |
| 2476 | return true; |
| 2477 | } |
| 2478 | |
| 2479 | bool setJSHTMLElementOnselect(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2480 | { |
| 2481 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnselectSetter>(*state, thisValue, encodedValue, "onselect" ); |
| 2482 | } |
| 2483 | |
| 2484 | static inline JSValue jsHTMLElementOnstalledGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2485 | { |
| 2486 | UNUSED_PARAM(throwScope); |
| 2487 | UNUSED_PARAM(state); |
| 2488 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().stalledEvent, worldForDOMObject(thisObject)); |
| 2489 | } |
| 2490 | |
| 2491 | EncodedJSValue jsHTMLElementOnstalled(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2492 | { |
| 2493 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnstalledGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onstalled" ); |
| 2494 | } |
| 2495 | |
| 2496 | static inline bool setJSHTMLElementOnstalledSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2497 | { |
| 2498 | UNUSED_PARAM(throwScope); |
| 2499 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().stalledEvent, value); |
| 2500 | return true; |
| 2501 | } |
| 2502 | |
| 2503 | bool setJSHTMLElementOnstalled(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2504 | { |
| 2505 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnstalledSetter>(*state, thisValue, encodedValue, "onstalled" ); |
| 2506 | } |
| 2507 | |
| 2508 | static inline JSValue jsHTMLElementOnsubmitGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2509 | { |
| 2510 | UNUSED_PARAM(throwScope); |
| 2511 | UNUSED_PARAM(state); |
| 2512 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().submitEvent, worldForDOMObject(thisObject)); |
| 2513 | } |
| 2514 | |
| 2515 | EncodedJSValue jsHTMLElementOnsubmit(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2516 | { |
| 2517 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnsubmitGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onsubmit" ); |
| 2518 | } |
| 2519 | |
| 2520 | static inline bool setJSHTMLElementOnsubmitSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2521 | { |
| 2522 | UNUSED_PARAM(throwScope); |
| 2523 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().submitEvent, value); |
| 2524 | return true; |
| 2525 | } |
| 2526 | |
| 2527 | bool setJSHTMLElementOnsubmit(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2528 | { |
| 2529 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnsubmitSetter>(*state, thisValue, encodedValue, "onsubmit" ); |
| 2530 | } |
| 2531 | |
| 2532 | static inline JSValue jsHTMLElementOnsuspendGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2533 | { |
| 2534 | UNUSED_PARAM(throwScope); |
| 2535 | UNUSED_PARAM(state); |
| 2536 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().suspendEvent, worldForDOMObject(thisObject)); |
| 2537 | } |
| 2538 | |
| 2539 | EncodedJSValue jsHTMLElementOnsuspend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2540 | { |
| 2541 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnsuspendGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onsuspend" ); |
| 2542 | } |
| 2543 | |
| 2544 | static inline bool setJSHTMLElementOnsuspendSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2545 | { |
| 2546 | UNUSED_PARAM(throwScope); |
| 2547 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().suspendEvent, value); |
| 2548 | return true; |
| 2549 | } |
| 2550 | |
| 2551 | bool setJSHTMLElementOnsuspend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2552 | { |
| 2553 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnsuspendSetter>(*state, thisValue, encodedValue, "onsuspend" ); |
| 2554 | } |
| 2555 | |
| 2556 | static inline JSValue jsHTMLElementOntimeupdateGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2557 | { |
| 2558 | UNUSED_PARAM(throwScope); |
| 2559 | UNUSED_PARAM(state); |
| 2560 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().timeupdateEvent, worldForDOMObject(thisObject)); |
| 2561 | } |
| 2562 | |
| 2563 | EncodedJSValue jsHTMLElementOntimeupdate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2564 | { |
| 2565 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntimeupdateGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontimeupdate" ); |
| 2566 | } |
| 2567 | |
| 2568 | static inline bool setJSHTMLElementOntimeupdateSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2569 | { |
| 2570 | UNUSED_PARAM(throwScope); |
| 2571 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().timeupdateEvent, value); |
| 2572 | return true; |
| 2573 | } |
| 2574 | |
| 2575 | bool setJSHTMLElementOntimeupdate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2576 | { |
| 2577 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntimeupdateSetter>(*state, thisValue, encodedValue, "ontimeupdate" ); |
| 2578 | } |
| 2579 | |
| 2580 | static inline JSValue jsHTMLElementOntoggleGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2581 | { |
| 2582 | UNUSED_PARAM(throwScope); |
| 2583 | UNUSED_PARAM(state); |
| 2584 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().toggleEvent, worldForDOMObject(thisObject)); |
| 2585 | } |
| 2586 | |
| 2587 | EncodedJSValue jsHTMLElementOntoggle(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2588 | { |
| 2589 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntoggleGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontoggle" ); |
| 2590 | } |
| 2591 | |
| 2592 | static inline bool setJSHTMLElementOntoggleSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2593 | { |
| 2594 | UNUSED_PARAM(throwScope); |
| 2595 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().toggleEvent, value); |
| 2596 | return true; |
| 2597 | } |
| 2598 | |
| 2599 | bool setJSHTMLElementOntoggle(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2600 | { |
| 2601 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntoggleSetter>(*state, thisValue, encodedValue, "ontoggle" ); |
| 2602 | } |
| 2603 | |
| 2604 | static inline JSValue jsHTMLElementOnunhandledrejectionGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2605 | { |
| 2606 | UNUSED_PARAM(throwScope); |
| 2607 | UNUSED_PARAM(state); |
| 2608 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().unhandledrejectionEvent, worldForDOMObject(thisObject)); |
| 2609 | } |
| 2610 | |
| 2611 | EncodedJSValue jsHTMLElementOnunhandledrejection(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2612 | { |
| 2613 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnunhandledrejectionGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onunhandledrejection" ); |
| 2614 | } |
| 2615 | |
| 2616 | static inline bool setJSHTMLElementOnunhandledrejectionSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2617 | { |
| 2618 | UNUSED_PARAM(throwScope); |
| 2619 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().unhandledrejectionEvent, value); |
| 2620 | return true; |
| 2621 | } |
| 2622 | |
| 2623 | bool setJSHTMLElementOnunhandledrejection(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2624 | { |
| 2625 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnunhandledrejectionSetter>(*state, thisValue, encodedValue, "onunhandledrejection" ); |
| 2626 | } |
| 2627 | |
| 2628 | static inline JSValue jsHTMLElementOnvolumechangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2629 | { |
| 2630 | UNUSED_PARAM(throwScope); |
| 2631 | UNUSED_PARAM(state); |
| 2632 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().volumechangeEvent, worldForDOMObject(thisObject)); |
| 2633 | } |
| 2634 | |
| 2635 | EncodedJSValue jsHTMLElementOnvolumechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2636 | { |
| 2637 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnvolumechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onvolumechange" ); |
| 2638 | } |
| 2639 | |
| 2640 | static inline bool setJSHTMLElementOnvolumechangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2641 | { |
| 2642 | UNUSED_PARAM(throwScope); |
| 2643 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().volumechangeEvent, value); |
| 2644 | return true; |
| 2645 | } |
| 2646 | |
| 2647 | bool setJSHTMLElementOnvolumechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2648 | { |
| 2649 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnvolumechangeSetter>(*state, thisValue, encodedValue, "onvolumechange" ); |
| 2650 | } |
| 2651 | |
| 2652 | static inline JSValue jsHTMLElementOnwaitingGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2653 | { |
| 2654 | UNUSED_PARAM(throwScope); |
| 2655 | UNUSED_PARAM(state); |
| 2656 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().waitingEvent, worldForDOMObject(thisObject)); |
| 2657 | } |
| 2658 | |
| 2659 | EncodedJSValue jsHTMLElementOnwaiting(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2660 | { |
| 2661 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwaitingGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwaiting" ); |
| 2662 | } |
| 2663 | |
| 2664 | static inline bool setJSHTMLElementOnwaitingSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2665 | { |
| 2666 | UNUSED_PARAM(throwScope); |
| 2667 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().waitingEvent, value); |
| 2668 | return true; |
| 2669 | } |
| 2670 | |
| 2671 | bool setJSHTMLElementOnwaiting(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2672 | { |
| 2673 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwaitingSetter>(*state, thisValue, encodedValue, "onwaiting" ); |
| 2674 | } |
| 2675 | |
| 2676 | static inline JSValue jsHTMLElementOntransitionendGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2677 | { |
| 2678 | UNUSED_PARAM(throwScope); |
| 2679 | UNUSED_PARAM(state); |
| 2680 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().transitionendEvent, worldForDOMObject(thisObject)); |
| 2681 | } |
| 2682 | |
| 2683 | EncodedJSValue jsHTMLElementOntransitionend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2684 | { |
| 2685 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntransitionendGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontransitionend" ); |
| 2686 | } |
| 2687 | |
| 2688 | static inline bool setJSHTMLElementOntransitionendSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2689 | { |
| 2690 | UNUSED_PARAM(throwScope); |
| 2691 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().transitionendEvent, value); |
| 2692 | return true; |
| 2693 | } |
| 2694 | |
| 2695 | bool setJSHTMLElementOntransitionend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2696 | { |
| 2697 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntransitionendSetter>(*state, thisValue, encodedValue, "ontransitionend" ); |
| 2698 | } |
| 2699 | |
| 2700 | static inline JSValue jsHTMLElementOntransitionrunGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2701 | { |
| 2702 | UNUSED_PARAM(throwScope); |
| 2703 | UNUSED_PARAM(state); |
| 2704 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().transitionrunEvent, worldForDOMObject(thisObject)); |
| 2705 | } |
| 2706 | |
| 2707 | EncodedJSValue jsHTMLElementOntransitionrun(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2708 | { |
| 2709 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntransitionrunGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontransitionrun" ); |
| 2710 | } |
| 2711 | |
| 2712 | static inline bool setJSHTMLElementOntransitionrunSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2713 | { |
| 2714 | UNUSED_PARAM(throwScope); |
| 2715 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().transitionrunEvent, value); |
| 2716 | return true; |
| 2717 | } |
| 2718 | |
| 2719 | bool setJSHTMLElementOntransitionrun(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2720 | { |
| 2721 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntransitionrunSetter>(*state, thisValue, encodedValue, "ontransitionrun" ); |
| 2722 | } |
| 2723 | |
| 2724 | static inline JSValue jsHTMLElementOntransitionstartGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2725 | { |
| 2726 | UNUSED_PARAM(throwScope); |
| 2727 | UNUSED_PARAM(state); |
| 2728 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().transitionstartEvent, worldForDOMObject(thisObject)); |
| 2729 | } |
| 2730 | |
| 2731 | EncodedJSValue jsHTMLElementOntransitionstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2732 | { |
| 2733 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntransitionstartGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontransitionstart" ); |
| 2734 | } |
| 2735 | |
| 2736 | static inline bool setJSHTMLElementOntransitionstartSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2737 | { |
| 2738 | UNUSED_PARAM(throwScope); |
| 2739 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().transitionstartEvent, value); |
| 2740 | return true; |
| 2741 | } |
| 2742 | |
| 2743 | bool setJSHTMLElementOntransitionstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2744 | { |
| 2745 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntransitionstartSetter>(*state, thisValue, encodedValue, "ontransitionstart" ); |
| 2746 | } |
| 2747 | |
| 2748 | static inline JSValue jsHTMLElementOntransitioncancelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2749 | { |
| 2750 | UNUSED_PARAM(throwScope); |
| 2751 | UNUSED_PARAM(state); |
| 2752 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().transitioncancelEvent, worldForDOMObject(thisObject)); |
| 2753 | } |
| 2754 | |
| 2755 | EncodedJSValue jsHTMLElementOntransitioncancel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2756 | { |
| 2757 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntransitioncancelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontransitioncancel" ); |
| 2758 | } |
| 2759 | |
| 2760 | static inline bool setJSHTMLElementOntransitioncancelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2761 | { |
| 2762 | UNUSED_PARAM(throwScope); |
| 2763 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().transitioncancelEvent, value); |
| 2764 | return true; |
| 2765 | } |
| 2766 | |
| 2767 | bool setJSHTMLElementOntransitioncancel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2768 | { |
| 2769 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntransitioncancelSetter>(*state, thisValue, encodedValue, "ontransitioncancel" ); |
| 2770 | } |
| 2771 | |
| 2772 | static inline JSValue jsHTMLElementOnanimationendGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2773 | { |
| 2774 | UNUSED_PARAM(throwScope); |
| 2775 | UNUSED_PARAM(state); |
| 2776 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().animationendEvent, worldForDOMObject(thisObject)); |
| 2777 | } |
| 2778 | |
| 2779 | EncodedJSValue jsHTMLElementOnanimationend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2780 | { |
| 2781 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnanimationendGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onanimationend" ); |
| 2782 | } |
| 2783 | |
| 2784 | static inline bool setJSHTMLElementOnanimationendSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2785 | { |
| 2786 | UNUSED_PARAM(throwScope); |
| 2787 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().animationendEvent, value); |
| 2788 | return true; |
| 2789 | } |
| 2790 | |
| 2791 | bool setJSHTMLElementOnanimationend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2792 | { |
| 2793 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnanimationendSetter>(*state, thisValue, encodedValue, "onanimationend" ); |
| 2794 | } |
| 2795 | |
| 2796 | static inline JSValue jsHTMLElementOnanimationiterationGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2797 | { |
| 2798 | UNUSED_PARAM(throwScope); |
| 2799 | UNUSED_PARAM(state); |
| 2800 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().animationiterationEvent, worldForDOMObject(thisObject)); |
| 2801 | } |
| 2802 | |
| 2803 | EncodedJSValue jsHTMLElementOnanimationiteration(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2804 | { |
| 2805 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnanimationiterationGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onanimationiteration" ); |
| 2806 | } |
| 2807 | |
| 2808 | static inline bool setJSHTMLElementOnanimationiterationSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2809 | { |
| 2810 | UNUSED_PARAM(throwScope); |
| 2811 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().animationiterationEvent, value); |
| 2812 | return true; |
| 2813 | } |
| 2814 | |
| 2815 | bool setJSHTMLElementOnanimationiteration(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2816 | { |
| 2817 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnanimationiterationSetter>(*state, thisValue, encodedValue, "onanimationiteration" ); |
| 2818 | } |
| 2819 | |
| 2820 | static inline JSValue jsHTMLElementOnanimationstartGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2821 | { |
| 2822 | UNUSED_PARAM(throwScope); |
| 2823 | UNUSED_PARAM(state); |
| 2824 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().animationstartEvent, worldForDOMObject(thisObject)); |
| 2825 | } |
| 2826 | |
| 2827 | EncodedJSValue jsHTMLElementOnanimationstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2828 | { |
| 2829 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnanimationstartGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onanimationstart" ); |
| 2830 | } |
| 2831 | |
| 2832 | static inline bool setJSHTMLElementOnanimationstartSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2833 | { |
| 2834 | UNUSED_PARAM(throwScope); |
| 2835 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().animationstartEvent, value); |
| 2836 | return true; |
| 2837 | } |
| 2838 | |
| 2839 | bool setJSHTMLElementOnanimationstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2840 | { |
| 2841 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnanimationstartSetter>(*state, thisValue, encodedValue, "onanimationstart" ); |
| 2842 | } |
| 2843 | |
| 2844 | static inline JSValue jsHTMLElementOnanimationcancelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2845 | { |
| 2846 | UNUSED_PARAM(throwScope); |
| 2847 | UNUSED_PARAM(state); |
| 2848 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().animationcancelEvent, worldForDOMObject(thisObject)); |
| 2849 | } |
| 2850 | |
| 2851 | EncodedJSValue jsHTMLElementOnanimationcancel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2852 | { |
| 2853 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnanimationcancelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onanimationcancel" ); |
| 2854 | } |
| 2855 | |
| 2856 | static inline bool setJSHTMLElementOnanimationcancelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2857 | { |
| 2858 | UNUSED_PARAM(throwScope); |
| 2859 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().animationcancelEvent, value); |
| 2860 | return true; |
| 2861 | } |
| 2862 | |
| 2863 | bool setJSHTMLElementOnanimationcancel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2864 | { |
| 2865 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnanimationcancelSetter>(*state, thisValue, encodedValue, "onanimationcancel" ); |
| 2866 | } |
| 2867 | |
| 2868 | static inline JSValue jsHTMLElementOngotpointercaptureGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2869 | { |
| 2870 | UNUSED_PARAM(throwScope); |
| 2871 | UNUSED_PARAM(state); |
| 2872 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().gotpointercaptureEvent, worldForDOMObject(thisObject)); |
| 2873 | } |
| 2874 | |
| 2875 | EncodedJSValue jsHTMLElementOngotpointercapture(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2876 | { |
| 2877 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOngotpointercaptureGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ongotpointercapture" ); |
| 2878 | } |
| 2879 | |
| 2880 | static inline bool setJSHTMLElementOngotpointercaptureSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2881 | { |
| 2882 | UNUSED_PARAM(throwScope); |
| 2883 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().gotpointercaptureEvent, value); |
| 2884 | return true; |
| 2885 | } |
| 2886 | |
| 2887 | bool setJSHTMLElementOngotpointercapture(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2888 | { |
| 2889 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOngotpointercaptureSetter>(*state, thisValue, encodedValue, "ongotpointercapture" ); |
| 2890 | } |
| 2891 | |
| 2892 | static inline JSValue jsHTMLElementOnlostpointercaptureGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2893 | { |
| 2894 | UNUSED_PARAM(throwScope); |
| 2895 | UNUSED_PARAM(state); |
| 2896 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().lostpointercaptureEvent, worldForDOMObject(thisObject)); |
| 2897 | } |
| 2898 | |
| 2899 | EncodedJSValue jsHTMLElementOnlostpointercapture(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2900 | { |
| 2901 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnlostpointercaptureGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onlostpointercapture" ); |
| 2902 | } |
| 2903 | |
| 2904 | static inline bool setJSHTMLElementOnlostpointercaptureSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2905 | { |
| 2906 | UNUSED_PARAM(throwScope); |
| 2907 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().lostpointercaptureEvent, value); |
| 2908 | return true; |
| 2909 | } |
| 2910 | |
| 2911 | bool setJSHTMLElementOnlostpointercapture(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2912 | { |
| 2913 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnlostpointercaptureSetter>(*state, thisValue, encodedValue, "onlostpointercapture" ); |
| 2914 | } |
| 2915 | |
| 2916 | static inline JSValue jsHTMLElementOnpointerdownGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2917 | { |
| 2918 | UNUSED_PARAM(throwScope); |
| 2919 | UNUSED_PARAM(state); |
| 2920 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointerdownEvent, worldForDOMObject(thisObject)); |
| 2921 | } |
| 2922 | |
| 2923 | EncodedJSValue jsHTMLElementOnpointerdown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2924 | { |
| 2925 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointerdownGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerdown" ); |
| 2926 | } |
| 2927 | |
| 2928 | static inline bool setJSHTMLElementOnpointerdownSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2929 | { |
| 2930 | UNUSED_PARAM(throwScope); |
| 2931 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointerdownEvent, value); |
| 2932 | return true; |
| 2933 | } |
| 2934 | |
| 2935 | bool setJSHTMLElementOnpointerdown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2936 | { |
| 2937 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointerdownSetter>(*state, thisValue, encodedValue, "onpointerdown" ); |
| 2938 | } |
| 2939 | |
| 2940 | static inline JSValue jsHTMLElementOnpointermoveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2941 | { |
| 2942 | UNUSED_PARAM(throwScope); |
| 2943 | UNUSED_PARAM(state); |
| 2944 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointermoveEvent, worldForDOMObject(thisObject)); |
| 2945 | } |
| 2946 | |
| 2947 | EncodedJSValue jsHTMLElementOnpointermove(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2948 | { |
| 2949 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointermoveGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointermove" ); |
| 2950 | } |
| 2951 | |
| 2952 | static inline bool setJSHTMLElementOnpointermoveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2953 | { |
| 2954 | UNUSED_PARAM(throwScope); |
| 2955 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointermoveEvent, value); |
| 2956 | return true; |
| 2957 | } |
| 2958 | |
| 2959 | bool setJSHTMLElementOnpointermove(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2960 | { |
| 2961 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointermoveSetter>(*state, thisValue, encodedValue, "onpointermove" ); |
| 2962 | } |
| 2963 | |
| 2964 | static inline JSValue jsHTMLElementOnpointerupGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2965 | { |
| 2966 | UNUSED_PARAM(throwScope); |
| 2967 | UNUSED_PARAM(state); |
| 2968 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointerupEvent, worldForDOMObject(thisObject)); |
| 2969 | } |
| 2970 | |
| 2971 | EncodedJSValue jsHTMLElementOnpointerup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2972 | { |
| 2973 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointerupGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerup" ); |
| 2974 | } |
| 2975 | |
| 2976 | static inline bool setJSHTMLElementOnpointerupSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 2977 | { |
| 2978 | UNUSED_PARAM(throwScope); |
| 2979 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointerupEvent, value); |
| 2980 | return true; |
| 2981 | } |
| 2982 | |
| 2983 | bool setJSHTMLElementOnpointerup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 2984 | { |
| 2985 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointerupSetter>(*state, thisValue, encodedValue, "onpointerup" ); |
| 2986 | } |
| 2987 | |
| 2988 | static inline JSValue jsHTMLElementOnpointercancelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 2989 | { |
| 2990 | UNUSED_PARAM(throwScope); |
| 2991 | UNUSED_PARAM(state); |
| 2992 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointercancelEvent, worldForDOMObject(thisObject)); |
| 2993 | } |
| 2994 | |
| 2995 | EncodedJSValue jsHTMLElementOnpointercancel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 2996 | { |
| 2997 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointercancelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointercancel" ); |
| 2998 | } |
| 2999 | |
| 3000 | static inline bool setJSHTMLElementOnpointercancelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3001 | { |
| 3002 | UNUSED_PARAM(throwScope); |
| 3003 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointercancelEvent, value); |
| 3004 | return true; |
| 3005 | } |
| 3006 | |
| 3007 | bool setJSHTMLElementOnpointercancel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3008 | { |
| 3009 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointercancelSetter>(*state, thisValue, encodedValue, "onpointercancel" ); |
| 3010 | } |
| 3011 | |
| 3012 | static inline JSValue jsHTMLElementOnpointeroverGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3013 | { |
| 3014 | UNUSED_PARAM(throwScope); |
| 3015 | UNUSED_PARAM(state); |
| 3016 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointeroverEvent, worldForDOMObject(thisObject)); |
| 3017 | } |
| 3018 | |
| 3019 | EncodedJSValue jsHTMLElementOnpointerover(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3020 | { |
| 3021 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointeroverGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerover" ); |
| 3022 | } |
| 3023 | |
| 3024 | static inline bool setJSHTMLElementOnpointeroverSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3025 | { |
| 3026 | UNUSED_PARAM(throwScope); |
| 3027 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointeroverEvent, value); |
| 3028 | return true; |
| 3029 | } |
| 3030 | |
| 3031 | bool setJSHTMLElementOnpointerover(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3032 | { |
| 3033 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointeroverSetter>(*state, thisValue, encodedValue, "onpointerover" ); |
| 3034 | } |
| 3035 | |
| 3036 | static inline JSValue jsHTMLElementOnpointeroutGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3037 | { |
| 3038 | UNUSED_PARAM(throwScope); |
| 3039 | UNUSED_PARAM(state); |
| 3040 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointeroutEvent, worldForDOMObject(thisObject)); |
| 3041 | } |
| 3042 | |
| 3043 | EncodedJSValue jsHTMLElementOnpointerout(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3044 | { |
| 3045 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointeroutGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerout" ); |
| 3046 | } |
| 3047 | |
| 3048 | static inline bool setJSHTMLElementOnpointeroutSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3049 | { |
| 3050 | UNUSED_PARAM(throwScope); |
| 3051 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointeroutEvent, value); |
| 3052 | return true; |
| 3053 | } |
| 3054 | |
| 3055 | bool setJSHTMLElementOnpointerout(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3056 | { |
| 3057 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointeroutSetter>(*state, thisValue, encodedValue, "onpointerout" ); |
| 3058 | } |
| 3059 | |
| 3060 | static inline JSValue jsHTMLElementOnpointerenterGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3061 | { |
| 3062 | UNUSED_PARAM(throwScope); |
| 3063 | UNUSED_PARAM(state); |
| 3064 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointerenterEvent, worldForDOMObject(thisObject)); |
| 3065 | } |
| 3066 | |
| 3067 | EncodedJSValue jsHTMLElementOnpointerenter(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3068 | { |
| 3069 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointerenterGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerenter" ); |
| 3070 | } |
| 3071 | |
| 3072 | static inline bool setJSHTMLElementOnpointerenterSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3073 | { |
| 3074 | UNUSED_PARAM(throwScope); |
| 3075 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointerenterEvent, value); |
| 3076 | return true; |
| 3077 | } |
| 3078 | |
| 3079 | bool setJSHTMLElementOnpointerenter(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3080 | { |
| 3081 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointerenterSetter>(*state, thisValue, encodedValue, "onpointerenter" ); |
| 3082 | } |
| 3083 | |
| 3084 | static inline JSValue jsHTMLElementOnpointerleaveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3085 | { |
| 3086 | UNUSED_PARAM(throwScope); |
| 3087 | UNUSED_PARAM(state); |
| 3088 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().pointerleaveEvent, worldForDOMObject(thisObject)); |
| 3089 | } |
| 3090 | |
| 3091 | EncodedJSValue jsHTMLElementOnpointerleave(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3092 | { |
| 3093 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnpointerleaveGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onpointerleave" ); |
| 3094 | } |
| 3095 | |
| 3096 | static inline bool setJSHTMLElementOnpointerleaveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3097 | { |
| 3098 | UNUSED_PARAM(throwScope); |
| 3099 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().pointerleaveEvent, value); |
| 3100 | return true; |
| 3101 | } |
| 3102 | |
| 3103 | bool setJSHTMLElementOnpointerleave(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3104 | { |
| 3105 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnpointerleaveSetter>(*state, thisValue, encodedValue, "onpointerleave" ); |
| 3106 | } |
| 3107 | |
| 3108 | static inline JSValue jsHTMLElementOnsearchGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3109 | { |
| 3110 | UNUSED_PARAM(throwScope); |
| 3111 | UNUSED_PARAM(state); |
| 3112 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().searchEvent, worldForDOMObject(thisObject)); |
| 3113 | } |
| 3114 | |
| 3115 | EncodedJSValue jsHTMLElementOnsearch(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3116 | { |
| 3117 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnsearchGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onsearch" ); |
| 3118 | } |
| 3119 | |
| 3120 | static inline bool setJSHTMLElementOnsearchSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3121 | { |
| 3122 | UNUSED_PARAM(throwScope); |
| 3123 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().searchEvent, value); |
| 3124 | return true; |
| 3125 | } |
| 3126 | |
| 3127 | bool setJSHTMLElementOnsearch(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3128 | { |
| 3129 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnsearchSetter>(*state, thisValue, encodedValue, "onsearch" ); |
| 3130 | } |
| 3131 | |
| 3132 | static inline JSValue jsHTMLElementOnwheelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3133 | { |
| 3134 | UNUSED_PARAM(throwScope); |
| 3135 | UNUSED_PARAM(state); |
| 3136 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().wheelEvent, worldForDOMObject(thisObject)); |
| 3137 | } |
| 3138 | |
| 3139 | EncodedJSValue jsHTMLElementOnwheel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3140 | { |
| 3141 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwheelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwheel" ); |
| 3142 | } |
| 3143 | |
| 3144 | static inline bool setJSHTMLElementOnwheelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3145 | { |
| 3146 | UNUSED_PARAM(throwScope); |
| 3147 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().wheelEvent, value); |
| 3148 | return true; |
| 3149 | } |
| 3150 | |
| 3151 | bool setJSHTMLElementOnwheel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3152 | { |
| 3153 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwheelSetter>(*state, thisValue, encodedValue, "onwheel" ); |
| 3154 | } |
| 3155 | |
| 3156 | #if ENABLE(TOUCH_EVENTS) |
| 3157 | static inline JSValue jsHTMLElementOntouchcancelGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3158 | { |
| 3159 | UNUSED_PARAM(throwScope); |
| 3160 | UNUSED_PARAM(state); |
| 3161 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().touchcancelEvent, worldForDOMObject(thisObject)); |
| 3162 | } |
| 3163 | |
| 3164 | EncodedJSValue jsHTMLElementOntouchcancel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3165 | { |
| 3166 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntouchcancelGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontouchcancel" ); |
| 3167 | } |
| 3168 | |
| 3169 | #endif |
| 3170 | |
| 3171 | #if ENABLE(TOUCH_EVENTS) |
| 3172 | static inline bool setJSHTMLElementOntouchcancelSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3173 | { |
| 3174 | UNUSED_PARAM(throwScope); |
| 3175 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().touchcancelEvent, value); |
| 3176 | return true; |
| 3177 | } |
| 3178 | |
| 3179 | bool setJSHTMLElementOntouchcancel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3180 | { |
| 3181 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntouchcancelSetter>(*state, thisValue, encodedValue, "ontouchcancel" ); |
| 3182 | } |
| 3183 | |
| 3184 | #endif |
| 3185 | |
| 3186 | #if ENABLE(TOUCH_EVENTS) |
| 3187 | static inline JSValue jsHTMLElementOntouchendGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3188 | { |
| 3189 | UNUSED_PARAM(throwScope); |
| 3190 | UNUSED_PARAM(state); |
| 3191 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().touchendEvent, worldForDOMObject(thisObject)); |
| 3192 | } |
| 3193 | |
| 3194 | EncodedJSValue jsHTMLElementOntouchend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3195 | { |
| 3196 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntouchendGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontouchend" ); |
| 3197 | } |
| 3198 | |
| 3199 | #endif |
| 3200 | |
| 3201 | #if ENABLE(TOUCH_EVENTS) |
| 3202 | static inline bool setJSHTMLElementOntouchendSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3203 | { |
| 3204 | UNUSED_PARAM(throwScope); |
| 3205 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().touchendEvent, value); |
| 3206 | return true; |
| 3207 | } |
| 3208 | |
| 3209 | bool setJSHTMLElementOntouchend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3210 | { |
| 3211 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntouchendSetter>(*state, thisValue, encodedValue, "ontouchend" ); |
| 3212 | } |
| 3213 | |
| 3214 | #endif |
| 3215 | |
| 3216 | #if ENABLE(TOUCH_EVENTS) |
| 3217 | static inline JSValue jsHTMLElementOntouchmoveGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3218 | { |
| 3219 | UNUSED_PARAM(throwScope); |
| 3220 | UNUSED_PARAM(state); |
| 3221 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().touchmoveEvent, worldForDOMObject(thisObject)); |
| 3222 | } |
| 3223 | |
| 3224 | EncodedJSValue jsHTMLElementOntouchmove(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3225 | { |
| 3226 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntouchmoveGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontouchmove" ); |
| 3227 | } |
| 3228 | |
| 3229 | #endif |
| 3230 | |
| 3231 | #if ENABLE(TOUCH_EVENTS) |
| 3232 | static inline bool setJSHTMLElementOntouchmoveSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3233 | { |
| 3234 | UNUSED_PARAM(throwScope); |
| 3235 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().touchmoveEvent, value); |
| 3236 | return true; |
| 3237 | } |
| 3238 | |
| 3239 | bool setJSHTMLElementOntouchmove(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3240 | { |
| 3241 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntouchmoveSetter>(*state, thisValue, encodedValue, "ontouchmove" ); |
| 3242 | } |
| 3243 | |
| 3244 | #endif |
| 3245 | |
| 3246 | #if ENABLE(TOUCH_EVENTS) |
| 3247 | static inline JSValue jsHTMLElementOntouchstartGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3248 | { |
| 3249 | UNUSED_PARAM(throwScope); |
| 3250 | UNUSED_PARAM(state); |
| 3251 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().touchstartEvent, worldForDOMObject(thisObject)); |
| 3252 | } |
| 3253 | |
| 3254 | EncodedJSValue jsHTMLElementOntouchstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3255 | { |
| 3256 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntouchstartGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontouchstart" ); |
| 3257 | } |
| 3258 | |
| 3259 | #endif |
| 3260 | |
| 3261 | #if ENABLE(TOUCH_EVENTS) |
| 3262 | static inline bool setJSHTMLElementOntouchstartSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3263 | { |
| 3264 | UNUSED_PARAM(throwScope); |
| 3265 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().touchstartEvent, value); |
| 3266 | return true; |
| 3267 | } |
| 3268 | |
| 3269 | bool setJSHTMLElementOntouchstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3270 | { |
| 3271 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntouchstartSetter>(*state, thisValue, encodedValue, "ontouchstart" ); |
| 3272 | } |
| 3273 | |
| 3274 | #endif |
| 3275 | |
| 3276 | #if ENABLE(TOUCH_EVENTS) |
| 3277 | static inline JSValue jsHTMLElementOntouchforcechangeGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3278 | { |
| 3279 | UNUSED_PARAM(throwScope); |
| 3280 | UNUSED_PARAM(state); |
| 3281 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().touchforcechangeEvent, worldForDOMObject(thisObject)); |
| 3282 | } |
| 3283 | |
| 3284 | EncodedJSValue jsHTMLElementOntouchforcechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3285 | { |
| 3286 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOntouchforcechangeGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "ontouchforcechange" ); |
| 3287 | } |
| 3288 | |
| 3289 | #endif |
| 3290 | |
| 3291 | #if ENABLE(TOUCH_EVENTS) |
| 3292 | static inline bool setJSHTMLElementOntouchforcechangeSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3293 | { |
| 3294 | UNUSED_PARAM(throwScope); |
| 3295 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().touchforcechangeEvent, value); |
| 3296 | return true; |
| 3297 | } |
| 3298 | |
| 3299 | bool setJSHTMLElementOntouchforcechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3300 | { |
| 3301 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOntouchforcechangeSetter>(*state, thisValue, encodedValue, "ontouchforcechange" ); |
| 3302 | } |
| 3303 | |
| 3304 | #endif |
| 3305 | |
| 3306 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3307 | static inline JSValue jsHTMLElementOnwebkitmouseforcechangedGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3308 | { |
| 3309 | UNUSED_PARAM(throwScope); |
| 3310 | UNUSED_PARAM(state); |
| 3311 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcechangedEvent, worldForDOMObject(thisObject)); |
| 3312 | } |
| 3313 | |
| 3314 | EncodedJSValue jsHTMLElementOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3315 | { |
| 3316 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwebkitmouseforcechangedGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcechanged" ); |
| 3317 | } |
| 3318 | |
| 3319 | #endif |
| 3320 | |
| 3321 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3322 | static inline bool setJSHTMLElementOnwebkitmouseforcechangedSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3323 | { |
| 3324 | UNUSED_PARAM(throwScope); |
| 3325 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcechangedEvent, value); |
| 3326 | return true; |
| 3327 | } |
| 3328 | |
| 3329 | bool setJSHTMLElementOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3330 | { |
| 3331 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwebkitmouseforcechangedSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcechanged" ); |
| 3332 | } |
| 3333 | |
| 3334 | #endif |
| 3335 | |
| 3336 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3337 | static inline JSValue jsHTMLElementOnwebkitmouseforcedownGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3338 | { |
| 3339 | UNUSED_PARAM(throwScope); |
| 3340 | UNUSED_PARAM(state); |
| 3341 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcedownEvent, worldForDOMObject(thisObject)); |
| 3342 | } |
| 3343 | |
| 3344 | EncodedJSValue jsHTMLElementOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3345 | { |
| 3346 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwebkitmouseforcedownGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcedown" ); |
| 3347 | } |
| 3348 | |
| 3349 | #endif |
| 3350 | |
| 3351 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3352 | static inline bool setJSHTMLElementOnwebkitmouseforcedownSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3353 | { |
| 3354 | UNUSED_PARAM(throwScope); |
| 3355 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcedownEvent, value); |
| 3356 | return true; |
| 3357 | } |
| 3358 | |
| 3359 | bool setJSHTMLElementOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3360 | { |
| 3361 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwebkitmouseforcedownSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcedown" ); |
| 3362 | } |
| 3363 | |
| 3364 | #endif |
| 3365 | |
| 3366 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3367 | static inline JSValue jsHTMLElementOnwebkitmouseforcewillbeginGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3368 | { |
| 3369 | UNUSED_PARAM(throwScope); |
| 3370 | UNUSED_PARAM(state); |
| 3371 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforcewillbeginEvent, worldForDOMObject(thisObject)); |
| 3372 | } |
| 3373 | |
| 3374 | EncodedJSValue jsHTMLElementOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3375 | { |
| 3376 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwebkitmouseforcewillbeginGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforcewillbegin" ); |
| 3377 | } |
| 3378 | |
| 3379 | #endif |
| 3380 | |
| 3381 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3382 | static inline bool setJSHTMLElementOnwebkitmouseforcewillbeginSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3383 | { |
| 3384 | UNUSED_PARAM(throwScope); |
| 3385 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforcewillbeginEvent, value); |
| 3386 | return true; |
| 3387 | } |
| 3388 | |
| 3389 | bool setJSHTMLElementOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3390 | { |
| 3391 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwebkitmouseforcewillbeginSetter>(*state, thisValue, encodedValue, "onwebkitmouseforcewillbegin" ); |
| 3392 | } |
| 3393 | |
| 3394 | #endif |
| 3395 | |
| 3396 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3397 | static inline JSValue jsHTMLElementOnwebkitmouseforceupGetter(ExecState& state, JSHTMLElement& thisObject, ThrowScope& throwScope) |
| 3398 | { |
| 3399 | UNUSED_PARAM(throwScope); |
| 3400 | UNUSED_PARAM(state); |
| 3401 | return eventHandlerAttribute(thisObject.wrapped(), eventNames().webkitmouseforceupEvent, worldForDOMObject(thisObject)); |
| 3402 | } |
| 3403 | |
| 3404 | EncodedJSValue jsHTMLElementOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| 3405 | { |
| 3406 | return IDLAttribute<JSHTMLElement>::get<jsHTMLElementOnwebkitmouseforceupGetter, CastedThisErrorBehavior::Assert>(*state, thisValue, "onwebkitmouseforceup" ); |
| 3407 | } |
| 3408 | |
| 3409 | #endif |
| 3410 | |
| 3411 | #if ENABLE(MOUSE_FORCE_EVENTS) |
| 3412 | static inline bool setJSHTMLElementOnwebkitmouseforceupSetter(ExecState& state, JSHTMLElement& thisObject, JSValue value, ThrowScope& throwScope) |
| 3413 | { |
| 3414 | UNUSED_PARAM(throwScope); |
| 3415 | setEventHandlerAttribute(state, thisObject, thisObject.wrapped(), eventNames().webkitmouseforceupEvent, value); |
| 3416 | return true; |
| 3417 | } |
| 3418 | |
| 3419 | bool setJSHTMLElementOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| 3420 | { |
| 3421 | return IDLAttribute<JSHTMLElement>::set<setJSHTMLElementOnwebkitmouseforceupSetter>(*state, thisValue, encodedValue, "onwebkitmouseforceup" ); |
| 3422 | } |
| 3423 | |
| 3424 | #endif |
| 3425 | |
| 3426 | static inline JSC::EncodedJSValue jsHTMLElementPrototypeFunctionClickBody(JSC::ExecState* state, typename IDLOperation<JSHTMLElement>::ClassParameter castedThis, JSC::ThrowScope& throwScope) |
| 3427 | { |
| 3428 | UNUSED_PARAM(state); |
| 3429 | UNUSED_PARAM(throwScope); |
| 3430 | auto& impl = castedThis->wrapped(); |
| 3431 | impl.click(); |
| 3432 | return JSValue::encode(jsUndefined()); |
| 3433 | } |
| 3434 | |
| 3435 | EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionClick(ExecState* state) |
| 3436 | { |
| 3437 | return IDLOperation<JSHTMLElement>::call<jsHTMLElementPrototypeFunctionClickBody>(*state, "click" ); |
| 3438 | } |
| 3439 | |
| 3440 | static inline JSC::EncodedJSValue jsHTMLElementPrototypeFunctionFocusBody(JSC::ExecState* state, typename IDLOperation<JSHTMLElement>::ClassParameter castedThis, JSC::ThrowScope& throwScope) |
| 3441 | { |
| 3442 | UNUSED_PARAM(state); |
| 3443 | UNUSED_PARAM(throwScope); |
| 3444 | auto& impl = castedThis->wrapped(); |
| 3445 | impl.focus(); |
| 3446 | return JSValue::encode(jsUndefined()); |
| 3447 | } |
| 3448 | |
| 3449 | EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionFocus(ExecState* state) |
| 3450 | { |
| 3451 | return IDLOperation<JSHTMLElement>::call<jsHTMLElementPrototypeFunctionFocusBody>(*state, "focus" ); |
| 3452 | } |
| 3453 | |
| 3454 | static inline JSC::EncodedJSValue jsHTMLElementPrototypeFunctionBlurBody(JSC::ExecState* state, typename IDLOperation<JSHTMLElement>::ClassParameter castedThis, JSC::ThrowScope& throwScope) |
| 3455 | { |
| 3456 | UNUSED_PARAM(state); |
| 3457 | UNUSED_PARAM(throwScope); |
| 3458 | auto& impl = castedThis->wrapped(); |
| 3459 | impl.blur(); |
| 3460 | return JSValue::encode(jsUndefined()); |
| 3461 | } |
| 3462 | |
| 3463 | EncodedJSValue JSC_HOST_CALL jsHTMLElementPrototypeFunctionBlur(ExecState* state) |
| 3464 | { |
| 3465 | return IDLOperation<JSHTMLElement>::call<jsHTMLElementPrototypeFunctionBlurBody>(*state, "blur" ); |
| 3466 | } |
| 3467 | |
| 3468 | void JSHTMLElement::visitChildren(JSCell* cell, SlotVisitor& visitor) |
| 3469 | { |
| 3470 | auto* thisObject = jsCast<JSHTMLElement*>(cell); |
| 3471 | ASSERT_GC_OBJECT_INHERITS(thisObject, info()); |
| 3472 | Base::visitChildren(thisObject, visitor); |
| 3473 | #if ENABLE(CSS_TYPED_OM) |
| 3474 | visitor.append(thisObject->m_attributeStyleMap); |
| 3475 | #endif |
| 3476 | } |
| 3477 | |
| 3478 | void JSHTMLElement::heapSnapshot(JSCell* cell, HeapSnapshotBuilder& builder) |
| 3479 | { |
| 3480 | auto* thisObject = jsCast<JSHTMLElement*>(cell); |
| 3481 | builder.setWrappedObjectForCell(cell, &thisObject->wrapped()); |
| 3482 | if (thisObject->scriptExecutionContext()) |
| 3483 | builder.setLabelForCell(cell, "url " + thisObject->scriptExecutionContext()->url().string()); |
| 3484 | Base::heapSnapshot(cell, builder); |
| 3485 | } |
| 3486 | |
| 3487 | HTMLElement* JSHTMLElement::toWrapped(JSC::VM& vm, JSC::JSValue value) |
| 3488 | { |
| 3489 | if (auto* wrapper = jsDynamicCast<JSHTMLElement*>(vm, value)) |
| 3490 | return &wrapper->wrapped(); |
| 3491 | return nullptr; |
| 3492 | } |
| 3493 | |
| 3494 | } |
| 3495 | |