| /* |
| This file is part of the WebKit open source project. |
| This file has been generated by generate-bindings.pl. DO NOT MODIFY! |
| |
| This library is free software; you can redistribute it and/or |
| modify it under the terms of the GNU Library General Public |
| License as published by the Free Software Foundation; either |
| version 2 of the License, or (at your option) any later version. |
| |
| This library is distributed in the hope that it will be useful, |
| but WITHOUT ANY WARRANTY; without even the implied warranty of |
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| Library General Public License for more details. |
| |
| You should have received a copy of the GNU Library General Public License |
| along with this library; see the file COPYING.LIB. If not, write to |
| the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| Boston, MA 02110-1301, USA. |
| */ |
| |
| #include "config.h" |
| #include "JSDOMWindow.h" |
| |
| #include "CSSRuleList.h" |
| #include "CSSStyleDeclaration.h" |
| #include "DOMSelection.h" |
| #include "DOMWindowIndexedDatabase.h" |
| #include "DOMWindowSpeechSynthesis.h" |
| #include "DOMWindowWebDatabase.h" |
| #include "Database.h" |
| #include "Document.h" |
| #include "EventNames.h" |
| #include "ExceptionCode.h" |
| #include "Frame.h" |
| #include "JSAnimationEvent.h" |
| #include "JSAttr.h" |
| #include "JSBarProp.h" |
| #include "JSBeforeLoadEvent.h" |
| #include "JSBeforeUnloadEvent.h" |
| #include "JSBlob.h" |
| #include "JSCDATASection.h" |
| #include "JSCSSCharsetRule.h" |
| #include "JSCSSFontFaceRule.h" |
| #include "JSCSSImportRule.h" |
| #include "JSCSSKeyframeRule.h" |
| #include "JSCSSKeyframesRule.h" |
| #include "JSCSSMediaRule.h" |
| #include "JSCSSPageRule.h" |
| #include "JSCSSPrimitiveValue.h" |
| #include "JSCSSRule.h" |
| #include "JSCSSRuleList.h" |
| #include "JSCSSStyleDeclaration.h" |
| #include "JSCSSStyleRule.h" |
| #include "JSCSSStyleSheet.h" |
| #include "JSCSSSupportsRule.h" |
| #include "JSCSSValue.h" |
| #include "JSCSSValueList.h" |
| #include "JSCanvasGradient.h" |
| #include "JSCanvasPattern.h" |
| #include "JSCanvasRenderingContext2D.h" |
| #include "JSCharacterData.h" |
| #include "JSClientRect.h" |
| #include "JSClientRectList.h" |
| #include "JSCloseEvent.h" |
| #include "JSComment.h" |
| #include "JSCompositionEvent.h" |
| #include "JSCounter.h" |
| #include "JSCrypto.h" |
| #include "JSCustomEvent.h" |
| #include "JSDOMApplicationCache.h" |
| #include "JSDOMBinding.h" |
| #include "JSDOMCSSNamespace.h" |
| #include "JSDOMConstructor.h" |
| #include "JSDOMConvert.h" |
| #include "JSDOMCoreException.h" |
| #include "JSDOMFormData.h" |
| #include "JSDOMImplementation.h" |
| #include "JSDOMMimeType.h" |
| #include "JSDOMMimeTypeArray.h" |
| #include "JSDOMParser.h" |
| #include "JSDOMPath.h" |
| #include "JSDOMPlugin.h" |
| #include "JSDOMPluginArray.h" |
| #include "JSDOMPromise.h" |
| #include "JSDOMSelection.h" |
| #include "JSDOMStringList.h" |
| #include "JSDOMStringMap.h" |
| #include "JSDOMTokenList.h" |
| #include "JSDOMURL.h" |
| #include "JSDOMWindow.h" |
| #include "JSDOMWindowShell.h" |
| #include "JSDataTransfer.h" |
| #include "JSDatabase.h" |
| #include "JSDatabaseCallback.h" |
| #include "JSDocument.h" |
| #include "JSDocumentFragment.h" |
| #include "JSDocumentType.h" |
| #include "JSElement.h" |
| #include "JSErrorEvent.h" |
| #include "JSErrorHandler.h" |
| #include "JSEvent.h" |
| #include "JSEventListener.h" |
| #include "JSEventSource.h" |
| #include "JSEventTarget.h" |
| #include "JSFile.h" |
| #include "JSFileError.h" |
| #include "JSFileList.h" |
| #include "JSFileReader.h" |
| #include "JSFocusEvent.h" |
| #include "JSFontFace.h" |
| #include "JSFontFaceSet.h" |
| #include "JSHTMLAllCollection.h" |
| #include "JSHTMLAnchorElement.h" |
| #include "JSHTMLAppletElement.h" |
| #include "JSHTMLAreaElement.h" |
| #include "JSHTMLBRElement.h" |
| #include "JSHTMLBaseElement.h" |
| #include "JSHTMLBodyElement.h" |
| #include "JSHTMLButtonElement.h" |
| #include "JSHTMLCanvasElement.h" |
| #include "JSHTMLCollection.h" |
| #include "JSHTMLDListElement.h" |
| #include "JSHTMLDataElement.h" |
| #include "JSHTMLDirectoryElement.h" |
| #include "JSHTMLDivElement.h" |
| #include "JSHTMLDocument.h" |
| #include "JSHTMLElement.h" |
| #include "JSHTMLEmbedElement.h" |
| #include "JSHTMLFieldSetElement.h" |
| #include "JSHTMLFontElement.h" |
| #include "JSHTMLFormControlsCollection.h" |
| #include "JSHTMLFormElement.h" |
| #include "JSHTMLFrameElement.h" |
| #include "JSHTMLFrameSetElement.h" |
| #include "JSHTMLHRElement.h" |
| #include "JSHTMLHeadElement.h" |
| #include "JSHTMLHeadingElement.h" |
| #include "JSHTMLHtmlElement.h" |
| #include "JSHTMLIFrameElement.h" |
| #include "JSHTMLImageElement.h" |
| #include "JSHTMLInputElement.h" |
| #include "JSHTMLKeygenElement.h" |
| #include "JSHTMLLIElement.h" |
| #include "JSHTMLLabelElement.h" |
| #include "JSHTMLLegendElement.h" |
| #include "JSHTMLLinkElement.h" |
| #include "JSHTMLMapElement.h" |
| #include "JSHTMLMarqueeElement.h" |
| #include "JSHTMLMenuElement.h" |
| #include "JSHTMLMetaElement.h" |
| #include "JSHTMLModElement.h" |
| #include "JSHTMLOListElement.h" |
| #include "JSHTMLObjectElement.h" |
| #include "JSHTMLOptGroupElement.h" |
| #include "JSHTMLOptionElement.h" |
| #include "JSHTMLOptionsCollection.h" |
| #include "JSHTMLOutputElement.h" |
| #include "JSHTMLParagraphElement.h" |
| #include "JSHTMLParamElement.h" |
| #include "JSHTMLPictureElement.h" |
| #include "JSHTMLPreElement.h" |
| #include "JSHTMLProgressElement.h" |
| #include "JSHTMLQuoteElement.h" |
| #include "JSHTMLScriptElement.h" |
| #include "JSHTMLSelectElement.h" |
| #include "JSHTMLSlotElement.h" |
| #include "JSHTMLSourceElement.h" |
| #include "JSHTMLSpanElement.h" |
| #include "JSHTMLStyleElement.h" |
| #include "JSHTMLTableCaptionElement.h" |
| #include "JSHTMLTableCellElement.h" |
| #include "JSHTMLTableColElement.h" |
| #include "JSHTMLTableElement.h" |
| #include "JSHTMLTableRowElement.h" |
| #include "JSHTMLTableSectionElement.h" |
| #include "JSHTMLTemplateElement.h" |
| #include "JSHTMLTextAreaElement.h" |
| #include "JSHTMLTimeElement.h" |
| #include "JSHTMLTitleElement.h" |
| #include "JSHTMLUListElement.h" |
| #include "JSHTMLUnknownElement.h" |
| #include "JSHashChangeEvent.h" |
| #include "JSHistory.h" |
| #include "JSImageData.h" |
| #include "JSKeyboardEvent.h" |
| #include "JSLocation.h" |
| #include "JSMediaList.h" |
| #include "JSMediaQueryList.h" |
| #include "JSMessageEvent.h" |
| #include "JSMessagePort.h" |
| #include "JSMouseEvent.h" |
| #include "JSMutationEvent.h" |
| #include "JSMutationObserver.h" |
| #include "JSMutationRecord.h" |
| #include "JSNamedNodeMap.h" |
| #include "JSNavigator.h" |
| #include "JSNode.h" |
| #include "JSNodeFilter.h" |
| #include "JSNodeIterator.h" |
| #include "JSNodeList.h" |
| #include "JSOverflowEvent.h" |
| #include "JSPageTransitionEvent.h" |
| #include "JSPopStateEvent.h" |
| #include "JSProcessingInstruction.h" |
| #include "JSProgressEvent.h" |
| #include "JSRGBColor.h" |
| #include "JSRadioNodeList.h" |
| #include "JSRange.h" |
| #include "JSRect.h" |
| #include "JSRequestAnimationFrameCallback.h" |
| #include "JSSQLError.h" |
| #include "JSSQLException.h" |
| #include "JSSQLResultSet.h" |
| #include "JSSQLResultSetRowList.h" |
| #include "JSSQLTransaction.h" |
| #include "JSSVGAElement.h" |
| #include "JSSVGAngle.h" |
| #include "JSSVGAnimateColorElement.h" |
| #include "JSSVGAnimateElement.h" |
| #include "JSSVGAnimateMotionElement.h" |
| #include "JSSVGAnimateTransformElement.h" |
| #include "JSSVGAnimatedAngle.h" |
| #include "JSSVGAnimatedBoolean.h" |
| #include "JSSVGAnimatedEnumeration.h" |
| #include "JSSVGAnimatedInteger.h" |
| #include "JSSVGAnimatedLength.h" |
| #include "JSSVGAnimatedLengthList.h" |
| #include "JSSVGAnimatedNumber.h" |
| #include "JSSVGAnimatedNumberList.h" |
| #include "JSSVGAnimatedPreserveAspectRatio.h" |
| #include "JSSVGAnimatedRect.h" |
| #include "JSSVGAnimatedString.h" |
| #include "JSSVGAnimatedTransformList.h" |
| #include "JSSVGAnimationElement.h" |
| #include "JSSVGCircleElement.h" |
| #include "JSSVGClipPathElement.h" |
| #include "JSSVGColor.h" |
| #include "JSSVGComponentTransferFunctionElement.h" |
| #include "JSSVGCursorElement.h" |
| #include "JSSVGDefsElement.h" |
| #include "JSSVGDescElement.h" |
| #include "JSSVGElement.h" |
| #include "JSSVGEllipseElement.h" |
| #include "JSSVGException.h" |
| #include "JSSVGFEBlendElement.h" |
| #include "JSSVGFEColorMatrixElement.h" |
| #include "JSSVGFEComponentTransferElement.h" |
| #include "JSSVGFECompositeElement.h" |
| #include "JSSVGFEConvolveMatrixElement.h" |
| #include "JSSVGFEDiffuseLightingElement.h" |
| #include "JSSVGFEDisplacementMapElement.h" |
| #include "JSSVGFEDistantLightElement.h" |
| #include "JSSVGFEDropShadowElement.h" |
| #include "JSSVGFEFloodElement.h" |
| #include "JSSVGFEFuncAElement.h" |
| #include "JSSVGFEFuncBElement.h" |
| #include "JSSVGFEFuncGElement.h" |
| #include "JSSVGFEFuncRElement.h" |
| #include "JSSVGFEGaussianBlurElement.h" |
| #include "JSSVGFEImageElement.h" |
| #include "JSSVGFEMergeElement.h" |
| #include "JSSVGFEMergeNodeElement.h" |
| #include "JSSVGFEMorphologyElement.h" |
| #include "JSSVGFEOffsetElement.h" |
| #include "JSSVGFEPointLightElement.h" |
| #include "JSSVGFESpecularLightingElement.h" |
| #include "JSSVGFESpotLightElement.h" |
| #include "JSSVGFETileElement.h" |
| #include "JSSVGFETurbulenceElement.h" |
| #include "JSSVGFilterElement.h" |
| #include "JSSVGForeignObjectElement.h" |
| #include "JSSVGGElement.h" |
| #include "JSSVGGradientElement.h" |
| #include "JSSVGGraphicsElement.h" |
| #include "JSSVGImageElement.h" |
| #include "JSSVGLength.h" |
| #include "JSSVGLengthList.h" |
| #include "JSSVGLineElement.h" |
| #include "JSSVGLinearGradientElement.h" |
| #include "JSSVGMPathElement.h" |
| #include "JSSVGMarkerElement.h" |
| #include "JSSVGMaskElement.h" |
| #include "JSSVGMatrix.h" |
| #include "JSSVGMetadataElement.h" |
| #include "JSSVGNumber.h" |
| #include "JSSVGNumberList.h" |
| #include "JSSVGPaint.h" |
| #include "JSSVGPathElement.h" |
| #include "JSSVGPathSeg.h" |
| #include "JSSVGPathSegArcAbs.h" |
| #include "JSSVGPathSegArcRel.h" |
| #include "JSSVGPathSegClosePath.h" |
| #include "JSSVGPathSegCurvetoCubicAbs.h" |
| #include "JSSVGPathSegCurvetoCubicRel.h" |
| #include "JSSVGPathSegCurvetoCubicSmoothAbs.h" |
| #include "JSSVGPathSegCurvetoCubicSmoothRel.h" |
| #include "JSSVGPathSegCurvetoQuadraticAbs.h" |
| #include "JSSVGPathSegCurvetoQuadraticRel.h" |
| #include "JSSVGPathSegCurvetoQuadraticSmoothAbs.h" |
| #include "JSSVGPathSegCurvetoQuadraticSmoothRel.h" |
| #include "JSSVGPathSegLinetoAbs.h" |
| #include "JSSVGPathSegLinetoHorizontalAbs.h" |
| #include "JSSVGPathSegLinetoHorizontalRel.h" |
| #include "JSSVGPathSegLinetoRel.h" |
| #include "JSSVGPathSegLinetoVerticalAbs.h" |
| #include "JSSVGPathSegLinetoVerticalRel.h" |
| #include "JSSVGPathSegList.h" |
| #include "JSSVGPathSegMovetoAbs.h" |
| #include "JSSVGPathSegMovetoRel.h" |
| #include "JSSVGPatternElement.h" |
| #include "JSSVGPoint.h" |
| #include "JSSVGPointList.h" |
| #include "JSSVGPolygonElement.h" |
| #include "JSSVGPolylineElement.h" |
| #include "JSSVGPreserveAspectRatio.h" |
| #include "JSSVGRadialGradientElement.h" |
| #include "JSSVGRect.h" |
| #include "JSSVGRectElement.h" |
| #include "JSSVGRenderingIntent.h" |
| #include "JSSVGSVGElement.h" |
| #include "JSSVGScriptElement.h" |
| #include "JSSVGSetElement.h" |
| #include "JSSVGStopElement.h" |
| #include "JSSVGStringList.h" |
| #include "JSSVGStyleElement.h" |
| #include "JSSVGSwitchElement.h" |
| #include "JSSVGSymbolElement.h" |
| #include "JSSVGTRefElement.h" |
| #include "JSSVGTSpanElement.h" |
| #include "JSSVGTextContentElement.h" |
| #include "JSSVGTextElement.h" |
| #include "JSSVGTextPathElement.h" |
| #include "JSSVGTextPositioningElement.h" |
| #include "JSSVGTitleElement.h" |
| #include "JSSVGTransform.h" |
| #include "JSSVGTransformList.h" |
| #include "JSSVGUnitTypes.h" |
| #include "JSSVGUseElement.h" |
| #include "JSSVGViewElement.h" |
| #include "JSSVGViewSpec.h" |
| #include "JSSVGZoomEvent.h" |
| #include "JSScreen.h" |
| #include "JSSecurityPolicyViolationEvent.h" |
| #include "JSShadowRoot.h" |
| #include "JSStorage.h" |
| #include "JSStorageEvent.h" |
| #include "JSStyleMedia.h" |
| #include "JSStyleSheet.h" |
| #include "JSStyleSheetList.h" |
| #include "JSText.h" |
| #include "JSTextEvent.h" |
| #include "JSTextMetrics.h" |
| #include "JSTransitionEvent.h" |
| #include "JSTreeWalker.h" |
| #include "JSUIEvent.h" |
| #include "JSURLSearchParams.h" |
| #include "JSValidityState.h" |
| #include "JSWebKitAnimationEvent.h" |
| #include "JSWebKitCSSFilterValue.h" |
| #include "JSWebKitCSSMatrix.h" |
| #include "JSWebKitCSSTransformValue.h" |
| #include "JSWebKitPoint.h" |
| #include "JSWebKitTransitionEvent.h" |
| #include "JSWheelEvent.h" |
| #include "JSWorker.h" |
| #include "JSXMLDocument.h" |
| #include "JSXMLHttpRequest.h" |
| #include "JSXMLHttpRequestEventTarget.h" |
| #include "JSXMLHttpRequestProgressEvent.h" |
| #include "JSXMLHttpRequestUpload.h" |
| #include "JSXMLSerializer.h" |
| #include "JSXPathEvaluator.h" |
| #include "JSXPathException.h" |
| #include "JSXPathExpression.h" |
| #include "JSXPathResult.h" |
| #include "MediaQueryList.h" |
| #include "RuntimeEnabledFeatures.h" |
| #include "Settings.h" |
| #include "StyleProperties.h" |
| #include "URL.h" |
| #include "WebCoreJSClientData.h" |
| #include "WebKitPoint.h" |
| #include <runtime/Error.h> |
| #include <runtime/JSString.h> |
| #include <wtf/GetPtr.h> |
| |
| #if ENABLE(ATTACHMENT_ELEMENT) |
| #include "JSHTMLAttachmentElement.h" |
| #endif |
| |
| #if ENABLE(CANVAS_PROXY) |
| #include "JSCanvasProxy.h" |
| #endif |
| |
| #if ENABLE(CHANNEL_MESSAGING) |
| #include "JSMessageChannel.h" |
| #endif |
| |
| #if ENABLE(CSS_DEVICE_ADAPTATION) |
| #include "JSWebKitCSSViewportRule.h" |
| #endif |
| |
| #if ENABLE(CSS_REGIONS) |
| #include "JSWebKitCSSRegionRule.h" |
| #endif |
| |
| #if ENABLE(CUSTOM_ELEMENTS) |
| #include "JSCustomElementRegistry.h" |
| #endif |
| |
| #if ENABLE(DATALIST_ELEMENT) |
| #include "JSHTMLDataListElement.h" |
| #endif |
| |
| #if ENABLE(DETAILS_ELEMENT) |
| #include "JSHTMLDetailsElement.h" |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| #include "JSDeviceMotionEvent.h" |
| #include "JSDeviceOrientationEvent.h" |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| #include "DOMWindowFetch.h" |
| #include "DOMWindowFetchBuiltins.h" |
| #include "JSFetchHeaders.h" |
| #include "JSFetchRequest.h" |
| #include "JSFetchResponse.h" |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| #include "JSIDBCursor.h" |
| #include "JSIDBCursorWithValue.h" |
| #include "JSIDBDatabase.h" |
| #include "JSIDBFactory.h" |
| #include "JSIDBIndex.h" |
| #include "JSIDBKeyRange.h" |
| #include "JSIDBObjectStore.h" |
| #include "JSIDBOpenDBRequest.h" |
| #include "JSIDBRequest.h" |
| #include "JSIDBTransaction.h" |
| #include "JSIDBVersionChangeEvent.h" |
| #endif |
| |
| #if ENABLE(INDIE_UI) |
| #include "JSUIRequestEvent.h" |
| #endif |
| |
| #if ENABLE(LEGACY_NOTIFICATIONS) || ENABLE(NOTIFICATIONS) |
| #include "JSNotification.h" |
| #endif |
| |
| #if ENABLE(MEDIA_SESSION) |
| #include "JSMediaRemoteControls.h" |
| #include "JSMediaSession.h" |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| #include "JSMediaSource.h" |
| #include "JSSourceBuffer.h" |
| #include "JSSourceBufferList.h" |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| #include "JSMediaStream.h" |
| #include "JSMediaStreamTrack.h" |
| #include "JSMediaStreamTrackEvent.h" |
| #include "JSOverconstrainedError.h" |
| #include "JSOverconstrainedErrorEvent.h" |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| #include "JSMediaStreamAudioDestinationNode.h" |
| #include "JSMediaStreamAudioSourceNode.h" |
| #endif |
| |
| #if ENABLE(METER_ELEMENT) |
| #include "JSHTMLMeterElement.h" |
| #endif |
| |
| #if ENABLE(PROXIMITY_EVENTS) |
| #include "JSDeviceProximityEvent.h" |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) |
| #include "JSReadableStream.h" |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| #include "JSByteLengthQueuingStrategy.h" |
| #include "JSCountQueuingStrategy.h" |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| #include "JSSpeechSynthesis.h" |
| #include "JSSpeechSynthesisEvent.h" |
| #include "JSSpeechSynthesisUtterance.h" |
| #endif |
| |
| #if ENABLE(SUBTLE_CRYPTO) |
| #include "JSCryptoKey.h" |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| #include "JSSVGAltGlyphDefElement.h" |
| #include "JSSVGAltGlyphElement.h" |
| #include "JSSVGAltGlyphItemElement.h" |
| #include "JSSVGFontElement.h" |
| #include "JSSVGFontFaceElement.h" |
| #include "JSSVGFontFaceFormatElement.h" |
| #include "JSSVGFontFaceNameElement.h" |
| #include "JSSVGFontFaceSrcElement.h" |
| #include "JSSVGFontFaceUriElement.h" |
| #include "JSSVGGlyphElement.h" |
| #include "JSSVGGlyphRefElement.h" |
| #include "JSSVGHKernElement.h" |
| #include "JSSVGMissingGlyphElement.h" |
| #include "JSSVGVKernElement.h" |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| #include "JSTouch.h" |
| #include "JSTouchEvent.h" |
| #include "JSTouchList.h" |
| #endif |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| #include "JSUserMessageHandler.h" |
| #include "JSUserMessageHandlersNamespace.h" |
| #include "JSWebKitNamespace.h" |
| #endif |
| |
| #if ENABLE(USER_TIMING) |
| #include "JSPerformanceMark.h" |
| #include "JSPerformanceMeasure.h" |
| #endif |
| |
| #if ENABLE(VIDEO) |
| #include "JSHTMLAudioElement.h" |
| #include "JSHTMLMediaElement.h" |
| #include "JSHTMLVideoElement.h" |
| #include "JSMediaController.h" |
| #include "JSMediaError.h" |
| #include "JSTimeRanges.h" |
| #endif |
| |
| #if ENABLE(VIDEO) && ENABLE(WEB_AUDIO) |
| #include "JSMediaElementAudioSourceNode.h" |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| #include "JSAudioTrack.h" |
| #include "JSAudioTrackList.h" |
| #include "JSDataCue.h" |
| #include "JSHTMLTrackElement.h" |
| #include "JSTextTrack.h" |
| #include "JSTextTrackCue.h" |
| #include "JSTextTrackCueList.h" |
| #include "JSTextTrackList.h" |
| #include "JSTrackEvent.h" |
| #include "JSVTTCue.h" |
| #include "JSVTTRegion.h" |
| #include "JSVideoTrack.h" |
| #include "JSVideoTrackList.h" |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| #include "JSAnimationEffect.h" |
| #include "JSAnimationTimeline.h" |
| #include "JSDocumentTimeline.h" |
| #include "JSKeyframeEffect.h" |
| #include "JSWebAnimation.h" |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| #include "JSAnalyserNode.h" |
| #include "JSAudioBuffer.h" |
| #include "JSAudioBufferSourceNode.h" |
| #include "JSAudioContext.h" |
| #include "JSAudioDestinationNode.h" |
| #include "JSAudioListener.h" |
| #include "JSAudioNode.h" |
| #include "JSAudioParam.h" |
| #include "JSAudioProcessingEvent.h" |
| #include "JSBiquadFilterNode.h" |
| #include "JSChannelMergerNode.h" |
| #include "JSChannelSplitterNode.h" |
| #include "JSConvolverNode.h" |
| #include "JSDelayNode.h" |
| #include "JSDynamicsCompressorNode.h" |
| #include "JSGainNode.h" |
| #include "JSOfflineAudioCompletionEvent.h" |
| #include "JSOfflineAudioContext.h" |
| #include "JSOscillatorNode.h" |
| #include "JSPannerNode.h" |
| #include "JSPeriodicWave.h" |
| #include "JSScriptProcessorNode.h" |
| #include "JSWaveShaperNode.h" |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| #include "JSMediaStreamEvent.h" |
| #include "JSRTCIceCandidate.h" |
| #include "JSRTCPeerConnection.h" |
| #include "JSRTCRtpReceiver.h" |
| #include "JSRTCRtpSender.h" |
| #include "JSRTCRtpTransceiver.h" |
| #include "JSRTCSessionDescription.h" |
| #include "JSRTCTrackEvent.h" |
| #endif |
| |
| #if ENABLE(WEB_SOCKETS) |
| #include "JSWebSocket.h" |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| #include "JSPerformance.h" |
| #include "JSPerformanceEntry.h" |
| #include "JSPerformanceNavigation.h" |
| #include "JSPerformanceResourceTiming.h" |
| #include "JSPerformanceTiming.h" |
| #endif |
| |
| #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| #include "JSWebKitPlaybackTargetAvailabilityEvent.h" |
| #endif |
| |
| #if ENABLE(WRITABLE_STREAM_API) |
| #include "JSWritableStream.h" |
| #endif |
| |
| #if ENABLE(XSLT) |
| #include "JSXSLTProcessor.h" |
| #endif |
| |
| using namespace JSC; |
| |
| namespace WebCore { |
| |
| template<> Optional<DOMWindow::ScrollToOptions> convertDictionary<DOMWindow::ScrollToOptions>(ExecState& state, JSValue value) |
| { |
| VM& vm = state.vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| if (value.isUndefinedOrNull()) |
| return DOMWindow::ScrollToOptions { { }, { } }; |
| auto* object = value.getObject(); |
| if (UNLIKELY(!object || object->type() == RegExpObjectType)) { |
| throwTypeError(&state, throwScope); |
| return Nullopt; |
| } |
| auto left = convertOptional<double>(state, object->get(&state, Identifier::fromString(&state, "left")), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, Nullopt); |
| auto top = convertOptional<double>(state, object->get(&state, Identifier::fromString(&state, "top")), ShouldAllowNonFinite::Yes); |
| return DOMWindow::ScrollToOptions { WTFMove(left), WTFMove(top) }; |
| } |
| |
| // Functions |
| |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetSelection(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionPrint(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionStop(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionOpen(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionShowModalDialog(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionAlert(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionConfirm(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionPrompt(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionFind(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScrollBy(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScrollTo(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScroll(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMoveBy(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMoveTo(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionResizeBy(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionResizeTo(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMatchMedia(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetComputedStyle(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetMatchedCSSRules(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitConvertPointFromPageToNode(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitConvertPointFromNodeToPage(JSC::ExecState*); |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionRequestAnimationFrame(JSC::ExecState*); |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionCancelAnimationFrame(JSC::ExecState*); |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitRequestAnimationFrame(JSC::ExecState*); |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitCancelAnimationFrame(JSC::ExecState*); |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitCancelRequestAnimationFrame(JSC::ExecState*); |
| #endif |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionCaptureEvents(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionReleaseEvents(JSC::ExecState*); |
| #if ENABLE(FETCH_API) |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionFetchRequest(JSC::ExecState*); |
| #endif |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionOpenDatabase(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionSetTimeout(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionClearTimeout(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionSetInterval(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionClearInterval(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionAtob(JSC::ExecState*); |
| JSC::EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionBtoa(JSC::ExecState*); |
| |
| // Attributes |
| |
| JSC::EncodedJSValue jsDOMWindowScreen(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreen(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHistory(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowLocationbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowLocationbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMenubar(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMenubar(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPersonalbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPersonalbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScrollbars(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScrollbars(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStatusbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStatusbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowToolbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowToolbar(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNavigator(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowClientInformation(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowClientInformation(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowLocation(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowLocation(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowEvent(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowEvent(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFrameElement(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowOffscreenBuffering(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOffscreenBuffering(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOuterHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOuterHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOuterWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOuterWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowInnerHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowInnerHeight(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowInnerWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowInnerWidth(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScreenX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreenX(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScreenY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreenY(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScreenLeft(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreenLeft(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScreenTop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreenTop(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScrollX(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScrollX(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowScrollY(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScrollY(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPageXOffset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPageXOffset(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPageYOffset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPageYOffset(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowLength(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowLength(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowName(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowName(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDefaultStatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDefaultStatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDefaultstatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDefaultstatus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSelf(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSelf(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWindow(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowFrames(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFrames(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOpener(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOpener(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowParent(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowParent(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowTop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowDocument(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowStyleMedia(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowDevicePixelRatio(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDevicePixelRatio(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowApplicationCache(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowSessionStorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowLocalStorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #if ENABLE(ORIENTATION_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOrientation(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #endif |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformance(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformance(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowImageConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowImageConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebkitURLConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebkitURLConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebKitMutationObserverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitMutationObserverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CUSTOM_ELEMENTS) |
| JSC::EncodedJSValue jsDOMWindowCustomElements(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowOnanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOntransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwebkitanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitanimationend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwebkitanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitanimationiteration(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwebkitanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitanimationstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwebkittransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkittransitionend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOngesturechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOngesturechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOngestureend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOngestureend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOngesturestart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOngesturestart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| JSC::EncodedJSValue jsDOMWindowOndevicemotion(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndevicemotion(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| JSC::EncodedJSValue jsDOMWindowOndeviceorientation(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndeviceorientation(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(PROXIMITY_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitdeviceproximity(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitdeviceproximity(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIndexedDB(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowWebkitIndexedDB(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| JSC::EncodedJSValue jsDOMWindowSpeechSynthesis(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowOnabort(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnabort(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| JSC::EncodedJSValue jsDOMWindowOnautocomplete(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnautocomplete(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| JSC::EncodedJSValue jsDOMWindowOnautocompleteerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnautocompleteerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnblur(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOncanplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOncanplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOncanplaythrough(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOncanplaythrough(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOncontextmenu(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOncontextmenu(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOncuechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOncuechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndblclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndblclick(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndrag(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndrag(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndragend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndragend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndragenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndragenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndragleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndragleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndragover(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndragover(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndragstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndragstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndrop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndrop(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOndurationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOndurationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnemptied(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnemptied(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnended(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnended(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnerror(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnfocus(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOninput(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOninput(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOninvalid(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOninvalid(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnkeydown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnkeydown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnkeypress(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnkeypress(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnkeyup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnkeyup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnloadeddata(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnloadeddata(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnloadedmetadata(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnloadedmetadata(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnloadstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnloadstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmousedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmousedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmouseenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmouseenter(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmouseleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmouseleave(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmousemove(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmousemove(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmouseout(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmouseout(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmouseover(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmouseover(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmouseup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmouseup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmousewheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmousewheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnpause(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnpause(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnplay(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnplaying(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnplaying(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnprogress(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnprogress(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnratechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnratechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnreset(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnreset(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnresize(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnscroll(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnseeked(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnseeked(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnseeking(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnseeking(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnselect(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnselect(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnstalled(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnstalled(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnsubmit(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnsubmit(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnsuspend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnsuspend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOntimeupdate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntimeupdate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnvolumechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnvolumechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwaiting(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwaiting(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnsearch(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnsearch(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnwheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwheel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOntouchcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntouchcancel(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOntouchend(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntouchend(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOntouchmove(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntouchmove(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOntouchstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntouchstart(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOntouchforcechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOntouchforcechange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitmouseforcechanged(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitmouseforcedown(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitmouseforcewillbegin(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitmouseforceup(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitwillrevealbottom(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitwillrevealbottom(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitwillrevealleft(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitwillrevealleft(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitwillrevealright(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitwillrevealright(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnwebkitwillrevealtop(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnwebkitwillrevealtop(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowCrypto(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| JSC::EncodedJSValue jsDOMWindowOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnbeforeunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnhashchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnmessage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnoffline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnonline(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnpagehide(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnpageshow(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnpopstate(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnstorage(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnunload(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(ORIENTATION_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOnorientationchange(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| JSC::EncodedJSValue jsDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(FETCH_API) |
| JSC::EncodedJSValue jsDOMWindowHeadersConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHeadersConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(FETCH_API) |
| JSC::EncodedJSValue jsDOMWindowRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(FETCH_API) |
| JSC::EncodedJSValue jsDOMWindowResponseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowResponseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBCursorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBCursorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBCursorWithValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBCursorWithValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBDatabaseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBDatabaseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBFactoryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBFactoryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBIndexConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBIndexConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBKeyRangeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBKeyRangeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBObjectStoreConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBObjectStoreConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBOpenDBRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBOpenDBRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBTransactionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBTransactionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| JSC::EncodedJSValue jsDOMWindowIDBVersionChangeEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowIDBVersionChangeEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(INDIE_UI) |
| JSC::EncodedJSValue jsDOMWindowUIRequestEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowUIRequestEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_SESSION) |
| JSC::EncodedJSValue jsDOMWindowMediaRemoteControlsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaRemoteControlsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_SESSION) |
| JSC::EncodedJSValue jsDOMWindowMediaSessionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaSessionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| JSC::EncodedJSValue jsDOMWindowMediaSourceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaSourceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| JSC::EncodedJSValue jsDOMWindowSourceBufferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSourceBufferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| JSC::EncodedJSValue jsDOMWindowSourceBufferListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSourceBufferListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| JSC::EncodedJSValue jsDOMWindowOverconstrainedErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOverconstrainedErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| JSC::EncodedJSValue jsDOMWindowOverconstrainedErrorEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOverconstrainedErrorEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCIceCandidateConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCIceCandidateConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowWebkitRTCPeerConnectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebkitRTCPeerConnectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCRtpReceiverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCRtpReceiverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCRtpSenderConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCRtpSenderConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCRtpTransceiverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCRtpTransceiverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCSessionDescriptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCSessionDescriptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_RTC) |
| JSC::EncodedJSValue jsDOMWindowRTCTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRTCTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(LEGACY_NOTIFICATIONS) || ENABLE(NOTIFICATIONS) |
| JSC::EncodedJSValue jsDOMWindowNotificationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNotificationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(PROXIMITY_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowDeviceProximityEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDeviceProximityEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| JSC::EncodedJSValue jsDOMWindowSpeechSynthesisEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSpeechSynthesisEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| JSC::EncodedJSValue jsDOMWindowSpeechSynthesisUtteranceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSpeechSynthesisUtteranceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| JSC::EncodedJSValue jsDOMWindowByteLengthQueuingStrategyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowByteLengthQueuingStrategyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| JSC::EncodedJSValue jsDOMWindowCountQueuingStrategyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCountQueuingStrategyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(READABLE_STREAM_API) |
| JSC::EncodedJSValue jsDOMWindowReadableStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowReadableStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WRITABLE_STREAM_API) |
| JSC::EncodedJSValue jsDOMWindowWritableStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWritableStreamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAnalyserNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAnalyserNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioBufferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioBufferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioBufferSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioBufferSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowWebkitAudioContextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebkitAudioContextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioDestinationNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioDestinationNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioListenerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioListenerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioParamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioParamConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowAudioProcessingEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioProcessingEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowBiquadFilterNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowBiquadFilterNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowChannelMergerNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowChannelMergerNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowChannelSplitterNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowChannelSplitterNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowConvolverNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowConvolverNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowDelayNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDelayNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowDynamicsCompressorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDynamicsCompressorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowGainNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowGainNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO) && ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowMediaElementAudioSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaElementAudioSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamAudioDestinationNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamAudioDestinationNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowMediaStreamAudioSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaStreamAudioSourceNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowOfflineAudioCompletionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOfflineAudioCompletionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowWebkitOfflineAudioContextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebkitOfflineAudioContextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowOscillatorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOscillatorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowWebkitAudioPannerNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebkitAudioPannerNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowPeriodicWaveConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPeriodicWaveConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowScriptProcessorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScriptProcessorNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| JSC::EncodedJSValue jsDOMWindowWaveShaperNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWaveShaperNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowDatabaseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDatabaseConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSQLErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSQLErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSQLExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSQLExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSQLResultSetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSQLResultSetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSQLResultSetRowListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSQLResultSetRowListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSQLTransactionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSQLTransactionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCloseEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCloseEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(WEB_SOCKETS) |
| JSC::EncodedJSValue jsDOMWindowWebSocketConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebSocketConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| JSC::EncodedJSValue jsDOMWindowAnimationEffectReadOnlyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAnimationEffectReadOnlyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| JSC::EncodedJSValue jsDOMWindowAnimationTimelineConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAnimationTimelineConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| JSC::EncodedJSValue jsDOMWindowDocumentTimelineConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDocumentTimelineConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| JSC::EncodedJSValue jsDOMWindowKeyframeEffectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowKeyframeEffectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| JSC::EncodedJSValue jsDOMWindowAnimationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAnimationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SUBTLE_CRYPTO) |
| JSC::EncodedJSValue jsDOMWindowCryptoKeyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCryptoKeyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowCSSCharsetRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSCharsetRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSFontFaceRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSFontFaceRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSImportRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSImportRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSKeyframeRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSKeyframeRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSKeyframesRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSKeyframesRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSMediaRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSMediaRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSPageRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSPageRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSPrimitiveValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSPrimitiveValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSRuleListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSRuleListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSStyleDeclarationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSStyleDeclarationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSStyleRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSStyleRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSStyleSheetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSStyleSheetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSSupportsRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSSupportsRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSValueListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSValueListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCounterConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCounterConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCSSConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCSSConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFontFaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFontFaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFontFaceSetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFontFaceSetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMediaListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowRGBColorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRGBColorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStyleSheetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStyleSheetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStyleSheetListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStyleSheetListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebKitCSSFilterValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitCSSFilterValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitCSSMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CSS_REGIONS) |
| JSC::EncodedJSValue jsDOMWindowWebKitCSSRegionRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitCSSRegionRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowWebKitCSSTransformValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitCSSTransformValueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CSS_DEVICE_ADAPTATION) |
| JSC::EncodedJSValue jsDOMWindowWebKitCSSViewportRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitCSSViewportRuleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowAnimationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAnimationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowAttrConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAttrConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowBeforeLoadEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowBeforeLoadEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowBeforeUnloadEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowBeforeUnloadEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCDATASectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCDATASectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCharacterDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCharacterDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowClientRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowClientRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowClientRectListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowClientRectListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCommentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCommentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCompositionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCompositionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CUSTOM_ELEMENTS) |
| JSC::EncodedJSValue jsDOMWindowCustomElementRegistryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCustomElementRegistryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowCustomEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCustomEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMImplementationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMImplementationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMStringListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMStringListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMStringMapConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMStringMapConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDataTransferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDataTransferConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(DEVICE_ORIENTATION) |
| JSC::EncodedJSValue jsDOMWindowDeviceMotionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDeviceMotionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| JSC::EncodedJSValue jsDOMWindowDeviceOrientationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDeviceOrientationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDocumentFragmentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDocumentFragmentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDocumentTypeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDocumentTypeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowErrorEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowErrorEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowEventTargetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowEventTargetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFocusEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFocusEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHashChangeEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHashChangeEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowKeyboardEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowKeyboardEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CHANNEL_MESSAGING) |
| JSC::EncodedJSValue jsDOMWindowMessageChannelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMessageChannelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowMessageEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMessageEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMessagePortConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMessagePortConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMouseEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMouseEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMutationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMutationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMutationObserverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMutationObserverConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMutationRecordConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMutationRecordConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNamedNodeMapConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNamedNodeMapConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNodeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNodeFilterConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNodeFilterConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNodeIteratorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNodeIteratorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNodeListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNodeListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOverflowEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOverflowEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPageTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPageTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPopStateEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPopStateEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowProcessingInstructionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowProcessingInstructionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowProgressEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowProgressEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowRangeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRangeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSecurityPolicyViolationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSecurityPolicyViolationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowShadowRootConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowShadowRootConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowTextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowTextEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowTouchConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTouchConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowTouchEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTouchEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| JSC::EncodedJSValue jsDOMWindowTouchListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTouchListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowTreeWalkerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTreeWalkerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowUIEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowUIEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebKitAnimationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitAnimationEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWebKitTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitTransitionEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWheelEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWheelEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowBlobConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowBlobConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFileConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFileConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFileErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFileErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFileListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFileListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFileReaderConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFileReaderConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowFormDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowFormDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMTokenListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMTokenListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowURLConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowURLConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLAllCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAllCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLAnchorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAnchorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLAppletElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAppletElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLAreaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAreaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(ATTACHMENT_ELEMENT) |
| JSC::EncodedJSValue jsDOMWindowHTMLAttachmentElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAttachmentElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowHTMLAudioElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLAudioElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowAudioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowHTMLBRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLBRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLBaseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLBaseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLBodyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLBodyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLButtonElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLButtonElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLCanvasElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLCanvasElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLDListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLDataElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDataElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(DATALIST_ELEMENT) |
| JSC::EncodedJSValue jsDOMWindowHTMLDataListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDataListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(DETAILS_ELEMENT) |
| JSC::EncodedJSValue jsDOMWindowHTMLDetailsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDetailsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowHTMLDirectoryElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDirectoryElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLDivElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDivElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLDocumentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLEmbedElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLEmbedElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFieldSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFieldSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFontElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFontElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFormControlsCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFormControlsCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFormElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFormElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFrameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFrameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLFrameSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLFrameSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLHRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLHRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLHeadElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLHeadElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLHeadingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLHeadingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLHtmlElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLHtmlElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLIFrameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLIFrameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLInputElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLInputElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLKeygenElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLKeygenElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLLIElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLLIElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLLabelElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLLabelElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLLegendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLLegendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLLinkElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLLinkElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLMapElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMapElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLMarqueeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMarqueeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowHTMLMediaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMediaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowHTMLMenuElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMenuElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLMetaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMetaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(METER_ELEMENT) |
| JSC::EncodedJSValue jsDOMWindowHTMLMeterElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLMeterElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowHTMLModElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLModElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLOListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLOListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLObjectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLObjectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLOptGroupElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLOptGroupElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLOptionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLOptionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowOptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowOptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLOptionsCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLOptionsCollectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLOutputElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLOutputElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLParagraphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLParagraphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLParamElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLParamElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLPictureElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLPictureElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLPreElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLPreElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLProgressElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLProgressElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLQuoteElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLQuoteElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLScriptElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLScriptElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLSelectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLSelectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLSlotElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLSlotElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLSourceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLSourceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLSpanElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLSpanElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLStyleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLStyleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableCaptionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableCaptionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableCellElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableCellElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableColElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableColElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableRowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableRowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTableSectionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTableSectionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTemplateElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTemplateElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTextAreaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTextAreaElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTimeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTimeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLTitleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTitleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowHTMLTrackElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLTrackElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowHTMLUListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLUListElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHTMLUnknownElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLUnknownElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowHTMLVideoElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHTMLVideoElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowImageDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowImageDataConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowMediaControllerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaControllerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowMediaErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMediaErrorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowRadioNodeListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowRadioNodeListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowTextMetricsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextMetricsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO) |
| JSC::EncodedJSValue jsDOMWindowTimeRangesConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTimeRangesConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowURLSearchParamsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowURLSearchParamsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowValidityStateConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowValidityStateConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCanvasGradientConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCanvasGradientConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCanvasPatternConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCanvasPatternConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(CANVAS_PROXY) |
| JSC::EncodedJSValue jsDOMWindowCanvasProxyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCanvasProxyConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowCanvasRenderingContext2DConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCanvasRenderingContext2DConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPath2DConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPath2DConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowAudioTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowAudioTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowAudioTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowWebKitDataCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitDataCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowTextTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowTextTrackCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextTrackCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowTextTrackCueListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextTrackCueListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowTextTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTextTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowTrackEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowVTTCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowVTTCueConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowVTTRegionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowVTTRegionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowVideoTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowVideoTrackConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| JSC::EncodedJSValue jsDOMWindowVideoTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowVideoTrackListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowApplicationCacheConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowApplicationCacheConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowBarPropConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowBarPropConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowCryptoConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowCryptoConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSelectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSelectionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWindowConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWindowConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowEventSourceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowEventSourceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowHistoryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowHistoryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowLocationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowLocationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowNavigatorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowNavigatorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceEntryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceEntryConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(USER_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceMarkConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceMarkConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(USER_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceMeasureConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceMeasureConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceNavigationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceNavigationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceResourceTimingConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceResourceTimingConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(WEB_TIMING) |
| JSC::EncodedJSValue jsDOMWindowPerformanceTimingConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPerformanceTimingConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowScreenConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowScreenConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| JSC::EncodedJSValue jsDOMWindowUserMessageHandlerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowUserMessageHandlerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| JSC::EncodedJSValue jsDOMWindowUserMessageHandlersNamespaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowUserMessageHandlersNamespaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| JSC::EncodedJSValue jsDOMWindowWebKitNamespaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitNamespaceConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowWebKitPointConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWebKitPointConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMimeTypeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMimeTypeConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowMimeTypeArrayConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowMimeTypeArrayConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPluginConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPluginConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowPluginArrayConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowPluginArrayConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStorageConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStorageConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowStorageEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowStorageEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGAltGlyphDefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAltGlyphDefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGAltGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAltGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGAltGlyphItemElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAltGlyphItemElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGAngleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAngleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimateColorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimateColorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimateElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimateElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimateMotionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimateMotionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimateTransformElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimateTransformElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedAngleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedAngleConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedBooleanConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedBooleanConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedEnumerationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedEnumerationConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedIntegerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedIntegerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedLengthConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedLengthConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedLengthListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedLengthListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedNumberConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedNumberConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedNumberListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedNumberListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedPreserveAspectRatioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedPreserveAspectRatioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedStringConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedStringConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimatedTransformListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimatedTransformListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGAnimationElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGAnimationElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGCircleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGCircleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGClipPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGClipPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGColorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGColorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGComponentTransferFunctionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGComponentTransferFunctionElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGCursorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGCursorElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGDefsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGDefsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGDescElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGDescElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGEllipseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGEllipseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEBlendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEBlendElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEColorMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEColorMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEComponentTransferElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEComponentTransferElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFECompositeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFECompositeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEConvolveMatrixElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEDiffuseLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEDiffuseLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEDisplacementMapElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEDisplacementMapElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEDistantLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEDistantLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEDropShadowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEDropShadowElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEFloodElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEFloodElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEFuncAElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEFuncAElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEFuncBElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEFuncBElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEFuncGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEFuncGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEFuncRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEFuncRElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEGaussianBlurElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEGaussianBlurElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEMergeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEMergeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEMergeNodeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEMergeNodeElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEMorphologyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEMorphologyElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEOffsetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEOffsetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFEPointLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFEPointLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFESpecularLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFESpecularLightingElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFESpotLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFESpotLightElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFETileElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFETileElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFETurbulenceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFETurbulenceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGFilterElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFilterElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontFaceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontFaceElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontFaceFormatElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontFaceFormatElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontFaceNameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontFaceNameElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontFaceSrcElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontFaceSrcElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGFontFaceUriElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGFontFaceUriElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGForeignObjectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGForeignObjectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGGlyphRefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGGlyphRefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGGraphicsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGGraphicsElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGHKernElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGHKernElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGImageElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGLengthConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGLengthConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGLengthListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGLengthListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGLineElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGLineElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGLinearGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGLinearGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGMPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGMarkerElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMarkerElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGMaskElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMaskElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMatrixConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGMetadataElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMetadataElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGMissingGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGMissingGlyphElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGNumberConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGNumberConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGNumberListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGNumberListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPaintConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPaintConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegArcAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegArcAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegArcRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegArcRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegClosePathConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegClosePathConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoCubicAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoCubicRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoHorizontalAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoHorizontalAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoHorizontalRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoHorizontalRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoVerticalAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoVerticalAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegLinetoVerticalRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegLinetoVerticalRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegMovetoAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegMovetoAbsConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPathSegMovetoRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPathSegMovetoRelConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPatternElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPatternElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPointConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPointConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPointListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPointListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPolygonElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPolygonElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPolylineElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPolylineElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGPreserveAspectRatioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGPreserveAspectRatioConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGRadialGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGRadialGradientElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGRectConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGRectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGRectElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGRenderingIntentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGRenderingIntentConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGSVGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGSVGElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGScriptElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGScriptElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGSetElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGStopElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGStopElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGStringListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGStringListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGStyleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGStyleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGSwitchElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGSwitchElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGSymbolElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGSymbolElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTRefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTRefElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTSpanElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTSpanElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTextContentElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTextContentElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTextElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTextElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTextPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTextPathElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTextPositioningElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTextPositioningElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTitleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTitleElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTransformConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTransformConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGTransformListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGTransformListConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGUnitTypesConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGUnitTypesConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGUseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGUseElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(SVG_FONTS) |
| JSC::EncodedJSValue jsDOMWindowSVGVKernElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGVKernElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowSVGViewElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGViewElementConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGViewSpecConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGViewSpecConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowSVGZoomEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowSVGZoomEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowWorkerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowWorkerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowDOMParserConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowDOMParserConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLHttpRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLHttpRequestConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLHttpRequestEventTargetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLHttpRequestEventTargetConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLHttpRequestProgressEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLHttpRequestProgressEventConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLHttpRequestUploadConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLHttpRequestUploadConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXMLSerializerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXMLSerializerConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXPathEvaluatorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXPathEvaluatorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXPathExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXPathExceptionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXPathExpressionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXPathExpressionConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| JSC::EncodedJSValue jsDOMWindowXPathResultConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXPathResultConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #if ENABLE(XSLT) |
| JSC::EncodedJSValue jsDOMWindowXSLTProcessorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowXSLTProcessorConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| #endif |
| JSC::EncodedJSValue jsDOMWindowConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::PropertyName); |
| bool setJSDOMWindowConstructor(JSC::ExecState*, JSC::EncodedJSValue, JSC::EncodedJSValue); |
| |
| typedef JSDOMConstructorNotConstructable<JSDOMWindow> JSDOMWindowConstructor; |
| |
| /* Hash table */ |
| |
| static const struct CompactHashIndex JSDOMWindowTableIndex[2134] = { |
| { 607, -1 }, |
| { 388, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 626, -1 }, |
| { 196, -1 }, |
| { -1, -1 }, |
| { 424, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 261, -1 }, |
| { 208, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 169, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 440, -1 }, |
| { -1, -1 }, |
| { 629, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 175, -1 }, |
| { 52, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 12, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 523, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 373, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 277, 2099 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 294, 2089 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 583, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 433, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 315, -1 }, |
| { -1, -1 }, |
| { 243, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 187, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 460, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 473, -1 }, |
| { 257, -1 }, |
| { 338, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 184, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 9, 2054 }, |
| { 529, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 139, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 251, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 482, -1 }, |
| { 81, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 590, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 99, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 90, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 403, -1 }, |
| { -1, -1 }, |
| { 75, -1 }, |
| { -1, -1 }, |
| { 419, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 570, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 412, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 413, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 441, -1 }, |
| { 14, 2048 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 205, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 574, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 37, 2114 }, |
| { -1, -1 }, |
| { 542, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 519, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 36, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 284, -1 }, |
| { 311, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 394, -1 }, |
| { -1, -1 }, |
| { 621, -1 }, |
| { 374, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 432, -1 }, |
| { 50, -1 }, |
| { 351, -1 }, |
| { 143, -1 }, |
| { -1, -1 }, |
| { 237, -1 }, |
| { -1, -1 }, |
| { 89, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 158, 2061 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 245, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 247, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 376, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 199, -1 }, |
| { 101, -1 }, |
| { -1, -1 }, |
| { 356, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 25, -1 }, |
| { 345, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 20, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 92, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 371, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 423, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 455, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 163, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 48, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 177, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 518, -1 }, |
| { -1, -1 }, |
| { 318, 2084 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 282, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 72, -1 }, |
| { 361, 2127 }, |
| { -1, -1 }, |
| { 306, -1 }, |
| { 159, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 120, -1 }, |
| { -1, -1 }, |
| { 241, 2073 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 240, -1 }, |
| { -1, -1 }, |
| { 189, -1 }, |
| { 291, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 219, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 405, -1 }, |
| { 102, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 628, -1 }, |
| { 452, -1 }, |
| { 312, -1 }, |
| { -1, -1 }, |
| { 314, -1 }, |
| { 16, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 221, -1 }, |
| { -1, -1 }, |
| { 577, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 332, 2125 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 480, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 431, -1 }, |
| { -1, -1 }, |
| { 183, 2071 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 301, -1 }, |
| { 597, -1 }, |
| { -1, -1 }, |
| { 464, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 13, -1 }, |
| { 272, -1 }, |
| { -1, -1 }, |
| { 383, 2111 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 109, 2064 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 248, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 53, -1 }, |
| { -1, -1 }, |
| { 273, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 501, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 200, 2092 }, |
| { 363, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 80, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 329, -1 }, |
| { 319, -1 }, |
| { -1, -1 }, |
| { 299, -1 }, |
| { 566, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 207, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 620, -1 }, |
| { -1, -1 }, |
| { 565, -1 }, |
| { -1, -1 }, |
| { 117, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 154, 2115 }, |
| { 347, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 548, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 59, -1 }, |
| { -1, -1 }, |
| { 535, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 190, 2082 }, |
| { 524, -1 }, |
| { 309, -1 }, |
| { -1, -1 }, |
| { 268, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 108, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 121, -1 }, |
| { 443, -1 }, |
| { -1, -1 }, |
| { 357, -1 }, |
| { -1, -1 }, |
| { 539, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 157, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 119, -1 }, |
| { 537, -1 }, |
| { -1, -1 }, |
| { 15, -1 }, |
| { -1, -1 }, |
| { 106, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 83, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 344, -1 }, |
| { 250, 2118 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 11, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 231, 2093 }, |
| { -1, -1 }, |
| { 0, -1 }, |
| { -1, -1 }, |
| { 42, 2067 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 186, 2074 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 142, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 560, -1 }, |
| { 73, 2052 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 603, -1 }, |
| { -1, -1 }, |
| { 527, -1 }, |
| { -1, -1 }, |
| { 530, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 141, 2056 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 170, 2090 }, |
| { -1, -1 }, |
| { 303, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 475, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 578, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 148, -1 }, |
| { -1, -1 }, |
| { 317, -1 }, |
| { 135, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 492, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 483, -1 }, |
| { 275, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 194, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 331, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 122, 2053 }, |
| { -1, -1 }, |
| { 113, -1 }, |
| { 232, 2086 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 281, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 246, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 360, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 429, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 58, 2049 }, |
| { 428, -1 }, |
| { -1, -1 }, |
| { 204, -1 }, |
| { 472, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 410, -1 }, |
| { 393, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 365, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 463, -1 }, |
| { -1, -1 }, |
| { 445, -1 }, |
| { 465, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 82, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 206, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 617, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 161, -1 }, |
| { -1, -1 }, |
| { 4, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 372, -1 }, |
| { -1, -1 }, |
| { 150, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 70, -1 }, |
| { -1, -1 }, |
| { 290, 2100 }, |
| { 29, 2107 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 105, -1 }, |
| { 51, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 392, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 337, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 40, 2050 }, |
| { 226, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 244, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 380, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 155, 2098 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 46, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 94, -1 }, |
| { -1, -1 }, |
| { 504, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 515, -1 }, |
| { 22, 2108 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 57, -1 }, |
| { -1, -1 }, |
| { 19, -1 }, |
| { -1, -1 }, |
| { 134, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 567, -1 }, |
| { 33, -1 }, |
| { 316, -1 }, |
| { 256, -1 }, |
| { -1, -1 }, |
| { 269, -1 }, |
| { -1, -1 }, |
| { 21, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 503, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 449, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 182, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 74, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 364, -1 }, |
| { 459, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 296, -1 }, |
| { -1, -1 }, |
| { 126, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 601, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 129, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 614, -1 }, |
| { 599, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 234, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 551, -1 }, |
| { 448, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 176, 2122 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 339, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 31, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 481, 2119 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 605, -1 }, |
| { 457, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 71, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 502, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 525, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 260, 2080 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 568, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 34, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 320, 2133 }, |
| { 422, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 128, -1 }, |
| { 510, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 144, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 114, 2112 }, |
| { 3, -1 }, |
| { 85, 2059 }, |
| { 118, -1 }, |
| { 447, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 24, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 27, -1 }, |
| { -1, -1 }, |
| { 198, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 223, 2121 }, |
| { 509, -1 }, |
| { 259, -1 }, |
| { 173, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 325, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 354, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 283, -1 }, |
| { -1, -1 }, |
| { 130, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 38, 2070 }, |
| { -1, -1 }, |
| { 110, -1 }, |
| { 370, -1 }, |
| { 619, -1 }, |
| { 55, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 585, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 167, -1 }, |
| { -1, -1 }, |
| { 216, -1 }, |
| { 355, -1 }, |
| { -1, -1 }, |
| { 589, -1 }, |
| { 323, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 6, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 375, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 79, -1 }, |
| { 310, -1 }, |
| { 437, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 174, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 88, 2130 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 43, 2066 }, |
| { 610, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 573, -1 }, |
| { 95, 2055 }, |
| { 387, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 415, -1 }, |
| { -1, -1 }, |
| { 131, -1 }, |
| { 28, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 295, -1 }, |
| { 349, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 271, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 368, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 166, -1 }, |
| { -1, -1 }, |
| { 45, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 56, -1 }, |
| { 398, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 425, 2105 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 506, -1 }, |
| { -1, -1 }, |
| { 377, -1 }, |
| { -1, -1 }, |
| { 591, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 153, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 225, -1 }, |
| { 100, -1 }, |
| { -1, -1 }, |
| { 302, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 39, -1 }, |
| { 584, -1 }, |
| { 165, 2063 }, |
| { -1, -1 }, |
| { 77, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 44, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 213, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 60, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 401, -1 }, |
| { 627, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 253, -1 }, |
| { 321, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 147, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 23, -1 }, |
| { -1, -1 }, |
| { 203, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 436, -1 }, |
| { 494, -1 }, |
| { -1, -1 }, |
| { 76, 2083 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 612, -1 }, |
| { 288, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 276, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 582, -1 }, |
| { -1, -1 }, |
| { 359, -1 }, |
| { 179, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 32, 2065 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 287, 2087 }, |
| { 278, -1 }, |
| { 47, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 49, 2110 }, |
| { 367, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 453, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 545, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 547, -1 }, |
| { -1, -1 }, |
| { 414, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 544, 2129 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 104, -1 }, |
| { -1, -1 }, |
| { 390, 2113 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 451, 2104 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 468, -1 }, |
| { 171, -1 }, |
| { 397, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 484, -1 }, |
| { -1, -1 }, |
| { 146, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 214, -1 }, |
| { 358, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 233, -1 }, |
| { -1, -1 }, |
| { 255, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 322, -1 }, |
| { -1, -1 }, |
| { 217, -1 }, |
| { 304, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 479, -1 }, |
| { -1, -1 }, |
| { 227, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 579, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 334, -1 }, |
| { 507, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 385, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 335, 2085 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 293, -1 }, |
| { 499, -1 }, |
| { 379, 2103 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 229, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 220, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 575, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 613, -1 }, |
| { -1, -1 }, |
| { 595, -1 }, |
| { 430, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 212, 2079 }, |
| { -1, -1 }, |
| { 107, -1 }, |
| { -1, -1 }, |
| { 399, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 66, -1 }, |
| { 513, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 202, -1 }, |
| { -1, -1 }, |
| { 285, -1 }, |
| { 517, -1 }, |
| { 197, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 103, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 191, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 366, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 391, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 442, -1 }, |
| { 2, -1 }, |
| { -1, -1 }, |
| { 215, -1 }, |
| { -1, -1 }, |
| { 512, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 382, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 297, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 192, -1 }, |
| { 313, 2077 }, |
| { 195, 2058 }, |
| { 421, -1 }, |
| { -1, -1 }, |
| { 550, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 193, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 292, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 493, -1 }, |
| { 604, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 476, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 343, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 127, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 458, -1 }, |
| { 444, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 152, -1 }, |
| { -1, -1 }, |
| { 327, -1 }, |
| { 606, -1 }, |
| { 495, -1 }, |
| { 10, -1 }, |
| { -1, -1 }, |
| { 116, -1 }, |
| { 5, 2051 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 324, 2097 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 489, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 336, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 35, 2062 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 63, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 87, -1 }, |
| { -1, -1 }, |
| { 369, -1 }, |
| { -1, -1 }, |
| { 553, -1 }, |
| { -1, -1 }, |
| { 340, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 242, -1 }, |
| { -1, -1 }, |
| { 69, -1 }, |
| { 84, -1 }, |
| { 557, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 434, -1 }, |
| { 478, 2131 }, |
| { 450, -1 }, |
| { 26, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 230, -1 }, |
| { 581, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 8, -1 }, |
| { -1, -1 }, |
| { 308, -1 }, |
| { -1, -1 }, |
| { 533, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 586, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 600, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 98, -1 }, |
| { -1, -1 }, |
| { 123, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 505, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 522, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 111, 2096 }, |
| { 438, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 418, -1 }, |
| { 156, 2124 }, |
| { -1, -1 }, |
| { 17, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 238, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 439, -1 }, |
| { -1, -1 }, |
| { 64, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 531, -1 }, |
| { -1, -1 }, |
| { 406, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 341, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 461, 2123 }, |
| { 543, -1 }, |
| { -1, -1 }, |
| { 96, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 180, 2128 }, |
| { 140, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 68, 2078 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 125, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 526, -1 }, |
| { -1, -1 }, |
| { 456, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 469, -1 }, |
| { -1, -1 }, |
| { 333, -1 }, |
| { -1, -1 }, |
| { 133, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 239, -1 }, |
| { -1, -1 }, |
| { 178, 2116 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 62, -1 }, |
| { 467, -1 }, |
| { 149, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 592, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 402, -1 }, |
| { 466, 2102 }, |
| { -1, -1 }, |
| { 286, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 588, -1 }, |
| { 508, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 389, 2091 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 115, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 211, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 162, 2060 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 576, 2126 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 328, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 571, -1 }, |
| { 564, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 346, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 362, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 470, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 307, -1 }, |
| { -1, -1 }, |
| { 602, -1 }, |
| { 488, -1 }, |
| { -1, -1 }, |
| { 593, -1 }, |
| { -1, -1 }, |
| { 91, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 7, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 67, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 411, -1 }, |
| { 400, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 407, 2109 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 267, 2081 }, |
| { -1, -1 }, |
| { 558, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 559, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 181, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 386, -1 }, |
| { -1, -1 }, |
| { 562, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 427, -1 }, |
| { 625, -1 }, |
| { -1, -1 }, |
| { 417, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 266, 2094 }, |
| { -1, -1 }, |
| { 151, -1 }, |
| { -1, -1 }, |
| { 137, -1 }, |
| { 624, -1 }, |
| { 61, 2075 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 262, 2132 }, |
| { -1, -1 }, |
| { 30, -1 }, |
| { -1, -1 }, |
| { 532, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 54, -1 }, |
| { -1, -1 }, |
| { 18, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 528, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 409, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 477, -1 }, |
| { 188, 2057 }, |
| { -1, -1 }, |
| { 136, -1 }, |
| { -1, -1 }, |
| { 298, -1 }, |
| { -1, -1 }, |
| { 536, -1 }, |
| { 172, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 516, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 185, -1 }, |
| { 218, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 168, 2068 }, |
| { 594, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 41, -1 }, |
| { -1, -1 }, |
| { 222, -1 }, |
| { -1, -1 }, |
| { 93, 2095 }, |
| { -1, -1 }, |
| { 86, -1 }, |
| { -1, -1 }, |
| { 396, -1 }, |
| { 514, -1 }, |
| { 587, -1 }, |
| { 160, 2106 }, |
| { -1, -1 }, |
| { 420, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 616, -1 }, |
| { 486, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { -1, -1 }, |
| { 236, -1 }, |
| { 65, -1 }, |
| { 78, -1 }, |
| { 97, -1 }, |
| { 112, -1 }, |
| { 124, -1 }, |
| { 132, -1 }, |
| { 138, -1 }, |
| { 145, -1 }, |
| { 164, -1 }, |
| { 201, -1 }, |
| { 209, -1 }, |
| { 210, 2088 }, |
| { 224, -1 }, |
| { 228, -1 }, |
| { 235, -1 }, |
| { 249, -1 }, |
| { 252, 2072 }, |
| { 254, -1 }, |
| { 258, -1 }, |
| { 263, -1 }, |
| { 264, 2069 }, |
| { 265, -1 }, |
| { 270, -1 }, |
| { 274, 2101 }, |
| { 279, 2076 }, |
| { 280, -1 }, |
| { 289, -1 }, |
| { 300, -1 }, |
| { 305, -1 }, |
| { 326, -1 }, |
| { 330, -1 }, |
| { 342, -1 }, |
| { 348, -1 }, |
| { 350, -1 }, |
| { 352, -1 }, |
| { 353, -1 }, |
| { 378, 2117 }, |
| { 381, -1 }, |
| { 384, -1 }, |
| { 395, -1 }, |
| { 404, -1 }, |
| { 408, -1 }, |
| { 416, -1 }, |
| { 426, -1 }, |
| { 435, -1 }, |
| { 446, -1 }, |
| { 454, -1 }, |
| { 462, -1 }, |
| { 471, -1 }, |
| { 474, -1 }, |
| { 485, -1 }, |
| { 487, -1 }, |
| { 490, -1 }, |
| { 491, -1 }, |
| { 496, -1 }, |
| { 497, -1 }, |
| { 498, -1 }, |
| { 500, -1 }, |
| { 511, -1 }, |
| { 520, -1 }, |
| { 521, -1 }, |
| { 534, -1 }, |
| { 538, -1 }, |
| { 540, 2120 }, |
| { 541, -1 }, |
| { 546, -1 }, |
| { 549, -1 }, |
| { 552, -1 }, |
| { 554, -1 }, |
| { 555, -1 }, |
| { 556, -1 }, |
| { 561, -1 }, |
| { 563, -1 }, |
| { 569, -1 }, |
| { 572, -1 }, |
| { 580, -1 }, |
| { 596, -1 }, |
| { 598, -1 }, |
| { 608, -1 }, |
| { 609, -1 }, |
| { 611, -1 }, |
| { 615, -1 }, |
| { 618, -1 }, |
| { 622, -1 }, |
| { 623, -1 }, |
| { 630, -1 }, |
| }; |
| |
| |
| static const HashTableValue JSDOMWindowTableValues[] = |
| { |
| { "screen", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreen), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreen) } }, |
| { "history", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHistory), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "locationbar", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowLocationbar), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowLocationbar) } }, |
| { "menubar", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMenubar), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMenubar) } }, |
| { "personalbar", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPersonalbar), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPersonalbar) } }, |
| { "scrollbars", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScrollbars), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScrollbars) } }, |
| { "statusbar", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStatusbar), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStatusbar) } }, |
| { "toolbar", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowToolbar), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowToolbar) } }, |
| { "navigator", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNavigator), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "clientInformation", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowClientInformation), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowClientInformation) } }, |
| { "location", DontDelete | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowLocation), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowLocation) } }, |
| { "event", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowEvent), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowEvent) } }, |
| { "frameElement", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFrameElement), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "offscreenBuffering", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOffscreenBuffering), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOffscreenBuffering) } }, |
| { "outerHeight", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOuterHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOuterHeight) } }, |
| { "outerWidth", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOuterWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOuterWidth) } }, |
| { "innerHeight", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowInnerHeight), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowInnerHeight) } }, |
| { "innerWidth", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowInnerWidth), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowInnerWidth) } }, |
| { "screenX", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreenX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreenX) } }, |
| { "screenY", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreenY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreenY) } }, |
| { "screenLeft", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreenLeft), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreenLeft) } }, |
| { "screenTop", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreenTop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreenTop) } }, |
| { "scrollX", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScrollX), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScrollX) } }, |
| { "scrollY", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScrollY), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScrollY) } }, |
| { "pageXOffset", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPageXOffset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPageXOffset) } }, |
| { "pageYOffset", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPageYOffset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPageYOffset) } }, |
| { "closed", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowClosed), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "length", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowLength), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowLength) } }, |
| { "name", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowName), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowName) } }, |
| { "status", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStatus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStatus) } }, |
| { "defaultStatus", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDefaultStatus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDefaultStatus) } }, |
| { "defaultstatus", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDefaultstatus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDefaultstatus) } }, |
| { "self", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSelf), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSelf) } }, |
| { "window", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWindow), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "frames", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFrames), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFrames) } }, |
| { "opener", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOpener), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOpener) } }, |
| { "parent", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowParent), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowParent) } }, |
| { "top", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "document", DontDelete | ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDocument), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "styleMedia", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStyleMedia), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "devicePixelRatio", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDevicePixelRatio), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDevicePixelRatio) } }, |
| { "applicationCache", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowApplicationCache), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "sessionStorage", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSessionStorage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "localStorage", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowLocalStorage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| #if ENABLE(ORIENTATION_EVENTS) |
| { "orientation", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOrientation), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_TIMING) |
| { "performance", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformance), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformance) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "Image", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowImageConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowImageConstructor) } }, |
| { "SVGDocument", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGDocumentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGDocumentConstructor) } }, |
| { "webkitURL", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebkitURLConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebkitURLConstructor) } }, |
| { "WebKitMutationObserver", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitMutationObserverConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitMutationObserverConstructor) } }, |
| { "onanimationend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnanimationend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnanimationend) } }, |
| { "onanimationiteration", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnanimationiteration), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnanimationiteration) } }, |
| { "onanimationstart", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnanimationstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnanimationstart) } }, |
| { "ontransitionend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntransitionend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntransitionend) } }, |
| { "onwebkitanimationend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitanimationend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitanimationend) } }, |
| { "onwebkitanimationiteration", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitanimationiteration), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitanimationiteration) } }, |
| { "onwebkitanimationstart", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitanimationstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitanimationstart) } }, |
| { "onwebkittransitionend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkittransitionend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkittransitionend) } }, |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| { "ongesturechange", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOngesturechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOngesturechange) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| { "ongestureend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOngestureend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOngestureend) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| { "ongesturestart", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOngesturestart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOngesturestart) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| { "ondevicemotion", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndevicemotion), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndevicemotion) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| { "ondeviceorientation", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndeviceorientation), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndeviceorientation) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(PROXIMITY_EVENTS) |
| { "onwebkitdeviceproximity", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitdeviceproximity), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitdeviceproximity) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| { "speechSynthesis", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSpeechSynthesis), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "onabort", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnabort), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnabort) } }, |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| { "onautocomplete", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnautocomplete), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnautocomplete) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| { "onautocompleteerror", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnautocompleteerror), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnautocompleteerror) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "onblur", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnblur), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnblur) } }, |
| { "oncanplay", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOncanplay), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOncanplay) } }, |
| { "oncanplaythrough", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOncanplaythrough), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOncanplaythrough) } }, |
| { "onchange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnchange) } }, |
| { "onclick", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnclick), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnclick) } }, |
| { "oncontextmenu", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOncontextmenu), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOncontextmenu) } }, |
| { "oncuechange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOncuechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOncuechange) } }, |
| { "ondblclick", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndblclick), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndblclick) } }, |
| { "ondrag", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndrag), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndrag) } }, |
| { "ondragend", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndragend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndragend) } }, |
| { "ondragenter", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndragenter), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndragenter) } }, |
| { "ondragleave", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndragleave), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndragleave) } }, |
| { "ondragover", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndragover), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndragover) } }, |
| { "ondragstart", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndragstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndragstart) } }, |
| { "ondrop", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndrop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndrop) } }, |
| { "ondurationchange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOndurationchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOndurationchange) } }, |
| { "onemptied", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnemptied), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnemptied) } }, |
| { "onended", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnended), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnended) } }, |
| { "onerror", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnerror), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnerror) } }, |
| { "onfocus", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnfocus), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnfocus) } }, |
| { "oninput", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOninput), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOninput) } }, |
| { "oninvalid", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOninvalid), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOninvalid) } }, |
| { "onkeydown", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnkeydown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnkeydown) } }, |
| { "onkeypress", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnkeypress), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnkeypress) } }, |
| { "onkeyup", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnkeyup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnkeyup) } }, |
| { "onload", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnload) } }, |
| { "onloadeddata", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnloadeddata), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnloadeddata) } }, |
| { "onloadedmetadata", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnloadedmetadata), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnloadedmetadata) } }, |
| { "onloadstart", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnloadstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnloadstart) } }, |
| { "onmousedown", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmousedown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmousedown) } }, |
| { "onmouseenter", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmouseenter), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmouseenter) } }, |
| { "onmouseleave", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmouseleave), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmouseleave) } }, |
| { "onmousemove", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmousemove), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmousemove) } }, |
| { "onmouseout", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmouseout), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmouseout) } }, |
| { "onmouseover", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmouseover), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmouseover) } }, |
| { "onmouseup", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmouseup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmouseup) } }, |
| { "onmousewheel", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmousewheel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmousewheel) } }, |
| { "onpause", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnpause), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnpause) } }, |
| { "onplay", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnplay), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnplay) } }, |
| { "onplaying", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnplaying), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnplaying) } }, |
| { "onprogress", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnprogress), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnprogress) } }, |
| { "onratechange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnratechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnratechange) } }, |
| { "onreset", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnreset), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnreset) } }, |
| { "onresize", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnresize), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnresize) } }, |
| { "onscroll", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnscroll), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnscroll) } }, |
| { "onseeked", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnseeked), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnseeked) } }, |
| { "onseeking", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnseeking), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnseeking) } }, |
| { "onselect", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnselect), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnselect) } }, |
| { "onstalled", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnstalled), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnstalled) } }, |
| { "onsubmit", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnsubmit), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnsubmit) } }, |
| { "onsuspend", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnsuspend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnsuspend) } }, |
| { "ontimeupdate", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntimeupdate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntimeupdate) } }, |
| { "onvolumechange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnvolumechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnvolumechange) } }, |
| { "onwaiting", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwaiting), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwaiting) } }, |
| { "onsearch", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnsearch), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnsearch) } }, |
| { "onwheel", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwheel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwheel) } }, |
| #if ENABLE(TOUCH_EVENTS) |
| { "ontouchcancel", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntouchcancel), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntouchcancel) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "ontouchend", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntouchend), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntouchend) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "ontouchmove", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntouchmove), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntouchmove) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "ontouchstart", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntouchstart), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntouchstart) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "ontouchforcechange", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOntouchforcechange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOntouchforcechange) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| { "onwebkitmouseforcechanged", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitmouseforcechanged), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitmouseforcechanged) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| { "onwebkitmouseforcedown", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitmouseforcedown), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitmouseforcedown) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| { "onwebkitmouseforcewillbegin", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitmouseforcewillbegin), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitmouseforcewillbegin) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| { "onwebkitmouseforceup", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitmouseforceup), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitmouseforceup) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| { "onwebkitwillrevealbottom", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitwillrevealbottom), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitwillrevealbottom) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| { "onwebkitwillrevealleft", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitwillrevealleft), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitwillrevealleft) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| { "onwebkitwillrevealright", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitwillrevealright), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitwillrevealright) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| { "onwebkitwillrevealtop", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnwebkitwillrevealtop), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnwebkitwillrevealtop) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "crypto", ReadOnly | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCrypto), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(0) } }, |
| { "onbeforeunload", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnbeforeunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnbeforeunload) } }, |
| { "onhashchange", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnhashchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnhashchange) } }, |
| { "onmessage", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnmessage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnmessage) } }, |
| { "onoffline", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnoffline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnoffline) } }, |
| { "ononline", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnonline), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnonline) } }, |
| { "onpagehide", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnpagehide), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnpagehide) } }, |
| { "onpageshow", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnpageshow), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnpageshow) } }, |
| { "onpopstate", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnpopstate), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnpopstate) } }, |
| { "onstorage", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnstorage), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnstorage) } }, |
| { "onunload", CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnunload), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnunload) } }, |
| #if ENABLE(ORIENTATION_EVENTS) |
| { "onorientationchange", DontEnum | CustomAccessor, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOnorientationchange), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOnorientationchange) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| { "WebKitPlaybackTargetAvailabilityEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(INDIE_UI) |
| { "UIRequestEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowUIRequestEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowUIRequestEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_SESSION) |
| { "MediaRemoteControls", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaRemoteControlsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaRemoteControlsConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_SESSION) |
| { "MediaSession", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaSessionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaSessionConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| { "MediaSource", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaSourceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaSourceConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| { "SourceBuffer", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSourceBufferConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSourceBufferConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_SOURCE) |
| { "SourceBufferList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSourceBufferListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSourceBufferListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| { "MediaStream", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "MediaStreamEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| { "MediaStreamTrack", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamTrackConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamTrackConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| { "MediaStreamTrackEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamTrackEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamTrackEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| { "OverconstrainedError", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOverconstrainedErrorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOverconstrainedErrorConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| { "OverconstrainedErrorEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOverconstrainedErrorEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOverconstrainedErrorEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCIceCandidate", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCIceCandidateConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCIceCandidateConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "webkitRTCPeerConnection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebkitRTCPeerConnectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebkitRTCPeerConnectionConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCRtpReceiver", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCRtpReceiverConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCRtpReceiverConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCRtpSender", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCRtpSenderConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCRtpSenderConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCRtpTransceiver", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCRtpTransceiverConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCRtpTransceiverConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCSessionDescription", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCSessionDescriptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCSessionDescriptionConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_RTC) |
| { "RTCTrackEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRTCTrackEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRTCTrackEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(LEGACY_NOTIFICATIONS) || ENABLE(NOTIFICATIONS) |
| { "Notification", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNotificationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNotificationConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(PROXIMITY_EVENTS) |
| { "DeviceProximityEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDeviceProximityEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDeviceProximityEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| { "SpeechSynthesisEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSpeechSynthesisEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSpeechSynthesisEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SPEECH_SYNTHESIS) |
| { "SpeechSynthesisUtterance", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSpeechSynthesisUtteranceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSpeechSynthesisUtteranceConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| { "ByteLengthQueuingStrategy", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowByteLengthQueuingStrategyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowByteLengthQueuingStrategyConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| { "CountQueuingStrategy", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCountQueuingStrategyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCountQueuingStrategyConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(READABLE_STREAM_API) |
| { "ReadableStream", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowReadableStreamConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowReadableStreamConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WRITABLE_STREAM_API) |
| { "WritableStream", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWritableStreamConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWritableStreamConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AnalyserNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAnalyserNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAnalyserNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioBuffer", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioBufferConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioBufferConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioBufferSourceNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioBufferSourceNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioBufferSourceNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "webkitAudioContext", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebkitAudioContextConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebkitAudioContextConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioDestinationNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioDestinationNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioDestinationNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioListener", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioListenerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioListenerConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioParam", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioParamConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioParamConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "AudioProcessingEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioProcessingEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioProcessingEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "BiquadFilterNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowBiquadFilterNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowBiquadFilterNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "ChannelMergerNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowChannelMergerNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowChannelMergerNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "ChannelSplitterNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowChannelSplitterNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowChannelSplitterNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "ConvolverNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowConvolverNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowConvolverNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "DelayNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDelayNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDelayNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "DynamicsCompressorNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDynamicsCompressorNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDynamicsCompressorNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "GainNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowGainNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowGainNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO) && ENABLE(WEB_AUDIO) |
| { "MediaElementAudioSourceNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaElementAudioSourceNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaElementAudioSourceNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| { "MediaStreamAudioDestinationNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamAudioDestinationNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamAudioDestinationNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| { "MediaStreamAudioSourceNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaStreamAudioSourceNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaStreamAudioSourceNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "OfflineAudioCompletionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOfflineAudioCompletionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOfflineAudioCompletionEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "webkitOfflineAudioContext", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebkitOfflineAudioContextConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebkitOfflineAudioContextConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "OscillatorNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOscillatorNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOscillatorNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "webkitAudioPannerNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebkitAudioPannerNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebkitAudioPannerNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "PeriodicWave", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPeriodicWaveConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPeriodicWaveConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "ScriptProcessorNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScriptProcessorNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScriptProcessorNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_AUDIO) |
| { "WaveShaperNode", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWaveShaperNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWaveShaperNodeConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "Database", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDatabaseConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDatabaseConstructor) } }, |
| { "SQLError", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSQLErrorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSQLErrorConstructor) } }, |
| { "SQLException", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSQLExceptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSQLExceptionConstructor) } }, |
| { "SQLResultSet", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSQLResultSetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSQLResultSetConstructor) } }, |
| { "SQLResultSetRowList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSQLResultSetRowListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSQLResultSetRowListConstructor) } }, |
| { "SQLTransaction", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSQLTransactionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSQLTransactionConstructor) } }, |
| { "CloseEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCloseEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCloseEventConstructor) } }, |
| #if ENABLE(WEB_ANIMATIONS) |
| { "AnimationEffectReadOnly", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAnimationEffectReadOnlyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAnimationEffectReadOnlyConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| { "AnimationTimeline", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAnimationTimelineConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAnimationTimelineConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| { "DocumentTimeline", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDocumentTimelineConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDocumentTimelineConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| { "KeyframeEffect", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowKeyframeEffectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowKeyframeEffectConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_ANIMATIONS) |
| { "Animation", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAnimationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAnimationConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SUBTLE_CRYPTO) |
| { "CryptoKey", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCryptoKeyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCryptoKeyConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "CSSCharsetRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSCharsetRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSCharsetRuleConstructor) } }, |
| { "CSSFontFaceRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSFontFaceRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSFontFaceRuleConstructor) } }, |
| { "CSSImportRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSImportRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSImportRuleConstructor) } }, |
| { "CSSKeyframeRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSKeyframeRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSKeyframeRuleConstructor) } }, |
| { "CSSKeyframesRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSKeyframesRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSKeyframesRuleConstructor) } }, |
| { "CSSMediaRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSMediaRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSMediaRuleConstructor) } }, |
| { "CSSPageRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSPageRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSPageRuleConstructor) } }, |
| { "CSSPrimitiveValue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSPrimitiveValueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSPrimitiveValueConstructor) } }, |
| { "CSSRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSRuleConstructor) } }, |
| { "CSSRuleList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSRuleListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSRuleListConstructor) } }, |
| { "CSSStyleDeclaration", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSStyleDeclarationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSStyleDeclarationConstructor) } }, |
| { "CSSStyleRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSStyleRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSStyleRuleConstructor) } }, |
| { "CSSStyleSheet", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSStyleSheetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSStyleSheetConstructor) } }, |
| { "CSSSupportsRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSSupportsRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSSupportsRuleConstructor) } }, |
| { "CSSValue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSValueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSValueConstructor) } }, |
| { "CSSValueList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSValueListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSValueListConstructor) } }, |
| { "Counter", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCounterConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCounterConstructor) } }, |
| { "CSS", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCSSConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCSSConstructor) } }, |
| { "FontFace", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFontFaceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFontFaceConstructor) } }, |
| { "FontFaceSet", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFontFaceSetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFontFaceSetConstructor) } }, |
| { "MediaList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaListConstructor) } }, |
| { "RGBColor", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRGBColorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRGBColorConstructor) } }, |
| { "Rect", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRectConstructor) } }, |
| { "StyleSheet", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStyleSheetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStyleSheetConstructor) } }, |
| { "StyleSheetList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStyleSheetListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStyleSheetListConstructor) } }, |
| { "WebKitCSSFilterValue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitCSSFilterValueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitCSSFilterValueConstructor) } }, |
| { "WebKitCSSMatrix", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitCSSMatrixConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitCSSMatrixConstructor) } }, |
| #if ENABLE(CSS_REGIONS) |
| { "WebKitCSSRegionRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitCSSRegionRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitCSSRegionRuleConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "WebKitCSSTransformValue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitCSSTransformValueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitCSSTransformValueConstructor) } }, |
| #if ENABLE(CSS_DEVICE_ADAPTATION) |
| { "WebKitCSSViewportRule", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitCSSViewportRuleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitCSSViewportRuleConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "AnimationEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAnimationEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAnimationEventConstructor) } }, |
| { "Attr", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAttrConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAttrConstructor) } }, |
| { "BeforeLoadEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowBeforeLoadEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowBeforeLoadEventConstructor) } }, |
| { "BeforeUnloadEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowBeforeUnloadEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowBeforeUnloadEventConstructor) } }, |
| { "CDATASection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCDATASectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCDATASectionConstructor) } }, |
| { "CharacterData", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCharacterDataConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCharacterDataConstructor) } }, |
| { "ClientRect", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowClientRectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowClientRectConstructor) } }, |
| { "ClientRectList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowClientRectListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowClientRectListConstructor) } }, |
| { "Comment", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCommentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCommentConstructor) } }, |
| { "CompositionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCompositionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCompositionEventConstructor) } }, |
| { "CustomEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCustomEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCustomEventConstructor) } }, |
| { "DOMException", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMExceptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMExceptionConstructor) } }, |
| { "DOMImplementation", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMImplementationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMImplementationConstructor) } }, |
| { "DOMStringList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMStringListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMStringListConstructor) } }, |
| { "DOMStringMap", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMStringMapConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMStringMapConstructor) } }, |
| { "DataTransfer", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDataTransferConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDataTransferConstructor) } }, |
| #if ENABLE(DEVICE_ORIENTATION) |
| { "DeviceMotionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDeviceMotionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDeviceMotionEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(DEVICE_ORIENTATION) |
| { "DeviceOrientationEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDeviceOrientationEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDeviceOrientationEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "Document", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDocumentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDocumentConstructor) } }, |
| { "DocumentFragment", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDocumentFragmentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDocumentFragmentConstructor) } }, |
| { "DocumentType", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDocumentTypeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDocumentTypeConstructor) } }, |
| { "Element", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowElementConstructor) } }, |
| { "ErrorEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowErrorEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowErrorEventConstructor) } }, |
| { "Event", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowEventConstructor) } }, |
| { "EventTarget", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowEventTargetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowEventTargetConstructor) } }, |
| { "FocusEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFocusEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFocusEventConstructor) } }, |
| { "HashChangeEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHashChangeEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHashChangeEventConstructor) } }, |
| { "KeyboardEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowKeyboardEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowKeyboardEventConstructor) } }, |
| #if ENABLE(CHANNEL_MESSAGING) |
| { "MessageChannel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMessageChannelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMessageChannelConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "MessageEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMessageEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMessageEventConstructor) } }, |
| { "MessagePort", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMessagePortConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMessagePortConstructor) } }, |
| { "MouseEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMouseEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMouseEventConstructor) } }, |
| { "MutationEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMutationEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMutationEventConstructor) } }, |
| { "MutationObserver", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMutationObserverConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMutationObserverConstructor) } }, |
| { "MutationRecord", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMutationRecordConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMutationRecordConstructor) } }, |
| { "NamedNodeMap", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNamedNodeMapConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNamedNodeMapConstructor) } }, |
| { "Node", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNodeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNodeConstructor) } }, |
| { "NodeFilter", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNodeFilterConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNodeFilterConstructor) } }, |
| { "NodeIterator", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNodeIteratorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNodeIteratorConstructor) } }, |
| { "NodeList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNodeListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNodeListConstructor) } }, |
| { "OverflowEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOverflowEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOverflowEventConstructor) } }, |
| { "PageTransitionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPageTransitionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPageTransitionEventConstructor) } }, |
| { "PopStateEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPopStateEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPopStateEventConstructor) } }, |
| { "ProcessingInstruction", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowProcessingInstructionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowProcessingInstructionConstructor) } }, |
| { "ProgressEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowProgressEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowProgressEventConstructor) } }, |
| { "Range", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRangeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRangeConstructor) } }, |
| { "SecurityPolicyViolationEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSecurityPolicyViolationEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSecurityPolicyViolationEventConstructor) } }, |
| { "Text", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextConstructor) } }, |
| { "TextEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextEventConstructor) } }, |
| #if ENABLE(TOUCH_EVENTS) |
| { "Touch", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTouchConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTouchConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "TouchEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTouchEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTouchEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(TOUCH_EVENTS) |
| { "TouchList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTouchListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTouchListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "TransitionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTransitionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTransitionEventConstructor) } }, |
| { "TreeWalker", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTreeWalkerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTreeWalkerConstructor) } }, |
| { "UIEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowUIEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowUIEventConstructor) } }, |
| { "WebKitAnimationEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitAnimationEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitAnimationEventConstructor) } }, |
| { "WebKitTransitionEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitTransitionEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitTransitionEventConstructor) } }, |
| { "WheelEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWheelEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWheelEventConstructor) } }, |
| { "XMLDocument", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLDocumentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLDocumentConstructor) } }, |
| { "Blob", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowBlobConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowBlobConstructor) } }, |
| { "File", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFileConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFileConstructor) } }, |
| { "FileError", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFileErrorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFileErrorConstructor) } }, |
| { "FileList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFileListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFileListConstructor) } }, |
| { "FileReader", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFileReaderConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFileReaderConstructor) } }, |
| { "FormData", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowFormDataConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowFormDataConstructor) } }, |
| { "DOMTokenList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMTokenListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMTokenListConstructor) } }, |
| { "URL", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowURLConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowURLConstructor) } }, |
| { "HTMLAllCollection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLAllCollectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLAllCollectionConstructor) } }, |
| { "HTMLAnchorElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLAnchorElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLAnchorElementConstructor) } }, |
| { "HTMLAppletElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLAppletElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLAppletElementConstructor) } }, |
| { "HTMLAreaElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLAreaElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLAreaElementConstructor) } }, |
| #if ENABLE(ATTACHMENT_ELEMENT) |
| { "HTMLAttachmentElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLAttachmentElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLAttachmentElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "HTMLBRElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLBRElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLBRElementConstructor) } }, |
| { "HTMLBaseElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLBaseElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLBaseElementConstructor) } }, |
| { "HTMLBodyElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLBodyElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLBodyElementConstructor) } }, |
| { "HTMLButtonElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLButtonElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLButtonElementConstructor) } }, |
| { "HTMLCanvasElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLCanvasElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLCanvasElementConstructor) } }, |
| { "HTMLCollection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLCollectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLCollectionConstructor) } }, |
| { "HTMLDListElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDListElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDListElementConstructor) } }, |
| { "HTMLDataElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDataElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDataElementConstructor) } }, |
| #if ENABLE(DATALIST_ELEMENT) |
| { "HTMLDataListElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDataListElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDataListElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(DETAILS_ELEMENT) |
| { "HTMLDetailsElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDetailsElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDetailsElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "HTMLDirectoryElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDirectoryElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDirectoryElementConstructor) } }, |
| { "HTMLDivElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDivElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDivElementConstructor) } }, |
| { "HTMLDocument", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLDocumentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLDocumentConstructor) } }, |
| { "HTMLElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLElementConstructor) } }, |
| { "HTMLEmbedElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLEmbedElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLEmbedElementConstructor) } }, |
| { "HTMLFieldSetElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFieldSetElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFieldSetElementConstructor) } }, |
| { "HTMLFontElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFontElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFontElementConstructor) } }, |
| { "HTMLFormControlsCollection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFormControlsCollectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFormControlsCollectionConstructor) } }, |
| { "HTMLFormElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFormElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFormElementConstructor) } }, |
| { "HTMLFrameElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFrameElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFrameElementConstructor) } }, |
| { "HTMLFrameSetElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLFrameSetElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLFrameSetElementConstructor) } }, |
| { "HTMLHRElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLHRElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLHRElementConstructor) } }, |
| { "HTMLHeadElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLHeadElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLHeadElementConstructor) } }, |
| { "HTMLHeadingElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLHeadingElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLHeadingElementConstructor) } }, |
| { "HTMLHtmlElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLHtmlElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLHtmlElementConstructor) } }, |
| { "HTMLIFrameElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLIFrameElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLIFrameElementConstructor) } }, |
| { "HTMLImageElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLImageElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLImageElementConstructor) } }, |
| { "HTMLInputElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLInputElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLInputElementConstructor) } }, |
| { "HTMLKeygenElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLKeygenElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLKeygenElementConstructor) } }, |
| { "HTMLLIElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLLIElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLLIElementConstructor) } }, |
| { "HTMLLabelElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLLabelElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLLabelElementConstructor) } }, |
| { "HTMLLegendElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLLegendElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLLegendElementConstructor) } }, |
| { "HTMLLinkElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLLinkElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLLinkElementConstructor) } }, |
| { "HTMLMapElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMapElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMapElementConstructor) } }, |
| { "HTMLMarqueeElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMarqueeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMarqueeElementConstructor) } }, |
| #if ENABLE(VIDEO) |
| { "HTMLMediaElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMediaElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMediaElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "HTMLMenuElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMenuElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMenuElementConstructor) } }, |
| { "HTMLMetaElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMetaElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMetaElementConstructor) } }, |
| #if ENABLE(METER_ELEMENT) |
| { "HTMLMeterElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLMeterElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLMeterElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "HTMLModElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLModElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLModElementConstructor) } }, |
| { "HTMLOListElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLOListElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLOListElementConstructor) } }, |
| { "HTMLObjectElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLObjectElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLObjectElementConstructor) } }, |
| { "HTMLOptGroupElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLOptGroupElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLOptGroupElementConstructor) } }, |
| { "HTMLOptionElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLOptionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLOptionElementConstructor) } }, |
| { "Option", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowOptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowOptionConstructor) } }, |
| { "HTMLOptionsCollection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLOptionsCollectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLOptionsCollectionConstructor) } }, |
| { "HTMLOutputElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLOutputElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLOutputElementConstructor) } }, |
| { "HTMLParagraphElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLParagraphElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLParagraphElementConstructor) } }, |
| { "HTMLParamElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLParamElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLParamElementConstructor) } }, |
| { "HTMLPictureElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLPictureElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLPictureElementConstructor) } }, |
| { "HTMLPreElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLPreElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLPreElementConstructor) } }, |
| { "HTMLProgressElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLProgressElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLProgressElementConstructor) } }, |
| { "HTMLQuoteElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLQuoteElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLQuoteElementConstructor) } }, |
| { "HTMLScriptElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLScriptElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLScriptElementConstructor) } }, |
| { "HTMLSelectElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLSelectElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLSelectElementConstructor) } }, |
| { "HTMLSourceElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLSourceElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLSourceElementConstructor) } }, |
| { "HTMLSpanElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLSpanElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLSpanElementConstructor) } }, |
| { "HTMLStyleElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLStyleElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLStyleElementConstructor) } }, |
| { "HTMLTableCaptionElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableCaptionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableCaptionElementConstructor) } }, |
| { "HTMLTableCellElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableCellElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableCellElementConstructor) } }, |
| { "HTMLTableColElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableColElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableColElementConstructor) } }, |
| { "HTMLTableElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableElementConstructor) } }, |
| { "HTMLTableRowElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableRowElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableRowElementConstructor) } }, |
| { "HTMLTableSectionElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTableSectionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTableSectionElementConstructor) } }, |
| { "HTMLTemplateElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTemplateElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTemplateElementConstructor) } }, |
| { "HTMLTextAreaElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTextAreaElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTextAreaElementConstructor) } }, |
| { "HTMLTimeElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTimeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTimeElementConstructor) } }, |
| { "HTMLTitleElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTitleElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTitleElementConstructor) } }, |
| #if ENABLE(VIDEO_TRACK) |
| { "HTMLTrackElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLTrackElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLTrackElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "HTMLUListElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLUListElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLUListElementConstructor) } }, |
| { "HTMLUnknownElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLUnknownElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLUnknownElementConstructor) } }, |
| #if ENABLE(VIDEO) |
| { "HTMLVideoElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHTMLVideoElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHTMLVideoElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "ImageData", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowImageDataConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowImageDataConstructor) } }, |
| #if ENABLE(VIDEO) |
| { "MediaController", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaControllerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaControllerConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO) |
| { "MediaError", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMediaErrorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMediaErrorConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "RadioNodeList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowRadioNodeListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowRadioNodeListConstructor) } }, |
| { "TextMetrics", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextMetricsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextMetricsConstructor) } }, |
| #if ENABLE(VIDEO) |
| { "TimeRanges", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTimeRangesConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTimeRangesConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "URLSearchParams", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowURLSearchParamsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowURLSearchParamsConstructor) } }, |
| { "ValidityState", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowValidityStateConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowValidityStateConstructor) } }, |
| { "CanvasGradient", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCanvasGradientConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCanvasGradientConstructor) } }, |
| { "CanvasPattern", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCanvasPatternConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCanvasPatternConstructor) } }, |
| #if ENABLE(CANVAS_PROXY) |
| { "CanvasProxy", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCanvasProxyConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCanvasProxyConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "CanvasRenderingContext2D", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCanvasRenderingContext2DConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCanvasRenderingContext2DConstructor) } }, |
| { "Path2D", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPath2DConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPath2DConstructor) } }, |
| #if ENABLE(VIDEO_TRACK) |
| { "AudioTrack", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioTrackConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioTrackConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "AudioTrackList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowAudioTrackListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowAudioTrackListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "WebKitDataCue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitDataCueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitDataCueConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "TextTrack", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextTrackConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextTrackConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "TextTrackCue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextTrackCueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextTrackCueConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "TextTrackCueList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextTrackCueListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextTrackCueListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "TextTrackList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTextTrackListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTextTrackListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "TrackEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowTrackEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowTrackEventConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "VTTCue", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowVTTCueConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowVTTCueConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "VTTRegion", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowVTTRegionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowVTTRegionConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "VideoTrack", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowVideoTrackConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowVideoTrackConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(VIDEO_TRACK) |
| { "VideoTrackList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowVideoTrackListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowVideoTrackListConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "ApplicationCache", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowApplicationCacheConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowApplicationCacheConstructor) } }, |
| { "BarProp", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowBarPropConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowBarPropConstructor) } }, |
| { "Crypto", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowCryptoConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowCryptoConstructor) } }, |
| { "Selection", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSelectionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSelectionConstructor) } }, |
| { "Window", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWindowConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWindowConstructor) } }, |
| { "EventSource", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowEventSourceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowEventSourceConstructor) } }, |
| { "History", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowHistoryConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowHistoryConstructor) } }, |
| { "Location", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowLocationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowLocationConstructor) } }, |
| { "Navigator", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowNavigatorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowNavigatorConstructor) } }, |
| #if ENABLE(WEB_TIMING) |
| { "Performance", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformanceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformanceConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(USER_TIMING) |
| { "PerformanceMark", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformanceMarkConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformanceMarkConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(USER_TIMING) |
| { "PerformanceMeasure", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformanceMeasureConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformanceMeasureConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_TIMING) |
| { "PerformanceNavigation", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformanceNavigationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformanceNavigationConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(WEB_TIMING) |
| { "PerformanceTiming", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPerformanceTimingConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPerformanceTimingConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "Screen", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowScreenConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowScreenConstructor) } }, |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| { "UserMessageHandler", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowUserMessageHandlerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowUserMessageHandlerConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| { "UserMessageHandlersNamespace", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowUserMessageHandlersNamespaceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowUserMessageHandlersNamespaceConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| { "WebKitNamespace", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitNamespaceConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitNamespaceConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "WebKitPoint", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWebKitPointConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWebKitPointConstructor) } }, |
| { "MimeType", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMimeTypeConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMimeTypeConstructor) } }, |
| { "MimeTypeArray", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowMimeTypeArrayConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowMimeTypeArrayConstructor) } }, |
| { "Plugin", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPluginConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPluginConstructor) } }, |
| { "PluginArray", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowPluginArrayConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowPluginArrayConstructor) } }, |
| { "Storage", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStorageConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStorageConstructor) } }, |
| { "StorageEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowStorageEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowStorageEventConstructor) } }, |
| { "SVGAElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGAltGlyphDefElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAltGlyphDefElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAltGlyphDefElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGAltGlyphElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAltGlyphElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAltGlyphElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGAltGlyphItemElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAltGlyphItemElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAltGlyphItemElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGAngle", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAngleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAngleConstructor) } }, |
| { "SVGAnimateColorElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimateColorElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimateColorElementConstructor) } }, |
| { "SVGAnimateElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimateElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimateElementConstructor) } }, |
| { "SVGAnimateMotionElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimateMotionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimateMotionElementConstructor) } }, |
| { "SVGAnimateTransformElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimateTransformElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimateTransformElementConstructor) } }, |
| { "SVGAnimatedAngle", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedAngleConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedAngleConstructor) } }, |
| { "SVGAnimatedBoolean", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedBooleanConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedBooleanConstructor) } }, |
| { "SVGAnimatedEnumeration", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedEnumerationConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedEnumerationConstructor) } }, |
| { "SVGAnimatedInteger", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedIntegerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedIntegerConstructor) } }, |
| { "SVGAnimatedLength", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedLengthConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedLengthConstructor) } }, |
| { "SVGAnimatedLengthList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedLengthListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedLengthListConstructor) } }, |
| { "SVGAnimatedNumber", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedNumberConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedNumberConstructor) } }, |
| { "SVGAnimatedNumberList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedNumberListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedNumberListConstructor) } }, |
| { "SVGAnimatedPreserveAspectRatio", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedPreserveAspectRatioConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedPreserveAspectRatioConstructor) } }, |
| { "SVGAnimatedRect", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedRectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedRectConstructor) } }, |
| { "SVGAnimatedString", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedStringConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedStringConstructor) } }, |
| { "SVGAnimatedTransformList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimatedTransformListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimatedTransformListConstructor) } }, |
| { "SVGAnimationElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGAnimationElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGAnimationElementConstructor) } }, |
| { "SVGCircleElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGCircleElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGCircleElementConstructor) } }, |
| { "SVGClipPathElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGClipPathElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGClipPathElementConstructor) } }, |
| { "SVGColor", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGColorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGColorConstructor) } }, |
| { "SVGComponentTransferFunctionElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGComponentTransferFunctionElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGComponentTransferFunctionElementConstructor) } }, |
| { "SVGCursorElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGCursorElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGCursorElementConstructor) } }, |
| { "SVGDefsElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGDefsElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGDefsElementConstructor) } }, |
| { "SVGDescElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGDescElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGDescElementConstructor) } }, |
| { "SVGElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGElementConstructor) } }, |
| { "SVGEllipseElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGEllipseElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGEllipseElementConstructor) } }, |
| { "SVGException", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGExceptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGExceptionConstructor) } }, |
| { "SVGFEBlendElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEBlendElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEBlendElementConstructor) } }, |
| { "SVGFEColorMatrixElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEColorMatrixElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEColorMatrixElementConstructor) } }, |
| { "SVGFEComponentTransferElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEComponentTransferElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEComponentTransferElementConstructor) } }, |
| { "SVGFECompositeElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFECompositeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFECompositeElementConstructor) } }, |
| { "SVGFEConvolveMatrixElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEConvolveMatrixElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEConvolveMatrixElementConstructor) } }, |
| { "SVGFEDiffuseLightingElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEDiffuseLightingElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEDiffuseLightingElementConstructor) } }, |
| { "SVGFEDisplacementMapElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEDisplacementMapElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEDisplacementMapElementConstructor) } }, |
| { "SVGFEDistantLightElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEDistantLightElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEDistantLightElementConstructor) } }, |
| { "SVGFEDropShadowElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEDropShadowElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEDropShadowElementConstructor) } }, |
| { "SVGFEFloodElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEFloodElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEFloodElementConstructor) } }, |
| { "SVGFEFuncAElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEFuncAElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEFuncAElementConstructor) } }, |
| { "SVGFEFuncBElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEFuncBElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEFuncBElementConstructor) } }, |
| { "SVGFEFuncGElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEFuncGElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEFuncGElementConstructor) } }, |
| { "SVGFEFuncRElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEFuncRElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEFuncRElementConstructor) } }, |
| { "SVGFEGaussianBlurElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEGaussianBlurElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEGaussianBlurElementConstructor) } }, |
| { "SVGFEImageElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEImageElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEImageElementConstructor) } }, |
| { "SVGFEMergeElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEMergeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEMergeElementConstructor) } }, |
| { "SVGFEMergeNodeElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEMergeNodeElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEMergeNodeElementConstructor) } }, |
| { "SVGFEMorphologyElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEMorphologyElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEMorphologyElementConstructor) } }, |
| { "SVGFEOffsetElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEOffsetElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEOffsetElementConstructor) } }, |
| { "SVGFEPointLightElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFEPointLightElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFEPointLightElementConstructor) } }, |
| { "SVGFESpecularLightingElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFESpecularLightingElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFESpecularLightingElementConstructor) } }, |
| { "SVGFESpotLightElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFESpotLightElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFESpotLightElementConstructor) } }, |
| { "SVGFETileElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFETileElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFETileElementConstructor) } }, |
| { "SVGFETurbulenceElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFETurbulenceElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFETurbulenceElementConstructor) } }, |
| { "SVGFilterElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFilterElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFilterElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontFaceElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontFaceElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontFaceElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontFaceFormatElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontFaceFormatElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontFaceFormatElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontFaceNameElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontFaceNameElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontFaceNameElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontFaceSrcElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontFaceSrcElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontFaceSrcElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGFontFaceUriElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGFontFaceUriElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGFontFaceUriElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGForeignObjectElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGForeignObjectElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGForeignObjectElementConstructor) } }, |
| { "SVGGElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGGElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGGElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGGlyphElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGGlyphElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGGlyphElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(SVG_FONTS) |
| { "SVGGlyphRefElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGGlyphRefElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGGlyphRefElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGGradientElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGGradientElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGGradientElementConstructor) } }, |
| { "SVGGraphicsElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGGraphicsElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGGraphicsElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGHKernElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGHKernElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGHKernElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGImageElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGImageElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGImageElementConstructor) } }, |
| { "SVGLength", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGLengthConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGLengthConstructor) } }, |
| { "SVGLengthList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGLengthListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGLengthListConstructor) } }, |
| { "SVGLineElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGLineElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGLineElementConstructor) } }, |
| { "SVGLinearGradientElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGLinearGradientElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGLinearGradientElementConstructor) } }, |
| { "SVGMPathElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMPathElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMPathElementConstructor) } }, |
| { "SVGMarkerElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMarkerElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMarkerElementConstructor) } }, |
| { "SVGMaskElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMaskElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMaskElementConstructor) } }, |
| { "SVGMatrix", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMatrixConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMatrixConstructor) } }, |
| { "SVGMetadataElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMetadataElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMetadataElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGMissingGlyphElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGMissingGlyphElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGMissingGlyphElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGNumber", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGNumberConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGNumberConstructor) } }, |
| { "SVGNumberList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGNumberListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGNumberListConstructor) } }, |
| { "SVGPaint", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPaintConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPaintConstructor) } }, |
| { "SVGPathElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathElementConstructor) } }, |
| { "SVGPathSeg", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegConstructor) } }, |
| { "SVGPathSegArcAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegArcAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegArcAbsConstructor) } }, |
| { "SVGPathSegArcRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegArcRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegArcRelConstructor) } }, |
| { "SVGPathSegClosePath", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegClosePathConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegClosePathConstructor) } }, |
| { "SVGPathSegCurvetoCubicAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoCubicAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoCubicAbsConstructor) } }, |
| { "SVGPathSegCurvetoCubicRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoCubicRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoCubicRelConstructor) } }, |
| { "SVGPathSegCurvetoCubicSmoothAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor) } }, |
| { "SVGPathSegCurvetoCubicSmoothRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor) } }, |
| { "SVGPathSegCurvetoQuadraticAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor) } }, |
| { "SVGPathSegCurvetoQuadraticRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoQuadraticRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoQuadraticRelConstructor) } }, |
| { "SVGPathSegCurvetoQuadraticSmoothAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor) } }, |
| { "SVGPathSegCurvetoQuadraticSmoothRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor) } }, |
| { "SVGPathSegLinetoAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoAbsConstructor) } }, |
| { "SVGPathSegLinetoHorizontalAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoHorizontalAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoHorizontalAbsConstructor) } }, |
| { "SVGPathSegLinetoHorizontalRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoHorizontalRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoHorizontalRelConstructor) } }, |
| { "SVGPathSegLinetoRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoRelConstructor) } }, |
| { "SVGPathSegLinetoVerticalAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoVerticalAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoVerticalAbsConstructor) } }, |
| { "SVGPathSegLinetoVerticalRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegLinetoVerticalRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegLinetoVerticalRelConstructor) } }, |
| { "SVGPathSegList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegListConstructor) } }, |
| { "SVGPathSegMovetoAbs", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegMovetoAbsConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegMovetoAbsConstructor) } }, |
| { "SVGPathSegMovetoRel", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPathSegMovetoRelConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPathSegMovetoRelConstructor) } }, |
| { "SVGPatternElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPatternElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPatternElementConstructor) } }, |
| { "SVGPoint", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPointConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPointConstructor) } }, |
| { "SVGPointList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPointListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPointListConstructor) } }, |
| { "SVGPolygonElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPolygonElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPolygonElementConstructor) } }, |
| { "SVGPolylineElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPolylineElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPolylineElementConstructor) } }, |
| { "SVGPreserveAspectRatio", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGPreserveAspectRatioConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGPreserveAspectRatioConstructor) } }, |
| { "SVGRadialGradientElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGRadialGradientElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGRadialGradientElementConstructor) } }, |
| { "SVGRect", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGRectConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGRectConstructor) } }, |
| { "SVGRectElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGRectElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGRectElementConstructor) } }, |
| { "SVGRenderingIntent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGRenderingIntentConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGRenderingIntentConstructor) } }, |
| { "SVGSVGElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGSVGElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGSVGElementConstructor) } }, |
| { "SVGScriptElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGScriptElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGScriptElementConstructor) } }, |
| { "SVGSetElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGSetElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGSetElementConstructor) } }, |
| { "SVGStopElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGStopElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGStopElementConstructor) } }, |
| { "SVGStringList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGStringListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGStringListConstructor) } }, |
| { "SVGStyleElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGStyleElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGStyleElementConstructor) } }, |
| { "SVGSwitchElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGSwitchElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGSwitchElementConstructor) } }, |
| { "SVGSymbolElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGSymbolElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGSymbolElementConstructor) } }, |
| { "SVGTRefElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTRefElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTRefElementConstructor) } }, |
| { "SVGTSpanElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTSpanElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTSpanElementConstructor) } }, |
| { "SVGTextContentElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTextContentElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTextContentElementConstructor) } }, |
| { "SVGTextElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTextElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTextElementConstructor) } }, |
| { "SVGTextPathElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTextPathElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTextPathElementConstructor) } }, |
| { "SVGTextPositioningElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTextPositioningElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTextPositioningElementConstructor) } }, |
| { "SVGTitleElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTitleElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTitleElementConstructor) } }, |
| { "SVGTransform", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTransformConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTransformConstructor) } }, |
| { "SVGTransformList", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGTransformListConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGTransformListConstructor) } }, |
| { "SVGUnitTypes", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGUnitTypesConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGUnitTypesConstructor) } }, |
| { "SVGUseElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGUseElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGUseElementConstructor) } }, |
| #if ENABLE(SVG_FONTS) |
| { "SVGVKernElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGVKernElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGVKernElementConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "SVGViewElement", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGViewElementConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGViewElementConstructor) } }, |
| { "SVGViewSpec", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGViewSpecConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGViewSpecConstructor) } }, |
| { "SVGZoomEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowSVGZoomEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowSVGZoomEventConstructor) } }, |
| { "Worker", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowWorkerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowWorkerConstructor) } }, |
| { "DOMParser", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowDOMParserConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowDOMParserConstructor) } }, |
| { "XMLHttpRequest", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLHttpRequestConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLHttpRequestConstructor) } }, |
| { "XMLHttpRequestEventTarget", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLHttpRequestEventTargetConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLHttpRequestEventTargetConstructor) } }, |
| { "XMLHttpRequestProgressEvent", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLHttpRequestProgressEventConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLHttpRequestProgressEventConstructor) } }, |
| { "XMLHttpRequestUpload", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLHttpRequestUploadConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLHttpRequestUploadConstructor) } }, |
| { "XMLSerializer", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXMLSerializerConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXMLSerializerConstructor) } }, |
| { "XPathEvaluator", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXPathEvaluatorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXPathEvaluatorConstructor) } }, |
| { "XPathException", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXPathExceptionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXPathExceptionConstructor) } }, |
| { "XPathExpression", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXPathExpressionConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXPathExpressionConstructor) } }, |
| { "XPathResult", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXPathResultConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXPathResultConstructor) } }, |
| #if ENABLE(XSLT) |
| { "XSLTProcessor", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowXSLTProcessorConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowXSLTProcessorConstructor) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "getSelection", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionGetSelection), (intptr_t) (0) } }, |
| { "focus", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionFocus), (intptr_t) (0) } }, |
| { "blur", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionBlur), (intptr_t) (0) } }, |
| { "close", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionClose), (intptr_t) (0) } }, |
| { "print", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionPrint), (intptr_t) (0) } }, |
| { "stop", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionStop), (intptr_t) (0) } }, |
| { "open", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionOpen), (intptr_t) (0) } }, |
| { "showModalDialog", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionShowModalDialog), (intptr_t) (1) } }, |
| { "alert", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionAlert), (intptr_t) (0) } }, |
| { "confirm", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionConfirm), (intptr_t) (0) } }, |
| { "prompt", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionPrompt), (intptr_t) (0) } }, |
| { "find", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionFind), (intptr_t) (0) } }, |
| { "scrollBy", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionScrollBy), (intptr_t) (0) } }, |
| { "scrollTo", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionScrollTo), (intptr_t) (0) } }, |
| { "scroll", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionScroll), (intptr_t) (0) } }, |
| { "moveBy", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionMoveBy), (intptr_t) (0) } }, |
| { "moveTo", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionMoveTo), (intptr_t) (0) } }, |
| { "resizeBy", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionResizeBy), (intptr_t) (0) } }, |
| { "resizeTo", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionResizeTo), (intptr_t) (0) } }, |
| { "matchMedia", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionMatchMedia), (intptr_t) (1) } }, |
| { "getComputedStyle", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionGetComputedStyle), (intptr_t) (1) } }, |
| { "getMatchedCSSRules", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionGetMatchedCSSRules), (intptr_t) (0) } }, |
| { "webkitConvertPointFromPageToNode", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionWebkitConvertPointFromPageToNode), (intptr_t) (0) } }, |
| { "webkitConvertPointFromNodeToPage", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionWebkitConvertPointFromNodeToPage), (intptr_t) (0) } }, |
| { "postMessage", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionPostMessage), (intptr_t) (2) } }, |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| { "requestAnimationFrame", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionRequestAnimationFrame), (intptr_t) (1) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| { "cancelAnimationFrame", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionCancelAnimationFrame), (intptr_t) (1) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| { "webkitRequestAnimationFrame", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionWebkitRequestAnimationFrame), (intptr_t) (1) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| { "webkitCancelAnimationFrame", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionWebkitCancelAnimationFrame), (intptr_t) (1) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| { "webkitCancelRequestAnimationFrame", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionWebkitCancelRequestAnimationFrame), (intptr_t) (1) } }, |
| #else |
| { 0, 0, NoIntrinsic, { 0, 0 } }, |
| #endif |
| { "captureEvents", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionCaptureEvents), (intptr_t) (0) } }, |
| { "releaseEvents", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionReleaseEvents), (intptr_t) (0) } }, |
| { "openDatabase", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionOpenDatabase), (intptr_t) (4) } }, |
| { "setTimeout", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionSetTimeout), (intptr_t) (1) } }, |
| { "clearTimeout", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionClearTimeout), (intptr_t) (0) } }, |
| { "setInterval", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionSetInterval), (intptr_t) (1) } }, |
| { "clearInterval", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionClearInterval), (intptr_t) (0) } }, |
| { "atob", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionAtob), (intptr_t) (1) } }, |
| { "btoa", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsDOMWindowInstanceFunctionBtoa), (intptr_t) (1) } }, |
| }; |
| |
| static const HashTable JSDOMWindowTable = { 631, 2047, true, JSDOMWindowTableValues, JSDOMWindowTableIndex }; |
| template<> JSValue JSDOMWindowConstructor::prototypeForStructure(JSC::VM& vm, const JSDOMGlobalObject& globalObject) |
| { |
| return JSEventTarget::getConstructor(vm, &globalObject); |
| } |
| |
| template<> void JSDOMWindowConstructor::initializeProperties(VM& vm, JSDOMGlobalObject& globalObject) |
| { |
| putDirect(vm, vm.propertyNames->prototype, globalObject.getPrototypeDirect(), DontDelete | ReadOnly | DontEnum); |
| putDirect(vm, vm.propertyNames->name, jsNontrivialString(&vm, String(ASCIILiteral("Window"))), ReadOnly | DontEnum); |
| putDirect(vm, vm.propertyNames->length, jsNumber(0), ReadOnly | DontEnum); |
| } |
| |
| template<> const ClassInfo JSDOMWindowConstructor::s_info = { "Window", &Base::s_info, 0, CREATE_METHOD_TABLE(JSDOMWindowConstructor) }; |
| |
| /* Hash table for prototype */ |
| |
| static const struct CompactHashIndex JSDOMWindowPrototypeTableIndex[2] = { |
| { -1, -1 }, |
| { 0, -1 }, |
| }; |
| |
| |
| static const HashTableValue JSDOMWindowPrototypeTableValues[] = |
| { |
| { "constructor", DontEnum, NoIntrinsic, { (intptr_t)static_cast<PropertySlot::GetValueFunc>(jsDOMWindowConstructor), (intptr_t) static_cast<PutPropertySlot::PutValueFunc>(setJSDOMWindowConstructor) } }, |
| }; |
| |
| static const HashTable JSDOMWindowPrototypeTable = { 1, 1, true, JSDOMWindowPrototypeTableValues, JSDOMWindowPrototypeTableIndex }; |
| const ClassInfo JSDOMWindowPrototype::s_info = { "WindowPrototype", &Base::s_info, &JSDOMWindowPrototypeTable, CREATE_METHOD_TABLE(JSDOMWindowPrototype) }; |
| |
| const ClassInfo JSDOMWindow::s_info = { "Window", &Base::s_info, &JSDOMWindowTable, CREATE_METHOD_TABLE(JSDOMWindow) }; |
| |
| JSDOMWindow::JSDOMWindow(VM& vm, Structure* structure, Ref<DOMWindow>&& impl, JSDOMWindowShell* shell) |
| : JSDOMWindowBase(vm, structure, WTFMove(impl), shell) |
| { |
| } |
| |
| void JSDOMWindow::finishCreation(VM& vm, JSDOMWindowShell* shell) |
| { |
| Base::finishCreation(vm, shell); |
| |
| #if ENABLE(CUSTOM_ELEMENTS) |
| if (RuntimeEnabledFeatures::sharedFeatures().customElementsEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowCustomElements, nullptr); |
| putDirectCustomAccessor(vm, vm.propertyNames->customElements, customGetterSetter, attributesForStructure(ReadOnly | CustomAccessor)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIndexedDB, nullptr); |
| putDirectCustomAccessor(vm, vm.propertyNames->indexedDB, customGetterSetter, attributesForStructure(ReadOnly | CustomAccessor)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowWebkitIndexedDB, nullptr); |
| putDirectCustomAccessor(vm, vm.propertyNames->webkitIndexedDB, customGetterSetter, attributesForStructure(ReadOnly | CustomAccessor)); |
| } |
| #endif |
| #if ENABLE(FETCH_API) |
| if (RuntimeEnabledFeatures::sharedFeatures().fetchAPIEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowHeadersConstructor, setJSDOMWindowHeadersConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->Headers, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(FETCH_API) |
| if (RuntimeEnabledFeatures::sharedFeatures().fetchAPIEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowRequestConstructor, setJSDOMWindowRequestConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->Request, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(FETCH_API) |
| if (RuntimeEnabledFeatures::sharedFeatures().fetchAPIEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowResponseConstructor, setJSDOMWindowResponseConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->Response, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBCursorConstructor, setJSDOMWindowIDBCursorConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBCursor, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBCursorWithValueConstructor, setJSDOMWindowIDBCursorWithValueConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBCursorWithValue, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBDatabaseConstructor, setJSDOMWindowIDBDatabaseConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBDatabase, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBFactoryConstructor, setJSDOMWindowIDBFactoryConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBFactory, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBIndexConstructor, setJSDOMWindowIDBIndexConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBIndex, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBKeyRangeConstructor, setJSDOMWindowIDBKeyRangeConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBKeyRange, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBObjectStoreConstructor, setJSDOMWindowIDBObjectStoreConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBObjectStore, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBOpenDBRequestConstructor, setJSDOMWindowIDBOpenDBRequestConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBOpenDBRequest, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBRequestConstructor, setJSDOMWindowIDBRequestConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBRequest, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBTransactionConstructor, setJSDOMWindowIDBTransactionConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBTransaction, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(INDEXED_DATABASE) |
| if (RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowIDBVersionChangeEventConstructor, setJSDOMWindowIDBVersionChangeEventConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->IDBVersionChangeEvent, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(WEB_SOCKETS) |
| if (RuntimeEnabledFeatures::sharedFeatures().webSocketEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowWebSocketConstructor, setJSDOMWindowWebSocketConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->WebSocket, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(CUSTOM_ELEMENTS) |
| if (RuntimeEnabledFeatures::sharedFeatures().customElementsEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowCustomElementRegistryConstructor, setJSDOMWindowCustomElementRegistryConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->CustomElementRegistry, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| if (RuntimeEnabledFeatures::sharedFeatures().shadowDOMEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowShadowRootConstructor, setJSDOMWindowShadowRootConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->ShadowRoot, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #if ENABLE(VIDEO) |
| if (RuntimeEnabledFeatures::sharedFeatures().htmlAudioElementEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowHTMLAudioElementConstructor, setJSDOMWindowHTMLAudioElementConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->HTMLAudioElement, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(VIDEO) |
| if (RuntimeEnabledFeatures::sharedFeatures().audioEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowAudioConstructor, setJSDOMWindowAudioConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->Audio, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| if (RuntimeEnabledFeatures::sharedFeatures().shadowDOMEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowHTMLSlotElementConstructor, setJSDOMWindowHTMLSlotElementConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->HTMLSlotElement, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #if ENABLE(WEB_TIMING) |
| if (RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowPerformanceEntryConstructor, setJSDOMWindowPerformanceEntryConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->PerformanceEntry, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(WEB_TIMING) |
| if (RuntimeEnabledFeatures::sharedFeatures().resourceTimingEnabled()) { |
| auto* customGetterSetter = CustomGetterSetter::create(vm, jsDOMWindowPerformanceResourceTimingConstructor, setJSDOMWindowPerformanceResourceTimingConstructor); |
| putDirectCustomAccessor(vm, vm.propertyNames->PerformanceResourceTiming, customGetterSetter, attributesForStructure(DontEnum)); |
| } |
| #endif |
| #if ENABLE(FETCH_API) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().HeadersPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowHeadersConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(FETCH_API) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().RequestPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowRequestConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(FETCH_API) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().ResponsePrivateName(), CustomGetterSetter::create(vm, jsDOMWindowResponseConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().MediaStreamPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowMediaStreamConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(MEDIA_STREAM) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().MediaStreamTrackPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowMediaStreamTrackConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(WEB_RTC) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().RTCIceCandidatePrivateName(), CustomGetterSetter::create(vm, jsDOMWindowRTCIceCandidateConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(WEB_RTC) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().RTCSessionDescriptionPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowRTCSessionDescriptionConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| #if ENABLE(READABLE_STREAM_API) |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().ReadableStreamPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowReadableStreamConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #endif |
| putDirectCustomAccessor(vm, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().XMLHttpRequestPrivateName(), CustomGetterSetter::create(vm, jsDOMWindowXMLHttpRequestConstructor, nullptr), attributesForStructure(DontDelete | ReadOnly)); |
| #if ENABLE(FETCH_API) |
| if (RuntimeEnabledFeatures::sharedFeatures().fetchAPIEnabled()) |
| putDirectBuiltinFunction(vm, this, vm.propertyNames->fetch, domWindowFetchFetchCodeGenerator(vm), attributesForStructure(JSC::Builtin)); |
| #endif |
| #if ENABLE(FETCH_API) |
| if (RuntimeEnabledFeatures::sharedFeatures().fetchAPIEnabled()) |
| putDirectNativeFunction(vm, this, static_cast<JSVMClientData*>(vm.clientData)->builtinNames().fetchRequestPrivateName(), 1, jsDOMWindowInstanceFunctionFetchRequest, NoIntrinsic, attributesForStructure(JSC::Function)); |
| #endif |
| } |
| |
| EncodedJSValue jsDOMWindowScreen(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "screen"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.screen()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHistory(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "history"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.history()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowLocationbar(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "locationbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.locationbar()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMenubar(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "menubar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.menubar()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPersonalbar(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "personalbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.personalbar()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScrollbars(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "scrollbars"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.scrollbars()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStatusbar(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "statusbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.statusbar()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowToolbar(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "toolbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.toolbar()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNavigator(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "navigator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.navigator()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowClientInformation(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "clientInformation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.clientInformation()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowLocation(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "location"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.location()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowEvent(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "event"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->event(*state)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFrameElement(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "frameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| return JSValue::encode(shouldAllowAccessToNode(state, impl.frameElement()) ? toJS(state, castedThis->globalObject(), impl.frameElement()) : jsNull()); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOffscreenBuffering(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "offscreenBuffering"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsBoolean(impl.offscreenBuffering()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOuterHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "outerHeight"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.outerHeight()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOuterWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "outerWidth"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.outerWidth()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowInnerHeight(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "innerHeight"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.innerHeight()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowInnerWidth(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "innerWidth"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.innerWidth()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScreenX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "screenX"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.screenX()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScreenY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "screenY"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.screenY()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScreenLeft(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "screenLeft"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.screenLeft()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScreenTop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "screenTop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.screenTop()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScrollX(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "scrollX"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.scrollX()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowScrollY(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "scrollY"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.scrollY()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPageXOffset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "pageXOffset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.scrollX()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPageYOffset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "pageYOffset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.scrollY()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowClosed(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "closed"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsBoolean(impl.closed()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowLength(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "length"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.length()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowName(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "name"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsStringWithCache(state, impl.name()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStatus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "status"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsStringWithCache(state, impl.status()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDefaultStatus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "defaultStatus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsStringWithCache(state, impl.defaultStatus()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDefaultstatus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "defaultstatus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsStringWithCache(state, impl.defaultStatus()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSelf(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "self"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.self()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWindow(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "window"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.window()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFrames(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "frames"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.frames()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOpener(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "opener"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.opener()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowParent(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "parent"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.parent()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowTop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "top"); |
| } |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.top()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDocument(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "document"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.document()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStyleMedia(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "styleMedia"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.styleMedia()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDevicePixelRatio(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "devicePixelRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.devicePixelRatio()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowApplicationCache(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "applicationCache"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.applicationCache()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSessionStorage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "sessionStorage"); |
| } |
| ExceptionCode ec = 0; |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.sessionStorage(ec)); |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowLocalStorage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "localStorage"); |
| } |
| ExceptionCode ec = 0; |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.localStorage(ec)); |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| |
| #if ENABLE(ORIENTATION_EVENTS) |
| EncodedJSValue jsDOMWindowOrientation(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "orientation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = jsNumber(impl.orientation()); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformance(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "performance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.performance()); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowImageConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Image"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->image(*state)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGDocumentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLDocument::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebkitURLConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitURL"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMURL::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebKitMutationObserverConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitMutationObserver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMutationObserver::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CUSTOM_ELEMENTS) |
| EncodedJSValue jsDOMWindowCustomElements(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "customElements"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.ensureCustomElementRegistry()); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowOnanimationend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onanimationend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().animationendEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnanimationiteration(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onanimationiteration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().animationiterationEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnanimationstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onanimationstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().animationstartEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOntransitionend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontransitionend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().transitionendEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwebkitanimationend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitanimationend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitAnimationEndEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwebkitanimationiteration(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitanimationiteration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitAnimationIterationEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwebkitanimationstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitanimationstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitAnimationStartEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwebkittransitionend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkittransitionend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitTransitionEndEvent)); |
| } |
| |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| EncodedJSValue jsDOMWindowOngesturechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ongesturechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().gesturechangeEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| EncodedJSValue jsDOMWindowOngestureend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ongestureend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().gestureendEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| EncodedJSValue jsDOMWindowOngesturestart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ongesturestart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().gesturestartEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| EncodedJSValue jsDOMWindowOndevicemotion(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondevicemotion"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().devicemotionEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| EncodedJSValue jsDOMWindowOndeviceorientation(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondeviceorientation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().deviceorientationEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(PROXIMITY_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitdeviceproximity(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitdeviceproximity"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitdeviceproximityEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIndexedDB(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "indexedDB"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), WebCore::DOMWindowIndexedDatabase::indexedDB(impl)); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowWebkitIndexedDB(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitIndexedDB"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), WebCore::DOMWindowIndexedDatabase::indexedDB(impl)); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| EncodedJSValue jsDOMWindowSpeechSynthesis(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "speechSynthesis"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), WebCore::DOMWindowSpeechSynthesis::speechSynthesis(impl)); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowOnabort(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onabort"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().abortEvent)); |
| } |
| |
| |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| EncodedJSValue jsDOMWindowOnautocomplete(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onautocomplete"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().autocompleteEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| EncodedJSValue jsDOMWindowOnautocompleteerror(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onautocompleteerror"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().autocompleteerrorEvent)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowOnblur(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onblur"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().blurEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOncanplay(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oncanplay"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().canplayEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOncanplaythrough(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oncanplaythrough"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().canplaythroughEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().changeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnclick(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onclick"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().clickEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOncontextmenu(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oncontextmenu"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().contextmenuEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOncuechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oncuechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().cuechangeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndblclick(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondblclick"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dblclickEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndrag(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondrag"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndragend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondragend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragendEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndragenter(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondragenter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragenterEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndragleave(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondragleave"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragleaveEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndragover(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondragover"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragoverEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndragstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondragstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dragstartEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndrop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondrop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().dropEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOndurationchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ondurationchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().durationchangeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnemptied(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onemptied"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().emptiedEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnended(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onended"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().endedEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnerror(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onerror"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().errorEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnfocus(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onfocus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().focusEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOninput(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oninput"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().inputEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOninvalid(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "oninvalid"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().invalidEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnkeydown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onkeydown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().keydownEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnkeypress(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onkeypress"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().keypressEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnkeyup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onkeyup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().keyupEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().loadEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnloadeddata(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onloadeddata"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().loadeddataEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnloadedmetadata(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onloadedmetadata"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().loadedmetadataEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnloadstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onloadstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().loadstartEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmousedown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmousedown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mousedownEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmouseenter(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return JSValue::encode(jsUndefined()); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mouseenterEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmouseleave(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return JSValue::encode(jsUndefined()); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mouseleaveEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmousemove(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmousemove"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mousemoveEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmouseout(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmouseout"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mouseoutEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmouseover(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmouseover"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mouseoverEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmouseup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmouseup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mouseupEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmousewheel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmousewheel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().mousewheelEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnpause(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onpause"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().pauseEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnplay(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onplay"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().playEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnplaying(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onplaying"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().playingEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnprogress(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onprogress"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().progressEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnratechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onratechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().ratechangeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnreset(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onreset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().resetEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnresize(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onresize"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().resizeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnscroll(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onscroll"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().scrollEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnseeked(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onseeked"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().seekedEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnseeking(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onseeking"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().seekingEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnselect(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onselect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().selectEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnstalled(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onstalled"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().stalledEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnsubmit(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onsubmit"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().submitEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnsuspend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onsuspend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().suspendEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOntimeupdate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontimeupdate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().timeupdateEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnvolumechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onvolumechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().volumechangeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwaiting(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwaiting"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().waitingEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnsearch(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onsearch"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().searchEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnwheel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwheel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().wheelEvent)); |
| } |
| |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowOntouchcancel(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontouchcancel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().touchcancelEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowOntouchend(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontouchend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().touchendEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowOntouchmove(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontouchmove"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().touchmoveEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowOntouchstart(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontouchstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().touchstartEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowOntouchforcechange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ontouchforcechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().touchforcechangeEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcechanged"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitmouseforcechangedEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcedown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitmouseforcedownEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcewillbegin"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitmouseforcewillbeginEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitmouseforceup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitmouseforceupEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitwillrevealbottom(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealbottom"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitwillrevealbottomEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitwillrevealleft(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealleft"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitwillrevealleftEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitwillrevealright(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealright"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitwillrevealrightEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| EncodedJSValue jsDOMWindowOnwebkitwillrevealtop(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealtop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(eventHandlerAttribute(castedThis->wrapped(), eventNames().webkitwillrevealtopEvent)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowCrypto(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "crypto"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.crypto()); |
| return JSValue::encode(result); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnbeforeunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onbeforeunload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().beforeunloadEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnhashchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onhashchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().hashchangeEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnmessage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onmessage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().messageEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnoffline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onoffline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().offlineEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnonline(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ononline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().onlineEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnpagehide(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onpagehide"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().pagehideEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnpageshow(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onpageshow"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().pageshowEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnpopstate(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onpopstate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().popstateEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnstorage(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onstorage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().storageEvent)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOnunload(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onunload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().unloadEvent)); |
| } |
| |
| |
| #if ENABLE(ORIENTATION_EVENTS) |
| EncodedJSValue jsDOMWindowOnorientationchange(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "onorientationchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| UNUSED_PARAM(state); |
| return JSValue::encode(windowEventHandlerAttribute(castedThis->wrapped(), eventNames().orientationchangeEvent)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| EncodedJSValue jsDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitPlaybackTargetAvailabilityEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitPlaybackTargetAvailabilityEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| EncodedJSValue jsDOMWindowHeadersConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Headers"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFetchHeaders::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| EncodedJSValue jsDOMWindowRequestConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Request"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFetchRequest::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| EncodedJSValue jsDOMWindowResponseConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Response"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFetchResponse::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBCursorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBCursor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBCursor::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBCursorWithValueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBCursorWithValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBCursorWithValue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBDatabaseConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBDatabase"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBDatabase::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBFactoryConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBFactory"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBFactory::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBIndexConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBIndex"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBIndex::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBKeyRangeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBKeyRange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBKeyRange::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBObjectStoreConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBObjectStore"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBObjectStore::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBOpenDBRequestConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBOpenDBRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBOpenDBRequest::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBRequestConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBRequest::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBTransactionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBTransaction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBTransaction::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| EncodedJSValue jsDOMWindowIDBVersionChangeEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "IDBVersionChangeEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSIDBVersionChangeEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDIE_UI) |
| EncodedJSValue jsDOMWindowUIRequestEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "UIRequestEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSUIRequestEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SESSION) |
| EncodedJSValue jsDOMWindowMediaRemoteControlsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaRemoteControls"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaRemoteControls::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SESSION) |
| EncodedJSValue jsDOMWindowMediaSessionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaSession"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaSession::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| EncodedJSValue jsDOMWindowMediaSourceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaSource"); |
| } |
| if (UNLIKELY(!castedThis->wrapped().frame())) |
| return JSValue::encode(jsUndefined()); |
| Settings& settings = castedThis->wrapped().frame()->settings(); |
| if (!settings.mediaSourceEnabled()) |
| return JSValue::encode(jsUndefined()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaSource::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| EncodedJSValue jsDOMWindowSourceBufferConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SourceBuffer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSourceBuffer::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| EncodedJSValue jsDOMWindowSourceBufferListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SourceBufferList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSourceBufferList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| EncodedJSValue jsDOMWindowMediaStreamConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStream::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowMediaStreamEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStreamEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStreamEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| EncodedJSValue jsDOMWindowMediaStreamTrackConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStreamTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStreamTrack::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| EncodedJSValue jsDOMWindowMediaStreamTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStreamTrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStreamTrackEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| EncodedJSValue jsDOMWindowOverconstrainedErrorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "OverconstrainedError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOverconstrainedError::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| EncodedJSValue jsDOMWindowOverconstrainedErrorEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "OverconstrainedErrorEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOverconstrainedErrorEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCIceCandidateConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCIceCandidate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCIceCandidate::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowWebkitRTCPeerConnectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitRTCPeerConnection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCPeerConnection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCRtpReceiverConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCRtpReceiver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCRtpReceiver::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCRtpSenderConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCRtpSender"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCRtpSender::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCRtpTransceiverConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCRtpTransceiver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCRtpTransceiver::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCSessionDescriptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCSessionDescription"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCSessionDescription::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| EncodedJSValue jsDOMWindowRTCTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RTCTrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRTCTrackEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(LEGACY_NOTIFICATIONS) || ENABLE(NOTIFICATIONS) |
| EncodedJSValue jsDOMWindowNotificationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Notification"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNotification::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(PROXIMITY_EVENTS) |
| EncodedJSValue jsDOMWindowDeviceProximityEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DeviceProximityEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDeviceProximityEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| EncodedJSValue jsDOMWindowSpeechSynthesisEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SpeechSynthesisEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSpeechSynthesisEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| EncodedJSValue jsDOMWindowSpeechSynthesisUtteranceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SpeechSynthesisUtterance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSpeechSynthesisUtterance::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| EncodedJSValue jsDOMWindowByteLengthQueuingStrategyConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ByteLengthQueuingStrategy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSByteLengthQueuingStrategy::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| EncodedJSValue jsDOMWindowCountQueuingStrategyConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CountQueuingStrategy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCountQueuingStrategy::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) |
| EncodedJSValue jsDOMWindowReadableStreamConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ReadableStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSReadableStream::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WRITABLE_STREAM_API) |
| EncodedJSValue jsDOMWindowWritableStreamConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WritableStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWritableStream::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAnalyserNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AnalyserNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAnalyserNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioBufferConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioBuffer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioBuffer::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioBufferSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioBufferSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioBufferSourceNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowWebkitAudioContextConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitAudioContext"); |
| } |
| if (UNLIKELY(!castedThis->wrapped().frame())) |
| return JSValue::encode(jsUndefined()); |
| Settings& settings = castedThis->wrapped().frame()->settings(); |
| if (!settings.webAudioEnabled()) |
| return JSValue::encode(jsUndefined()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioContext::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioDestinationNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioDestinationNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioDestinationNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioListenerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioListener"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioListener::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioParamConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioParam"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioParam::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowAudioProcessingEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioProcessingEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioProcessingEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowBiquadFilterNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "BiquadFilterNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSBiquadFilterNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowChannelMergerNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ChannelMergerNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSChannelMergerNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowChannelSplitterNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ChannelSplitterNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSChannelSplitterNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowConvolverNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ConvolverNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSConvolverNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowDelayNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DelayNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDelayNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowDynamicsCompressorNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DynamicsCompressorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDynamicsCompressorNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowGainNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "GainNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSGainNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) && ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowMediaElementAudioSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaElementAudioSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaElementAudioSourceNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowMediaStreamAudioDestinationNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStreamAudioDestinationNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStreamAudioDestinationNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowMediaStreamAudioSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaStreamAudioSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaStreamAudioSourceNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowOfflineAudioCompletionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "OfflineAudioCompletionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOfflineAudioCompletionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowWebkitOfflineAudioContextConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitOfflineAudioContext"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOfflineAudioContext::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowOscillatorNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "OscillatorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOscillatorNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowWebkitAudioPannerNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "webkitAudioPannerNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPannerNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowPeriodicWaveConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PeriodicWave"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPeriodicWave::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowScriptProcessorNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ScriptProcessorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSScriptProcessorNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| EncodedJSValue jsDOMWindowWaveShaperNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WaveShaperNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWaveShaperNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowDatabaseConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Database"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDatabase::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSQLErrorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SQLError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSQLError::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSQLExceptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SQLException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSQLException::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSQLResultSetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SQLResultSet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSQLResultSet::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSQLResultSetRowListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SQLResultSetRowList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSQLResultSetRowList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSQLTransactionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SQLTransaction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSQLTransaction::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCloseEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CloseEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCloseEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(WEB_SOCKETS) |
| EncodedJSValue jsDOMWindowWebSocketConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebSocket"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebSocket::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| EncodedJSValue jsDOMWindowAnimationEffectReadOnlyConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AnimationEffectReadOnly"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAnimationEffect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| EncodedJSValue jsDOMWindowAnimationTimelineConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AnimationTimeline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAnimationTimeline::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| EncodedJSValue jsDOMWindowDocumentTimelineConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DocumentTimeline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDocumentTimeline::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| EncodedJSValue jsDOMWindowKeyframeEffectConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "KeyframeEffect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSKeyframeEffect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| EncodedJSValue jsDOMWindowAnimationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Animation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebAnimation::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SUBTLE_CRYPTO) |
| EncodedJSValue jsDOMWindowCryptoKeyConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CryptoKey"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCryptoKey::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowCSSCharsetRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSCharsetRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSCharsetRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSFontFaceRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSFontFaceRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSFontFaceRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSImportRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSImportRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSImportRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSKeyframeRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSKeyframeRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSKeyframeRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSKeyframesRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSKeyframesRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSKeyframesRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSMediaRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSMediaRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSMediaRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSPageRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSPageRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSPageRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSPrimitiveValueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSPrimitiveValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSPrimitiveValue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSRuleListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSRuleList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSRuleList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSStyleDeclarationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSStyleDeclaration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSStyleDeclaration::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSStyleRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSStyleRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSStyleRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSStyleSheetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSStyleSheet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSStyleSheet::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSSupportsRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSSupportsRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSSupportsRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSValueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSValue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSValueListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSSValueList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCSSValueList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCounterConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Counter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCounter::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCSSConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CSS"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMCSSNamespace::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFontFaceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FontFace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFontFace::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFontFaceSetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FontFaceSet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFontFaceSet::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMediaListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowRGBColorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RGBColor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRGBColor::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowRectConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Rect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStyleSheetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "StyleSheet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSStyleSheet::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStyleSheetListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "StyleSheetList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSStyleSheetList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebKitCSSFilterValueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitCSSFilterValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitCSSFilterValue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebKitCSSMatrixConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitCSSMatrix"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitCSSMatrix::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CSS_REGIONS) |
| EncodedJSValue jsDOMWindowWebKitCSSRegionRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitCSSRegionRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitCSSRegionRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowWebKitCSSTransformValueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitCSSTransformValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitCSSTransformValue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CSS_DEVICE_ADAPTATION) |
| EncodedJSValue jsDOMWindowWebKitCSSViewportRuleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitCSSViewportRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitCSSViewportRule::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowAnimationEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AnimationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAnimationEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowAttrConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Attr"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAttr::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowBeforeLoadEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "BeforeLoadEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSBeforeLoadEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowBeforeUnloadEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "BeforeUnloadEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSBeforeUnloadEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCDATASectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CDATASection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCDATASection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCharacterDataConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CharacterData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCharacterData::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowClientRectConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ClientRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSClientRect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowClientRectListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ClientRectList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSClientRectList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCommentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Comment"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSComment::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCompositionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CompositionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCompositionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CUSTOM_ELEMENTS) |
| EncodedJSValue jsDOMWindowCustomElementRegistryConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CustomElementRegistry"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCustomElementRegistry::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowCustomEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CustomEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCustomEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMExceptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMCoreException::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMImplementationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMImplementation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMImplementation::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMStringListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMStringList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMStringList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMStringMapConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMStringMap"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMStringMap::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDataTransferConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DataTransfer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDataTransfer::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| EncodedJSValue jsDOMWindowDeviceMotionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DeviceMotionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDeviceMotionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| EncodedJSValue jsDOMWindowDeviceOrientationEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DeviceOrientationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDeviceOrientationEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowDocumentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Document"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDocument::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDocumentFragmentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DocumentFragment"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDocumentFragment::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDocumentTypeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DocumentType"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDocumentType::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Element"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowErrorEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ErrorEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSErrorEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Event"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowEventTargetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "EventTarget"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSEventTarget::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFocusEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FocusEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFocusEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHashChangeEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HashChangeEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHashChangeEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowKeyboardEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "KeyboardEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSKeyboardEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CHANNEL_MESSAGING) |
| EncodedJSValue jsDOMWindowMessageChannelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MessageChannel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMessageChannel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowMessageEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MessageEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMessageEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMessagePortConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MessagePort"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMessagePort::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMouseEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MouseEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMouseEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMutationEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MutationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMutationEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMutationObserverConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MutationObserver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMutationObserver::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMutationRecordConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MutationRecord"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMutationRecord::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNamedNodeMapConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "NamedNodeMap"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNamedNodeMap::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNodeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Node"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNode::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNodeFilterConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "NodeFilter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNodeFilter::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNodeIteratorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "NodeIterator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNodeIterator::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNodeListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "NodeList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNodeList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOverflowEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "OverflowEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSOverflowEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPageTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PageTransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPageTransitionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPopStateEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PopStateEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPopStateEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowProcessingInstructionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ProcessingInstruction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSProcessingInstruction::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowProgressEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ProgressEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSProgressEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowRangeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Range"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRange::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSecurityPolicyViolationEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SecurityPolicyViolationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSecurityPolicyViolationEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowShadowRootConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ShadowRoot"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSShadowRoot::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowTextConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Text"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSText::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowTextEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowTouchConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Touch"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTouch::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowTouchEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TouchEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTouchEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| EncodedJSValue jsDOMWindowTouchListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TouchList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTouchList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTransitionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowTreeWalkerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TreeWalker"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTreeWalker::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowUIEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "UIEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSUIEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebKitAnimationEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitAnimationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitAnimationEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWebKitTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitTransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitTransitionEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWheelEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WheelEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWheelEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLDocumentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLDocument::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowBlobConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Blob"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSBlob::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFileConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "File"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFile::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFileErrorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FileError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFileError::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFileListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FileList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFileList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFileReaderConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FileReader"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSFileReader::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowFormDataConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "FormData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMFormData::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMTokenListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMTokenList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMTokenList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowURLConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "URL"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMURL::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLAllCollectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAllCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAllCollection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLAnchorElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAnchorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAnchorElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLAppletElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAppletElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAppletElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLAreaElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAreaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAreaElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(ATTACHMENT_ELEMENT) |
| EncodedJSValue jsDOMWindowHTMLAttachmentElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAttachmentElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAttachmentElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowHTMLAudioElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLAudioElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAudioElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowAudioConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Audio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLAudioElement::getNamedConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowHTMLBRElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLBRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLBRElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLBaseElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLBaseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLBaseElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLBodyElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLBodyElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLBodyElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLButtonElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLButtonElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLButtonElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLCanvasElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLCanvasElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLCanvasElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLCollectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLCollection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLDListElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDListElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLDataElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDataElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDataElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(DATALIST_ELEMENT) |
| EncodedJSValue jsDOMWindowHTMLDataListElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDataListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDataListElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(DETAILS_ELEMENT) |
| EncodedJSValue jsDOMWindowHTMLDetailsElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDetailsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDetailsElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowHTMLDirectoryElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDirectoryElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDirectoryElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLDivElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDivElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDivElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLDocumentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLDocument::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLEmbedElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLEmbedElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLEmbedElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFieldSetElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFieldSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFieldSetElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFontElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFontElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFontElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFormControlsCollectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFormControlsCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFormControlsCollection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFormElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFormElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFormElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFrameElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFrameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFrameElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLFrameSetElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLFrameSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLFrameSetElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLHRElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLHRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLHRElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLHeadElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLHeadElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLHeadElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLHeadingElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLHeadingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLHeadingElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLHtmlElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLHtmlElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLHtmlElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLIFrameElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLIFrameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLIFrameElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLImageElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLImageElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLInputElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLInputElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLInputElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLKeygenElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLKeygenElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLKeygenElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLLIElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLLIElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLLIElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLLabelElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLLabelElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLLabelElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLLegendElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLLegendElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLLegendElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLLinkElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLLinkElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLLinkElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLMapElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMapElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMapElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLMarqueeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMarqueeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMarqueeElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowHTMLMediaElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMediaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMediaElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowHTMLMenuElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMenuElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMenuElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLMetaElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMetaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMetaElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(METER_ELEMENT) |
| EncodedJSValue jsDOMWindowHTMLMeterElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLMeterElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLMeterElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowHTMLModElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLModElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLModElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLOListElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLOListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOListElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLObjectElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLObjectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLObjectElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLOptGroupElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLOptGroupElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOptGroupElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLOptionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLOptionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOptionElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowOptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Option"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOptionElement::getNamedConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLOptionsCollectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLOptionsCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOptionsCollection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLOutputElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLOutputElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLOutputElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLParagraphElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLParagraphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLParagraphElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLParamElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLParamElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLParamElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLPictureElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLPictureElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLPictureElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLPreElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLPreElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLPreElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLProgressElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLProgressElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLProgressElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLQuoteElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLQuoteElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLQuoteElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLScriptElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLScriptElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLScriptElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLSelectElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLSelectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLSelectElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLSlotElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLSlotElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLSlotElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLSourceElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLSourceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLSourceElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLSpanElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLSpanElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLSpanElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLStyleElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLStyleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLStyleElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableCaptionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableCaptionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableCaptionElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableCellElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableCellElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableCellElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableColElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableColElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableColElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableRowElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableRowElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableRowElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTableSectionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTableSectionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTableSectionElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTemplateElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTemplateElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTemplateElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTextAreaElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTextAreaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTextAreaElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTimeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTimeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTimeElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLTitleElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTitleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTitleElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowHTMLTrackElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLTrackElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLTrackElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowHTMLUListElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLUListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLUListElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHTMLUnknownElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLUnknownElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLUnknownElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowHTMLVideoElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "HTMLVideoElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHTMLVideoElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowImageDataConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ImageData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSImageData::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowMediaControllerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaController"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaController::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowMediaErrorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MediaError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSMediaError::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowRadioNodeListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "RadioNodeList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSRadioNodeList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowTextMetricsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextMetrics"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextMetrics::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| EncodedJSValue jsDOMWindowTimeRangesConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TimeRanges"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTimeRanges::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowURLSearchParamsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "URLSearchParams"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSURLSearchParams::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowValidityStateConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ValidityState"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSValidityState::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCanvasGradientConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CanvasGradient"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCanvasGradient::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCanvasPatternConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CanvasPattern"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCanvasPattern::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(CANVAS_PROXY) |
| EncodedJSValue jsDOMWindowCanvasProxyConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CanvasProxy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCanvasProxy::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowCanvasRenderingContext2DConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "CanvasRenderingContext2D"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCanvasRenderingContext2D::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPath2DConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Path2D"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMPath::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowAudioTrackConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioTrack::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowAudioTrackListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "AudioTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSAudioTrackList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowWebKitDataCueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitDataCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDataCue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowTextTrackConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextTrack::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowTextTrackCueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextTrackCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextTrackCue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowTextTrackCueListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextTrackCueList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextTrackCueList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowTextTrackListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TextTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTextTrackList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "TrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSTrackEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowVTTCueConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "VTTCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSVTTCue::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowVTTRegionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "VTTRegion"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSVTTRegion::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowVideoTrackConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "VideoTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSVideoTrack::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| EncodedJSValue jsDOMWindowVideoTrackListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "VideoTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSVideoTrackList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowApplicationCacheConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "ApplicationCache"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMApplicationCache::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowBarPropConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "BarProp"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSBarProp::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowCryptoConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Crypto"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSCrypto::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSelectionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Selection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMSelection::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWindowConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Window"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMWindow::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowEventSourceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "EventSource"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSEventSource::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowHistoryConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "History"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSHistory::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowLocationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Location"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSLocation::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowNavigatorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Navigator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSNavigator::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Performance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformance::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceEntryConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceEntry"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceEntry::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceMarkConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceMark"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceMark::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceMeasureConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceMeasure"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceMeasure::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceNavigationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceNavigation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceNavigation::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceResourceTimingConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceResourceTiming"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceResourceTiming::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| EncodedJSValue jsDOMWindowPerformanceTimingConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PerformanceTiming"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSPerformanceTiming::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowScreenConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Screen"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSScreen::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| EncodedJSValue jsDOMWindowUserMessageHandlerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "UserMessageHandler"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSUserMessageHandler::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| EncodedJSValue jsDOMWindowUserMessageHandlersNamespaceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "UserMessageHandlersNamespace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSUserMessageHandlersNamespace::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| EncodedJSValue jsDOMWindowWebKitNamespaceConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitNamespace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitNamespace::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowWebKitPointConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "WebKitPoint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWebKitPoint::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMimeTypeConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MimeType"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMMimeType::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowMimeTypeArrayConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "MimeTypeArray"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMMimeTypeArray::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPluginConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Plugin"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMPlugin::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowPluginArrayConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "PluginArray"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMPluginArray::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStorageConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Storage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSStorage::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowStorageEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "StorageEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSStorageEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGAltGlyphDefElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAltGlyphDefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAltGlyphDefElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGAltGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAltGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAltGlyphElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGAltGlyphItemElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAltGlyphItemElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAltGlyphItemElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGAngleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAngle"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAngle::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimateColorElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimateColorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimateColorElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimateElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimateElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimateElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimateMotionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimateMotionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimateMotionElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimateTransformElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimateTransformElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimateTransformElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedAngleConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedAngle"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedAngle::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedBooleanConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedBoolean"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedBoolean::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedEnumerationConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedEnumeration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedEnumeration::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedIntegerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedInteger"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedInteger::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedLengthConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedLength"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedLength::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedLengthListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedLengthList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedLengthList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedNumberConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedNumber"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedNumber::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedNumberListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedNumberList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedNumberList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedPreserveAspectRatioConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedPreserveAspectRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedPreserveAspectRatio::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedRectConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedRect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedStringConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedString"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedString::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimatedTransformListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimatedTransformList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimatedTransformList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGAnimationElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGAnimationElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGAnimationElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGCircleElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGCircleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGCircleElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGClipPathElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGClipPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGClipPathElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGColorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGColor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGColor::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGComponentTransferFunctionElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGComponentTransferFunctionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGComponentTransferFunctionElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGCursorElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGCursorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGCursorElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGDefsElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGDefsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGDefsElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGDescElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGDescElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGDescElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGEllipseElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGEllipseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGEllipseElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGExceptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGException::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEBlendElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEBlendElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEBlendElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEColorMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEColorMatrixElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEColorMatrixElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEComponentTransferElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEComponentTransferElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEComponentTransferElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFECompositeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFECompositeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFECompositeElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEConvolveMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEConvolveMatrixElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEConvolveMatrixElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEDiffuseLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEDiffuseLightingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEDiffuseLightingElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEDisplacementMapElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEDisplacementMapElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEDisplacementMapElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEDistantLightElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEDistantLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEDistantLightElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEDropShadowElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEDropShadowElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEDropShadowElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEFloodElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEFloodElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEFloodElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEFuncAElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEFuncAElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEFuncAElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEFuncBElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEFuncBElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEFuncBElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEFuncGElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEFuncGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEFuncGElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEFuncRElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEFuncRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEFuncRElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEGaussianBlurElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEGaussianBlurElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEGaussianBlurElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEImageElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEImageElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEMergeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEMergeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEMergeElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEMergeNodeElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEMergeNodeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEMergeNodeElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEMorphologyElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEMorphologyElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEMorphologyElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEOffsetElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEOffsetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEOffsetElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFEPointLightElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFEPointLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFEPointLightElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFESpecularLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFESpecularLightingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFESpecularLightingElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFESpotLightElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFESpotLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFESpotLightElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFETileElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFETileElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFETileElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFETurbulenceElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFETurbulenceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFETurbulenceElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGFilterElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFilterElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFilterElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontFaceElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontFaceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontFaceElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontFaceFormatElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontFaceFormatElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontFaceFormatElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontFaceNameElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontFaceNameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontFaceNameElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontFaceSrcElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontFaceSrcElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontFaceSrcElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGFontFaceUriElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGFontFaceUriElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGFontFaceUriElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGForeignObjectElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGForeignObjectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGForeignObjectElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGGElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGGElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGGlyphElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGGlyphRefElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGGlyphRefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGGlyphRefElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGGradientElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGGraphicsElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGGraphicsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGGraphicsElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGHKernElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGHKernElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGHKernElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGImageElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGImageElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGLengthConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGLength"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGLength::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGLengthListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGLengthList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGLengthList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGLineElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGLineElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGLineElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGLinearGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGLinearGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGLinearGradientElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGMPathElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMPathElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGMarkerElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMarkerElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMarkerElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGMaskElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMaskElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMaskElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGMatrixConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMatrix"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMatrix::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGMetadataElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMetadataElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMetadataElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGMissingGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGMissingGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGMissingGlyphElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGNumberConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGNumber"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGNumber::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGNumberListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGNumberList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGNumberList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPaintConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPaint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPaint::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSeg"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSeg::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegArcAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegArcAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegArcAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegArcRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegArcRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegArcRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegClosePathConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegClosePath"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegClosePath::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoCubicAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoCubicRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicSmoothAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoCubicSmoothAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicSmoothRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoCubicSmoothRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoQuadraticAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoQuadraticRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticSmoothAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoQuadraticSmoothAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticSmoothRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegCurvetoQuadraticSmoothRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoHorizontalAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoHorizontalAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoHorizontalAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoHorizontalRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoHorizontalRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoHorizontalRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoVerticalAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoVerticalAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoVerticalAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegLinetoVerticalRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoVerticalRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegLinetoVerticalRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegMovetoAbsConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegMovetoAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegMovetoAbs::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPathSegMovetoRelConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPathSegMovetoRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPathSegMovetoRel::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPatternElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPatternElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPatternElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPointConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPoint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPoint::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPointListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPointList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPointList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPolygonElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPolygonElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPolygonElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPolylineElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPolylineElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPolylineElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGPreserveAspectRatioConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGPreserveAspectRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGPreserveAspectRatio::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGRadialGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGRadialGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGRadialGradientElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGRectConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGRect::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGRectElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGRectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGRectElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGRenderingIntentConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGRenderingIntent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGRenderingIntent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGSVGElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGSVGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGSVGElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGScriptElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGScriptElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGScriptElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGSetElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGSetElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGStopElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGStopElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGStopElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGStringListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGStringList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGStringList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGStyleElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGStyleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGStyleElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGSwitchElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGSwitchElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGSwitchElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGSymbolElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGSymbolElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGSymbolElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTRefElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTRefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTRefElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTSpanElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTSpanElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTSpanElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTextContentElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTextContentElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTextContentElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTextElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTextElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTextElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTextPathElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTextPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTextPathElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTextPositioningElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTextPositioningElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTextPositioningElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTitleElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTitleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTitleElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTransformConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTransform"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTransform::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGTransformListConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGTransformList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGTransformList::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGUnitTypesConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGUnitTypes"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGUnitTypes::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGUseElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGUseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGUseElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| EncodedJSValue jsDOMWindowSVGVKernElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGVKernElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGVKernElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowSVGViewElementConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGViewElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGViewElement::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGViewSpecConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGViewSpec"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGViewSpec::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowSVGZoomEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "SVGZoomEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSSVGZoomEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowWorkerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "Worker"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSWorker::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowDOMParserConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "DOMParser"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSDOMParser::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLHttpRequestConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLHttpRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLHttpRequest::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLHttpRequestEventTargetConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLHttpRequestEventTarget"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLHttpRequestEventTarget::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLHttpRequestProgressEventConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLHttpRequestProgressEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLHttpRequestProgressEvent::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLHttpRequestUploadConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLHttpRequestUpload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLHttpRequestUpload::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXMLSerializerConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XMLSerializer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXMLSerializer::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXPathEvaluatorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XPathEvaluator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXPathEvaluator::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXPathExceptionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XPathException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXPathException::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXPathExpressionConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XPathExpression"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXPathExpression::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| EncodedJSValue jsDOMWindowXPathResultConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XPathResult"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXPathResult::getConstructor(state->vm(), castedThis)); |
| } |
| |
| |
| #if ENABLE(XSLT) |
| EncodedJSValue jsDOMWindowXSLTProcessorConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| UNUSED_PARAM(thisValue); |
| JSValue decodedThisValue = JSValue::decode(thisValue); |
| auto* castedThis = decodedThisValue.isUndefinedOrNull() ? toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)) : toJSDOMWindow(decodedThisValue); |
| if (UNLIKELY(!castedThis)) { |
| return throwGetterTypeError(*state, throwScope, "Window", "XSLTProcessor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(JSXSLTProcessor::getConstructor(state->vm(), castedThis)); |
| } |
| |
| #endif |
| |
| EncodedJSValue jsDOMWindowConstructor(ExecState* state, EncodedJSValue thisValue, PropertyName) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| JSDOMWindowPrototype* domObject = jsDynamicCast<JSDOMWindowPrototype*>(JSValue::decode(thisValue)); |
| if (UNLIKELY(!domObject)) |
| return throwVMTypeError(state, throwScope); |
| return JSValue::encode(JSDOMWindow::getConstructor(state->vm(), domObject->globalObject())); |
| } |
| |
| bool setJSDOMWindowConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| JSValue value = JSValue::decode(encodedValue); |
| JSDOMWindowPrototype* domObject = jsDynamicCast<JSDOMWindowPrototype*>(JSValue::decode(thisValue)); |
| if (UNLIKELY(!domObject)) { |
| throwVMTypeError(state, throwScope); |
| return false; |
| } |
| // Shadowing a built-in constructor |
| return domObject->putDirect(state->vm(), state->propertyNames().constructor, value); |
| } |
| |
| bool setJSDOMWindowScreen(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "screen"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "screen"), value); |
| } |
| |
| |
| bool setJSDOMWindowLocationbar(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "locationbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "locationbar"), value); |
| } |
| |
| |
| bool setJSDOMWindowMenubar(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "menubar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "menubar"), value); |
| } |
| |
| |
| bool setJSDOMWindowPersonalbar(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "personalbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "personalbar"), value); |
| } |
| |
| |
| bool setJSDOMWindowScrollbars(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "scrollbars"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "scrollbars"), value); |
| } |
| |
| |
| bool setJSDOMWindowStatusbar(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "statusbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "statusbar"), value); |
| } |
| |
| |
| bool setJSDOMWindowToolbar(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "toolbar"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "toolbar"), value); |
| } |
| |
| |
| bool setJSDOMWindowClientInformation(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "clientInformation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "clientInformation"), value); |
| } |
| |
| |
| bool setJSDOMWindowLocation(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "location"); |
| } |
| castedThis->setLocation(*state, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowEvent(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "event"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "event"), value); |
| } |
| |
| |
| bool setJSDOMWindowOffscreenBuffering(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "offscreenBuffering"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "offscreenBuffering"), value); |
| } |
| |
| |
| bool setJSDOMWindowOuterHeight(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "outerHeight"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "outerHeight"), value); |
| } |
| |
| |
| bool setJSDOMWindowOuterWidth(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "outerWidth"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "outerWidth"), value); |
| } |
| |
| |
| bool setJSDOMWindowInnerHeight(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "innerHeight"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "innerHeight"), value); |
| } |
| |
| |
| bool setJSDOMWindowInnerWidth(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "innerWidth"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "innerWidth"), value); |
| } |
| |
| |
| bool setJSDOMWindowScreenX(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "screenX"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "screenX"), value); |
| } |
| |
| |
| bool setJSDOMWindowScreenY(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "screenY"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "screenY"), value); |
| } |
| |
| |
| bool setJSDOMWindowScreenLeft(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "screenLeft"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "screenLeft"), value); |
| } |
| |
| |
| bool setJSDOMWindowScreenTop(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "screenTop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "screenTop"), value); |
| } |
| |
| |
| bool setJSDOMWindowScrollX(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "scrollX"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "scrollX"), value); |
| } |
| |
| |
| bool setJSDOMWindowScrollY(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "scrollY"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "scrollY"), value); |
| } |
| |
| |
| bool setJSDOMWindowPageXOffset(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "pageXOffset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "pageXOffset"), value); |
| } |
| |
| |
| bool setJSDOMWindowPageYOffset(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "pageYOffset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "pageYOffset"), value); |
| } |
| |
| |
| bool setJSDOMWindowLength(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "length"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "length"), value); |
| } |
| |
| |
| bool setJSDOMWindowName(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "name"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| auto& impl = castedThis->wrapped(); |
| auto nativeValue = value.toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, false); |
| impl.setName(WTFMove(nativeValue)); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowStatus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "status"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| auto& impl = castedThis->wrapped(); |
| auto nativeValue = value.toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, false); |
| impl.setStatus(WTFMove(nativeValue)); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowDefaultStatus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "defaultStatus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| auto& impl = castedThis->wrapped(); |
| auto nativeValue = value.toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, false); |
| impl.setDefaultStatus(WTFMove(nativeValue)); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowDefaultstatus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "defaultstatus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| auto& impl = castedThis->wrapped(); |
| auto nativeValue = value.toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, false); |
| impl.setDefaultStatus(WTFMove(nativeValue)); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowSelf(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "self"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "self"), value); |
| } |
| |
| |
| bool setJSDOMWindowFrames(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "frames"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "frames"), value); |
| } |
| |
| |
| bool setJSDOMWindowOpener(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "opener"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "opener"), value); |
| } |
| |
| |
| bool setJSDOMWindowParent(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "parent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "parent"), value); |
| } |
| |
| |
| bool setJSDOMWindowDevicePixelRatio(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "devicePixelRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "devicePixelRatio"), value); |
| } |
| |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformance(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "performance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in property. |
| return replaceStaticPropertySlot(state->vm(), castedThis, Identifier::fromString(state, "performance"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowImageConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Image"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Image"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGDocumentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGDocument"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebkitURLConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "webkitURL"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "webkitURL"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebKitMutationObserverConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitMutationObserver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitMutationObserver"), value); |
| } |
| |
| |
| bool setJSDOMWindowOnanimationend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onanimationend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().animationendEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnanimationiteration(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onanimationiteration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().animationiterationEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnanimationstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onanimationstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().animationstartEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOntransitionend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontransitionend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().transitionendEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwebkitanimationend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitanimationend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitAnimationEndEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwebkitanimationiteration(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitanimationiteration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitAnimationIterationEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwebkitanimationstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitanimationstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitAnimationStartEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwebkittransitionend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkittransitionend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitTransitionEndEvent, value); |
| return true; |
| } |
| |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| bool setJSDOMWindowOngesturechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ongesturechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().gesturechangeEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| bool setJSDOMWindowOngestureend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ongestureend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().gestureendEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(IOS_GESTURE_EVENTS) |
| bool setJSDOMWindowOngesturestart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ongesturestart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().gesturestartEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| bool setJSDOMWindowOndevicemotion(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondevicemotion"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().devicemotionEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| bool setJSDOMWindowOndeviceorientation(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondeviceorientation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().deviceorientationEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(PROXIMITY_EVENTS) |
| bool setJSDOMWindowOnwebkitdeviceproximity(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitdeviceproximity"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitdeviceproximityEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowOnabort(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onabort"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().abortEvent, value); |
| return true; |
| } |
| |
| |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| bool setJSDOMWindowOnautocomplete(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onautocomplete"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().autocompleteEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_AUTOCOMPLETE) |
| bool setJSDOMWindowOnautocompleteerror(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onautocompleteerror"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().autocompleteerrorEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowOnblur(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onblur"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().blurEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOncanplay(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oncanplay"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().canplayEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOncanplaythrough(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oncanplaythrough"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().canplaythroughEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().changeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnclick(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onclick"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().clickEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOncontextmenu(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oncontextmenu"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().contextmenuEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOncuechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oncuechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().cuechangeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndblclick(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondblclick"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dblclickEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndrag(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondrag"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndragend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondragend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragendEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndragenter(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondragenter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragenterEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndragleave(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondragleave"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragleaveEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndragover(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondragover"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragoverEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndragstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondragstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dragstartEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndrop(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondrop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().dropEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOndurationchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ondurationchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().durationchangeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnemptied(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onemptied"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().emptiedEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnended(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onended"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().endedEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnerror(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onerror"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| castedThis->wrapped().setAttributeEventListener(eventNames().errorEvent, createJSErrorHandler(state, value, castedThis)); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnfocus(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onfocus"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().focusEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOninput(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oninput"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().inputEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOninvalid(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "oninvalid"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().invalidEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnkeydown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onkeydown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().keydownEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnkeypress(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onkeypress"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().keypressEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnkeyup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onkeyup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().keyupEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().loadEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnloadeddata(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onloadeddata"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().loadeddataEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnloadedmetadata(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onloadedmetadata"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().loadedmetadataEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnloadstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onloadstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().loadstartEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmousedown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmousedown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mousedownEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmouseenter(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return false; |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mouseenterEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmouseleave(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return false; |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mouseleaveEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmousemove(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmousemove"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mousemoveEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmouseout(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmouseout"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mouseoutEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmouseover(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmouseover"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mouseoverEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmouseup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmouseup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mouseupEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmousewheel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmousewheel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().mousewheelEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnpause(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onpause"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().pauseEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnplay(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onplay"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().playEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnplaying(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onplaying"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().playingEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnprogress(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onprogress"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().progressEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnratechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onratechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().ratechangeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnreset(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onreset"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().resetEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnresize(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onresize"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().resizeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnscroll(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onscroll"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().scrollEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnseeked(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onseeked"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().seekedEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnseeking(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onseeking"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().seekingEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnselect(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onselect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().selectEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnstalled(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onstalled"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().stalledEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnsubmit(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onsubmit"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().submitEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnsuspend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onsuspend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().suspendEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOntimeupdate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontimeupdate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().timeupdateEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnvolumechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onvolumechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().volumechangeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwaiting(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwaiting"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().waitingEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnsearch(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onsearch"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().searchEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnwheel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwheel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().wheelEvent, value); |
| return true; |
| } |
| |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowOntouchcancel(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontouchcancel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().touchcancelEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowOntouchend(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontouchend"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().touchendEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowOntouchmove(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontouchmove"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().touchmoveEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowOntouchstart(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontouchstart"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().touchstartEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowOntouchforcechange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ontouchforcechange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().touchforcechangeEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| bool setJSDOMWindowOnwebkitmouseforcechanged(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcechanged"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitmouseforcechangedEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| bool setJSDOMWindowOnwebkitmouseforcedown(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcedown"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitmouseforcedownEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| bool setJSDOMWindowOnwebkitmouseforcewillbegin(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitmouseforcewillbegin"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitmouseforcewillbeginEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(MOUSE_FORCE_EVENTS) |
| bool setJSDOMWindowOnwebkitmouseforceup(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitmouseforceup"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitmouseforceupEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| bool setJSDOMWindowOnwebkitwillrevealbottom(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealbottom"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitwillrevealbottomEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| bool setJSDOMWindowOnwebkitwillrevealleft(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealleft"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitwillrevealleftEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| bool setJSDOMWindowOnwebkitwillrevealright(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealright"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitwillrevealrightEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(WILL_REVEAL_EDGE_EVENTS) |
| bool setJSDOMWindowOnwebkitwillrevealtop(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onwebkitwillrevealtop"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().webkitwillrevealtopEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowOnbeforeunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onbeforeunload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().beforeunloadEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnhashchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onhashchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().hashchangeEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnmessage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onmessage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().messageEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnoffline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onoffline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().offlineEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnonline(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ononline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().onlineEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnpagehide(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onpagehide"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().pagehideEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnpageshow(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onpageshow"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().pageshowEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnpopstate(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onpopstate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().popstateEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnstorage(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onstorage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().storageEvent, value); |
| return true; |
| } |
| |
| |
| bool setJSDOMWindowOnunload(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onunload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().unloadEvent, value); |
| return true; |
| } |
| |
| |
| #if ENABLE(ORIENTATION_EVENTS) |
| bool setJSDOMWindowOnorientationchange(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "onorientationchange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| setWindowEventHandlerAttribute(*state, *castedThis, castedThis->wrapped(), eventNames().orientationchangeEvent, value); |
| return true; |
| } |
| |
| #endif |
| |
| #if ENABLE(WIRELESS_PLAYBACK_TARGET) |
| bool setJSDOMWindowWebKitPlaybackTargetAvailabilityEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitPlaybackTargetAvailabilityEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitPlaybackTargetAvailabilityEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| bool setJSDOMWindowHeadersConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Headers"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Headers"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| bool setJSDOMWindowRequestConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Request"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Request"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(FETCH_API) |
| bool setJSDOMWindowResponseConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Response"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Response"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBCursorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBCursor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBCursor"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBCursorWithValueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBCursorWithValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBCursorWithValue"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBDatabaseConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBDatabase"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBDatabase"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBFactoryConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBFactory"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBFactory"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBIndexConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBIndex"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBIndex"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBKeyRangeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBKeyRange"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBKeyRange"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBObjectStoreConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBObjectStore"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBObjectStore"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBOpenDBRequestConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBOpenDBRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBOpenDBRequest"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBRequestConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBRequest"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBTransactionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBTransaction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBTransaction"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDEXED_DATABASE) |
| bool setJSDOMWindowIDBVersionChangeEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "IDBVersionChangeEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "IDBVersionChangeEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(INDIE_UI) |
| bool setJSDOMWindowUIRequestEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "UIRequestEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "UIRequestEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SESSION) |
| bool setJSDOMWindowMediaRemoteControlsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaRemoteControls"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaRemoteControls"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SESSION) |
| bool setJSDOMWindowMediaSessionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaSession"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaSession"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| bool setJSDOMWindowMediaSourceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaSource"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaSource"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| bool setJSDOMWindowSourceBufferConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SourceBuffer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SourceBuffer"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_SOURCE) |
| bool setJSDOMWindowSourceBufferListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SourceBufferList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SourceBufferList"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| bool setJSDOMWindowMediaStreamConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStream"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowMediaStreamEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStreamEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStreamEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| bool setJSDOMWindowMediaStreamTrackConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStreamTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStreamTrack"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| bool setJSDOMWindowMediaStreamTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStreamTrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStreamTrackEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| bool setJSDOMWindowOverconstrainedErrorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "OverconstrainedError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "OverconstrainedError"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) |
| bool setJSDOMWindowOverconstrainedErrorEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "OverconstrainedErrorEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "OverconstrainedErrorEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCIceCandidateConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCIceCandidate"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCIceCandidate"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowWebkitRTCPeerConnectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "webkitRTCPeerConnection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "webkitRTCPeerConnection"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCRtpReceiverConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCRtpReceiver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCRtpReceiver"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCRtpSenderConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCRtpSender"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCRtpSender"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCRtpTransceiverConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCRtpTransceiver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCRtpTransceiver"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCSessionDescriptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCSessionDescription"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCSessionDescription"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_RTC) |
| bool setJSDOMWindowRTCTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RTCTrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RTCTrackEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(LEGACY_NOTIFICATIONS) || ENABLE(NOTIFICATIONS) |
| bool setJSDOMWindowNotificationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Notification"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Notification"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(PROXIMITY_EVENTS) |
| bool setJSDOMWindowDeviceProximityEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DeviceProximityEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DeviceProximityEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| bool setJSDOMWindowSpeechSynthesisEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SpeechSynthesisEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SpeechSynthesisEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SPEECH_SYNTHESIS) |
| bool setJSDOMWindowSpeechSynthesisUtteranceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SpeechSynthesisUtterance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SpeechSynthesisUtterance"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| bool setJSDOMWindowByteLengthQueuingStrategyConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ByteLengthQueuingStrategy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ByteLengthQueuingStrategy"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) || ENABLE(WRITABLE_STREAM_API) |
| bool setJSDOMWindowCountQueuingStrategyConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CountQueuingStrategy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CountQueuingStrategy"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(READABLE_STREAM_API) |
| bool setJSDOMWindowReadableStreamConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ReadableStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ReadableStream"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WRITABLE_STREAM_API) |
| bool setJSDOMWindowWritableStreamConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WritableStream"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WritableStream"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAnalyserNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AnalyserNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AnalyserNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioBufferConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioBuffer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioBuffer"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioBufferSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioBufferSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioBufferSourceNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowWebkitAudioContextConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "webkitAudioContext"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "webkitAudioContext"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioDestinationNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioDestinationNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioDestinationNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioListenerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioListener"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioListener"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioParamConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioParam"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioParam"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowAudioProcessingEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioProcessingEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioProcessingEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowBiquadFilterNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "BiquadFilterNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "BiquadFilterNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowChannelMergerNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ChannelMergerNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ChannelMergerNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowChannelSplitterNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ChannelSplitterNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ChannelSplitterNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowConvolverNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ConvolverNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ConvolverNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowDelayNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DelayNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DelayNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowDynamicsCompressorNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DynamicsCompressorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DynamicsCompressorNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowGainNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "GainNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "GainNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) && ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowMediaElementAudioSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaElementAudioSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaElementAudioSourceNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowMediaStreamAudioDestinationNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStreamAudioDestinationNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStreamAudioDestinationNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(MEDIA_STREAM) && ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowMediaStreamAudioSourceNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaStreamAudioSourceNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaStreamAudioSourceNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowOfflineAudioCompletionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "OfflineAudioCompletionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "OfflineAudioCompletionEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowWebkitOfflineAudioContextConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "webkitOfflineAudioContext"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "webkitOfflineAudioContext"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowOscillatorNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "OscillatorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "OscillatorNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowWebkitAudioPannerNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "webkitAudioPannerNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "webkitAudioPannerNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowPeriodicWaveConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PeriodicWave"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PeriodicWave"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowScriptProcessorNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ScriptProcessorNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ScriptProcessorNode"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_AUDIO) |
| bool setJSDOMWindowWaveShaperNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WaveShaperNode"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WaveShaperNode"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowDatabaseConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Database"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Database"), value); |
| } |
| |
| |
| bool setJSDOMWindowSQLErrorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SQLError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SQLError"), value); |
| } |
| |
| |
| bool setJSDOMWindowSQLExceptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SQLException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SQLException"), value); |
| } |
| |
| |
| bool setJSDOMWindowSQLResultSetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SQLResultSet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SQLResultSet"), value); |
| } |
| |
| |
| bool setJSDOMWindowSQLResultSetRowListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SQLResultSetRowList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SQLResultSetRowList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSQLTransactionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SQLTransaction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SQLTransaction"), value); |
| } |
| |
| |
| bool setJSDOMWindowCloseEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CloseEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CloseEvent"), value); |
| } |
| |
| |
| #if ENABLE(WEB_SOCKETS) |
| bool setJSDOMWindowWebSocketConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebSocket"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebSocket"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| bool setJSDOMWindowAnimationEffectReadOnlyConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AnimationEffectReadOnly"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AnimationEffectReadOnly"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| bool setJSDOMWindowAnimationTimelineConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AnimationTimeline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AnimationTimeline"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| bool setJSDOMWindowDocumentTimelineConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DocumentTimeline"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DocumentTimeline"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| bool setJSDOMWindowKeyframeEffectConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "KeyframeEffect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "KeyframeEffect"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_ANIMATIONS) |
| bool setJSDOMWindowAnimationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Animation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Animation"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SUBTLE_CRYPTO) |
| bool setJSDOMWindowCryptoKeyConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CryptoKey"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CryptoKey"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowCSSCharsetRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSCharsetRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSCharsetRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSFontFaceRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSFontFaceRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSFontFaceRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSImportRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSImportRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSImportRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSKeyframeRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSKeyframeRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSKeyframeRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSKeyframesRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSKeyframesRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSKeyframesRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSMediaRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSMediaRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSMediaRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSPageRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSPageRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSPageRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSPrimitiveValueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSPrimitiveValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSPrimitiveValue"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSRuleListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSRuleList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSRuleList"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSStyleDeclarationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSStyleDeclaration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSStyleDeclaration"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSStyleRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSStyleRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSStyleRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSStyleSheetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSStyleSheet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSStyleSheet"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSSupportsRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSSupportsRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSSupportsRule"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSValueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSValue"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSValueListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSSValueList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSSValueList"), value); |
| } |
| |
| |
| bool setJSDOMWindowCounterConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Counter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Counter"), value); |
| } |
| |
| |
| bool setJSDOMWindowCSSConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CSS"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CSS"), value); |
| } |
| |
| |
| bool setJSDOMWindowFontFaceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FontFace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FontFace"), value); |
| } |
| |
| |
| bool setJSDOMWindowFontFaceSetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FontFaceSet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FontFaceSet"), value); |
| } |
| |
| |
| bool setJSDOMWindowMediaListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaList"), value); |
| } |
| |
| |
| bool setJSDOMWindowRGBColorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RGBColor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RGBColor"), value); |
| } |
| |
| |
| bool setJSDOMWindowRectConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Rect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Rect"), value); |
| } |
| |
| |
| bool setJSDOMWindowStyleSheetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "StyleSheet"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "StyleSheet"), value); |
| } |
| |
| |
| bool setJSDOMWindowStyleSheetListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "StyleSheetList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "StyleSheetList"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebKitCSSFilterValueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitCSSFilterValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitCSSFilterValue"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebKitCSSMatrixConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitCSSMatrix"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitCSSMatrix"), value); |
| } |
| |
| |
| #if ENABLE(CSS_REGIONS) |
| bool setJSDOMWindowWebKitCSSRegionRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitCSSRegionRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitCSSRegionRule"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowWebKitCSSTransformValueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitCSSTransformValue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitCSSTransformValue"), value); |
| } |
| |
| |
| #if ENABLE(CSS_DEVICE_ADAPTATION) |
| bool setJSDOMWindowWebKitCSSViewportRuleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitCSSViewportRule"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitCSSViewportRule"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowAnimationEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AnimationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AnimationEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowAttrConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Attr"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Attr"), value); |
| } |
| |
| |
| bool setJSDOMWindowBeforeLoadEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "BeforeLoadEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "BeforeLoadEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowBeforeUnloadEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "BeforeUnloadEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "BeforeUnloadEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowCDATASectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CDATASection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CDATASection"), value); |
| } |
| |
| |
| bool setJSDOMWindowCharacterDataConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CharacterData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CharacterData"), value); |
| } |
| |
| |
| bool setJSDOMWindowClientRectConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ClientRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ClientRect"), value); |
| } |
| |
| |
| bool setJSDOMWindowClientRectListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ClientRectList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ClientRectList"), value); |
| } |
| |
| |
| bool setJSDOMWindowCommentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Comment"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Comment"), value); |
| } |
| |
| |
| bool setJSDOMWindowCompositionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CompositionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CompositionEvent"), value); |
| } |
| |
| |
| #if ENABLE(CUSTOM_ELEMENTS) |
| bool setJSDOMWindowCustomElementRegistryConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CustomElementRegistry"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CustomElementRegistry"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowCustomEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CustomEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CustomEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMExceptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMException"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMImplementationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMImplementation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMImplementation"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMStringListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMStringList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMStringList"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMStringMapConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMStringMap"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMStringMap"), value); |
| } |
| |
| |
| bool setJSDOMWindowDataTransferConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DataTransfer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DataTransfer"), value); |
| } |
| |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| bool setJSDOMWindowDeviceMotionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DeviceMotionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DeviceMotionEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(DEVICE_ORIENTATION) |
| bool setJSDOMWindowDeviceOrientationEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DeviceOrientationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DeviceOrientationEvent"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowDocumentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Document"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Document"), value); |
| } |
| |
| |
| bool setJSDOMWindowDocumentFragmentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DocumentFragment"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DocumentFragment"), value); |
| } |
| |
| |
| bool setJSDOMWindowDocumentTypeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DocumentType"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DocumentType"), value); |
| } |
| |
| |
| bool setJSDOMWindowElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Element"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Element"), value); |
| } |
| |
| |
| bool setJSDOMWindowErrorEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ErrorEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ErrorEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Event"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Event"), value); |
| } |
| |
| |
| bool setJSDOMWindowEventTargetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "EventTarget"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "EventTarget"), value); |
| } |
| |
| |
| bool setJSDOMWindowFocusEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FocusEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FocusEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowHashChangeEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HashChangeEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HashChangeEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowKeyboardEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "KeyboardEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "KeyboardEvent"), value); |
| } |
| |
| |
| #if ENABLE(CHANNEL_MESSAGING) |
| bool setJSDOMWindowMessageChannelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MessageChannel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MessageChannel"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowMessageEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MessageEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MessageEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowMessagePortConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MessagePort"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MessagePort"), value); |
| } |
| |
| |
| bool setJSDOMWindowMouseEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MouseEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MouseEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowMutationEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MutationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MutationEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowMutationObserverConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MutationObserver"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MutationObserver"), value); |
| } |
| |
| |
| bool setJSDOMWindowMutationRecordConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MutationRecord"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MutationRecord"), value); |
| } |
| |
| |
| bool setJSDOMWindowNamedNodeMapConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "NamedNodeMap"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "NamedNodeMap"), value); |
| } |
| |
| |
| bool setJSDOMWindowNodeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Node"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Node"), value); |
| } |
| |
| |
| bool setJSDOMWindowNodeFilterConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "NodeFilter"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "NodeFilter"), value); |
| } |
| |
| |
| bool setJSDOMWindowNodeIteratorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "NodeIterator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "NodeIterator"), value); |
| } |
| |
| |
| bool setJSDOMWindowNodeListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "NodeList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "NodeList"), value); |
| } |
| |
| |
| bool setJSDOMWindowOverflowEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "OverflowEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "OverflowEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowPageTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PageTransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PageTransitionEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowPopStateEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PopStateEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PopStateEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowProcessingInstructionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ProcessingInstruction"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ProcessingInstruction"), value); |
| } |
| |
| |
| bool setJSDOMWindowProgressEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ProgressEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ProgressEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowRangeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Range"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Range"), value); |
| } |
| |
| |
| bool setJSDOMWindowSecurityPolicyViolationEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SecurityPolicyViolationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SecurityPolicyViolationEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowShadowRootConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ShadowRoot"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ShadowRoot"), value); |
| } |
| |
| |
| bool setJSDOMWindowTextConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Text"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Text"), value); |
| } |
| |
| |
| bool setJSDOMWindowTextEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextEvent"), value); |
| } |
| |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowTouchConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Touch"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Touch"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowTouchEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TouchEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TouchEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(TOUCH_EVENTS) |
| bool setJSDOMWindowTouchListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TouchList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TouchList"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TransitionEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowTreeWalkerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TreeWalker"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TreeWalker"), value); |
| } |
| |
| |
| bool setJSDOMWindowUIEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "UIEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "UIEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebKitAnimationEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitAnimationEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitAnimationEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowWebKitTransitionEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitTransitionEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitTransitionEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowWheelEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WheelEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WheelEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLDocumentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLDocument"), value); |
| } |
| |
| |
| bool setJSDOMWindowBlobConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Blob"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Blob"), value); |
| } |
| |
| |
| bool setJSDOMWindowFileConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "File"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "File"), value); |
| } |
| |
| |
| bool setJSDOMWindowFileErrorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FileError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FileError"), value); |
| } |
| |
| |
| bool setJSDOMWindowFileListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FileList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FileList"), value); |
| } |
| |
| |
| bool setJSDOMWindowFileReaderConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FileReader"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FileReader"), value); |
| } |
| |
| |
| bool setJSDOMWindowFormDataConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "FormData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "FormData"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMTokenListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMTokenList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMTokenList"), value); |
| } |
| |
| |
| bool setJSDOMWindowURLConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "URL"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "URL"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLAllCollectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAllCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAllCollection"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLAnchorElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAnchorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAnchorElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLAppletElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAppletElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAppletElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLAreaElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAreaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAreaElement"), value); |
| } |
| |
| |
| #if ENABLE(ATTACHMENT_ELEMENT) |
| bool setJSDOMWindowHTMLAttachmentElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAttachmentElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAttachmentElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowHTMLAudioElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLAudioElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLAudioElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowAudioConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Audio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Audio"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowHTMLBRElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLBRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLBRElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLBaseElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLBaseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLBaseElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLBodyElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLBodyElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLBodyElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLButtonElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLButtonElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLButtonElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLCanvasElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLCanvasElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLCanvasElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLCollectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLCollection"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLDListElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDListElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLDataElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDataElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDataElement"), value); |
| } |
| |
| |
| #if ENABLE(DATALIST_ELEMENT) |
| bool setJSDOMWindowHTMLDataListElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDataListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDataListElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(DETAILS_ELEMENT) |
| bool setJSDOMWindowHTMLDetailsElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDetailsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDetailsElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowHTMLDirectoryElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDirectoryElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDirectoryElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLDivElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDivElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDivElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLDocumentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLDocument"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLDocument"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLEmbedElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLEmbedElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLEmbedElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFieldSetElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFieldSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFieldSetElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFontElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFontElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFontElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFormControlsCollectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFormControlsCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFormControlsCollection"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFormElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFormElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFormElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFrameElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFrameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFrameElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLFrameSetElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLFrameSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLFrameSetElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLHRElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLHRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLHRElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLHeadElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLHeadElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLHeadElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLHeadingElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLHeadingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLHeadingElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLHtmlElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLHtmlElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLHtmlElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLIFrameElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLIFrameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLIFrameElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLImageElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLImageElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLInputElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLInputElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLInputElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLKeygenElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLKeygenElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLKeygenElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLLIElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLLIElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLLIElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLLabelElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLLabelElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLLabelElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLLegendElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLLegendElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLLegendElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLLinkElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLLinkElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLLinkElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLMapElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMapElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMapElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLMarqueeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMarqueeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMarqueeElement"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowHTMLMediaElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMediaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMediaElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowHTMLMenuElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMenuElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMenuElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLMetaElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMetaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMetaElement"), value); |
| } |
| |
| |
| #if ENABLE(METER_ELEMENT) |
| bool setJSDOMWindowHTMLMeterElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLMeterElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLMeterElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowHTMLModElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLModElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLModElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLOListElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLOListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLOListElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLObjectElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLObjectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLObjectElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLOptGroupElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLOptGroupElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLOptGroupElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLOptionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLOptionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLOptionElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowOptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Option"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Option"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLOptionsCollectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLOptionsCollection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLOptionsCollection"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLOutputElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLOutputElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLOutputElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLParagraphElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLParagraphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLParagraphElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLParamElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLParamElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLParamElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLPictureElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLPictureElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLPictureElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLPreElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLPreElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLPreElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLProgressElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLProgressElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLProgressElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLQuoteElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLQuoteElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLQuoteElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLScriptElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLScriptElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLScriptElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLSelectElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLSelectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLSelectElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLSlotElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLSlotElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLSlotElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLSourceElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLSourceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLSourceElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLSpanElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLSpanElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLSpanElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLStyleElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLStyleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLStyleElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableCaptionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableCaptionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableCaptionElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableCellElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableCellElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableCellElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableColElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableColElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableColElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableRowElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableRowElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableRowElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTableSectionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTableSectionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTableSectionElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTemplateElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTemplateElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTemplateElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTextAreaElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTextAreaElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTextAreaElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTimeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTimeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTimeElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLTitleElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTitleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTitleElement"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowHTMLTrackElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLTrackElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLTrackElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowHTMLUListElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLUListElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLUListElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowHTMLUnknownElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLUnknownElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLUnknownElement"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowHTMLVideoElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "HTMLVideoElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "HTMLVideoElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowImageDataConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ImageData"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ImageData"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowMediaControllerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaController"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaController"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowMediaErrorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MediaError"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MediaError"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowRadioNodeListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "RadioNodeList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "RadioNodeList"), value); |
| } |
| |
| |
| bool setJSDOMWindowTextMetricsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextMetrics"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextMetrics"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO) |
| bool setJSDOMWindowTimeRangesConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TimeRanges"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TimeRanges"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowURLSearchParamsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "URLSearchParams"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "URLSearchParams"), value); |
| } |
| |
| |
| bool setJSDOMWindowValidityStateConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ValidityState"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ValidityState"), value); |
| } |
| |
| |
| bool setJSDOMWindowCanvasGradientConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CanvasGradient"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CanvasGradient"), value); |
| } |
| |
| |
| bool setJSDOMWindowCanvasPatternConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CanvasPattern"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CanvasPattern"), value); |
| } |
| |
| |
| #if ENABLE(CANVAS_PROXY) |
| bool setJSDOMWindowCanvasProxyConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CanvasProxy"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CanvasProxy"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowCanvasRenderingContext2DConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "CanvasRenderingContext2D"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "CanvasRenderingContext2D"), value); |
| } |
| |
| |
| bool setJSDOMWindowPath2DConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Path2D"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Path2D"), value); |
| } |
| |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowAudioTrackConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioTrack"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowAudioTrackListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "AudioTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "AudioTrackList"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowWebKitDataCueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitDataCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitDataCue"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowTextTrackConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextTrack"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowTextTrackCueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextTrackCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextTrackCue"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowTextTrackCueListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextTrackCueList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextTrackCueList"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowTextTrackListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TextTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TextTrackList"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowTrackEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "TrackEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "TrackEvent"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowVTTCueConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "VTTCue"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "VTTCue"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowVTTRegionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "VTTRegion"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "VTTRegion"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowVideoTrackConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "VideoTrack"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "VideoTrack"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(VIDEO_TRACK) |
| bool setJSDOMWindowVideoTrackListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "VideoTrackList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "VideoTrackList"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowApplicationCacheConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "ApplicationCache"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "ApplicationCache"), value); |
| } |
| |
| |
| bool setJSDOMWindowBarPropConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "BarProp"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "BarProp"), value); |
| } |
| |
| |
| bool setJSDOMWindowCryptoConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Crypto"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Crypto"), value); |
| } |
| |
| |
| bool setJSDOMWindowSelectionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Selection"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Selection"), value); |
| } |
| |
| |
| bool setJSDOMWindowWindowConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Window"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Window"), value); |
| } |
| |
| |
| bool setJSDOMWindowEventSourceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "EventSource"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "EventSource"), value); |
| } |
| |
| |
| bool setJSDOMWindowHistoryConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "History"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "History"), value); |
| } |
| |
| |
| bool setJSDOMWindowLocationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Location"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Location"), value); |
| } |
| |
| |
| bool setJSDOMWindowNavigatorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Navigator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Navigator"), value); |
| } |
| |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformanceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Performance"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Performance"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformanceEntryConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceEntry"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceEntry"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_TIMING) |
| bool setJSDOMWindowPerformanceMarkConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceMark"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceMark"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_TIMING) |
| bool setJSDOMWindowPerformanceMeasureConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceMeasure"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceMeasure"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformanceNavigationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceNavigation"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceNavigation"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformanceResourceTimingConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceResourceTiming"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceResourceTiming"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(WEB_TIMING) |
| bool setJSDOMWindowPerformanceTimingConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PerformanceTiming"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PerformanceTiming"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowScreenConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Screen"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Screen"), value); |
| } |
| |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| bool setJSDOMWindowUserMessageHandlerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "UserMessageHandler"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "UserMessageHandler"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| bool setJSDOMWindowUserMessageHandlersNamespaceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "UserMessageHandlersNamespace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "UserMessageHandlersNamespace"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(USER_MESSAGE_HANDLERS) |
| bool setJSDOMWindowWebKitNamespaceConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitNamespace"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitNamespace"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowWebKitPointConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "WebKitPoint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "WebKitPoint"), value); |
| } |
| |
| |
| bool setJSDOMWindowMimeTypeConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MimeType"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MimeType"), value); |
| } |
| |
| |
| bool setJSDOMWindowMimeTypeArrayConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "MimeTypeArray"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "MimeTypeArray"), value); |
| } |
| |
| |
| bool setJSDOMWindowPluginConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Plugin"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Plugin"), value); |
| } |
| |
| |
| bool setJSDOMWindowPluginArrayConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "PluginArray"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "PluginArray"), value); |
| } |
| |
| |
| bool setJSDOMWindowStorageConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Storage"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Storage"), value); |
| } |
| |
| |
| bool setJSDOMWindowStorageEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "StorageEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "StorageEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGAltGlyphDefElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAltGlyphDefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAltGlyphDefElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGAltGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAltGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAltGlyphElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGAltGlyphItemElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAltGlyphItemElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAltGlyphItemElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGAngleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAngle"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAngle"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimateColorElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimateColorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimateColorElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimateElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimateElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimateElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimateMotionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimateMotionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimateMotionElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimateTransformElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimateTransformElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimateTransformElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedAngleConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedAngle"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedAngle"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedBooleanConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedBoolean"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedBoolean"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedEnumerationConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedEnumeration"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedEnumeration"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedIntegerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedInteger"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedInteger"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedLengthConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedLength"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedLength"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedLengthListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedLengthList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedLengthList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedNumberConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedNumber"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedNumber"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedNumberListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedNumberList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedNumberList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedPreserveAspectRatioConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedPreserveAspectRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedPreserveAspectRatio"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedRectConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedRect"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedStringConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedString"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedString"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimatedTransformListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimatedTransformList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimatedTransformList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGAnimationElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGAnimationElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGAnimationElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGCircleElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGCircleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGCircleElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGClipPathElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGClipPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGClipPathElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGColorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGColor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGColor"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGComponentTransferFunctionElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGComponentTransferFunctionElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGComponentTransferFunctionElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGCursorElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGCursorElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGCursorElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGDefsElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGDefsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGDefsElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGDescElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGDescElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGDescElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGEllipseElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGEllipseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGEllipseElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGExceptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGException"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEBlendElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEBlendElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEBlendElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEColorMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEColorMatrixElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEColorMatrixElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEComponentTransferElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEComponentTransferElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEComponentTransferElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFECompositeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFECompositeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFECompositeElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEConvolveMatrixElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEConvolveMatrixElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEConvolveMatrixElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEDiffuseLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEDiffuseLightingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEDiffuseLightingElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEDisplacementMapElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEDisplacementMapElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEDisplacementMapElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEDistantLightElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEDistantLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEDistantLightElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEDropShadowElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEDropShadowElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEDropShadowElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEFloodElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEFloodElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEFloodElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEFuncAElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEFuncAElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEFuncAElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEFuncBElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEFuncBElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEFuncBElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEFuncGElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEFuncGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEFuncGElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEFuncRElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEFuncRElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEFuncRElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEGaussianBlurElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEGaussianBlurElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEGaussianBlurElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEImageElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEImageElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEMergeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEMergeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEMergeElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEMergeNodeElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEMergeNodeElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEMergeNodeElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEMorphologyElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEMorphologyElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEMorphologyElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEOffsetElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEOffsetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEOffsetElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFEPointLightElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFEPointLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFEPointLightElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFESpecularLightingElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFESpecularLightingElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFESpecularLightingElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFESpotLightElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFESpotLightElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFESpotLightElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFETileElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFETileElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFETileElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFETurbulenceElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFETurbulenceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFETurbulenceElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGFilterElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFilterElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFilterElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontFaceElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontFaceElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontFaceElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontFaceFormatElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontFaceFormatElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontFaceFormatElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontFaceNameElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontFaceNameElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontFaceNameElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontFaceSrcElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontFaceSrcElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontFaceSrcElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGFontFaceUriElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGFontFaceUriElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGFontFaceUriElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGForeignObjectElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGForeignObjectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGForeignObjectElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGGElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGGElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGGlyphElement"), value); |
| } |
| |
| #endif |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGGlyphRefElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGGlyphRefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGGlyphRefElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGGradientElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGGraphicsElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGGraphicsElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGGraphicsElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGHKernElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGHKernElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGHKernElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGImageElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGImageElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGImageElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGLengthConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGLength"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGLength"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGLengthListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGLengthList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGLengthList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGLineElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGLineElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGLineElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGLinearGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGLinearGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGLinearGradientElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGMPathElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMPathElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGMarkerElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMarkerElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMarkerElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGMaskElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMaskElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMaskElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGMatrixConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMatrix"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMatrix"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGMetadataElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMetadataElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMetadataElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGMissingGlyphElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGMissingGlyphElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGMissingGlyphElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGNumberConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGNumber"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGNumber"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGNumberListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGNumberList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGNumberList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPaintConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPaint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPaint"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSeg"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSeg"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegArcAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegArcAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegArcAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegArcRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegArcRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegArcRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegClosePathConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegClosePath"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegClosePath"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoCubicAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoCubicAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoCubicRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoCubicRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoCubicSmoothAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicSmoothAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoCubicSmoothAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoCubicSmoothRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoCubicSmoothRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoCubicSmoothRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoQuadraticAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoQuadraticRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticSmoothAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoQuadraticSmoothAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegCurvetoQuadraticSmoothRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegCurvetoQuadraticSmoothRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegCurvetoQuadraticSmoothRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoHorizontalAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoHorizontalAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoHorizontalAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoHorizontalRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoHorizontalRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoHorizontalRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoVerticalAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoVerticalAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoVerticalAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegLinetoVerticalRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegLinetoVerticalRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegLinetoVerticalRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegMovetoAbsConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegMovetoAbs"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegMovetoAbs"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPathSegMovetoRelConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPathSegMovetoRel"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPathSegMovetoRel"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPatternElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPatternElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPatternElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPointConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPoint"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPoint"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPointListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPointList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPointList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPolygonElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPolygonElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPolygonElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPolylineElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPolylineElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPolylineElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGPreserveAspectRatioConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGPreserveAspectRatio"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGPreserveAspectRatio"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGRadialGradientElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGRadialGradientElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGRadialGradientElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGRectConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGRect"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGRect"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGRectElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGRectElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGRectElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGRenderingIntentConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGRenderingIntent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGRenderingIntent"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGSVGElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGSVGElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGSVGElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGScriptElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGScriptElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGScriptElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGSetElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGSetElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGSetElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGStopElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGStopElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGStopElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGStringListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGStringList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGStringList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGStyleElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGStyleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGStyleElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGSwitchElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGSwitchElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGSwitchElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGSymbolElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGSymbolElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGSymbolElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTRefElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTRefElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTRefElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTSpanElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTSpanElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTSpanElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTextContentElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTextContentElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTextContentElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTextElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTextElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTextElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTextPathElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTextPathElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTextPathElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTextPositioningElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTextPositioningElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTextPositioningElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTitleElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTitleElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTitleElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTransformConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTransform"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTransform"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGTransformListConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGTransformList"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGTransformList"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGUnitTypesConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGUnitTypes"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGUnitTypes"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGUseElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGUseElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGUseElement"), value); |
| } |
| |
| |
| #if ENABLE(SVG_FONTS) |
| bool setJSDOMWindowSVGVKernElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGVKernElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGVKernElement"), value); |
| } |
| |
| #endif |
| |
| bool setJSDOMWindowSVGViewElementConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGViewElement"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGViewElement"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGViewSpecConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGViewSpec"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGViewSpec"), value); |
| } |
| |
| |
| bool setJSDOMWindowSVGZoomEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "SVGZoomEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "SVGZoomEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowWorkerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "Worker"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "Worker"), value); |
| } |
| |
| |
| bool setJSDOMWindowDOMParserConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "DOMParser"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "DOMParser"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLHttpRequestConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLHttpRequest"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLHttpRequest"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLHttpRequestEventTargetConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLHttpRequestEventTarget"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLHttpRequestEventTarget"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLHttpRequestProgressEventConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLHttpRequestProgressEvent"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLHttpRequestProgressEvent"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLHttpRequestUploadConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLHttpRequestUpload"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLHttpRequestUpload"), value); |
| } |
| |
| |
| bool setJSDOMWindowXMLSerializerConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XMLSerializer"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XMLSerializer"), value); |
| } |
| |
| |
| bool setJSDOMWindowXPathEvaluatorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XPathEvaluator"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XPathEvaluator"), value); |
| } |
| |
| |
| bool setJSDOMWindowXPathExceptionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XPathException"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XPathException"), value); |
| } |
| |
| |
| bool setJSDOMWindowXPathExpressionConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XPathExpression"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XPathExpression"), value); |
| } |
| |
| |
| bool setJSDOMWindowXPathResultConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XPathResult"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XPathResult"), value); |
| } |
| |
| |
| #if ENABLE(XSLT) |
| bool setJSDOMWindowXSLTProcessorConstructor(ExecState* state, EncodedJSValue thisValue, EncodedJSValue encodedValue) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSValue value = JSValue::decode(encodedValue); |
| UNUSED_PARAM(thisValue); |
| JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue)); |
| if (UNLIKELY(!castedThis)) { |
| return throwSetterTypeError(*state, throwScope, "Window", "XSLTProcessor"); |
| } |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return false; |
| // Shadowing a built-in constructor. |
| return castedThis->putDirect(state->vm(), Identifier::fromString(state, "XSLTProcessor"), value); |
| } |
| |
| #endif |
| |
| JSValue JSDOMWindow::getConstructor(VM& vm, const JSGlobalObject* globalObject) |
| { |
| return getDOMConstructor<JSDOMWindowConstructor>(vm, *jsCast<const JSDOMGlobalObject*>(globalObject)); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetSelection(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.getSelection()); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionFocus(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| auto& impl = castedThis->wrapped(); |
| impl.focus(callerDOMWindow(state)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionBlur(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| auto& impl = castedThis->wrapped(); |
| impl.blur(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionClose(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| auto& impl = castedThis->wrapped(); |
| auto* document = callerDOMWindow(state).document(); |
| if (!document) |
| return JSValue::encode(jsUndefined()); |
| impl.close(*document); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionPrint(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| impl.print(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionStop(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| impl.stop(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionOpen(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->open(*state)); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionShowModalDialog(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->showModalDialog(*state)); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionAlert1(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| impl.alert(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionAlert2(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto message = state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.alert(WTFMove(message)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionAlert(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| size_t argsCount = std::min<size_t>(1, state->argumentCount()); |
| if (argsCount == 0) { |
| return jsDOMWindowInstanceFunctionAlert1(state); |
| } |
| if (argsCount == 1) { |
| return jsDOMWindowInstanceFunctionAlert2(state); |
| } |
| return throwVMTypeError(state, throwScope); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionConfirm(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto message = state->argument(0).isUndefined() ? emptyString() : state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = jsBoolean(impl.confirm(WTFMove(message))); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionPrompt(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto message = state->argument(0).isUndefined() ? emptyString() : state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto defaultValue = state->argument(1).isUndefined() ? emptyString() : state->uncheckedArgument(1).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = jsStringOrNull(state, impl.prompt(WTFMove(message), WTFMove(defaultValue))); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionFind(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto string = state->argument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto caseSensitive = state->argument(1).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto backwards = state->argument(2).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto wrap = state->argument(3).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto wholeWord = state->argument(4).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto searchInFrames = state->argument(5).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto showDialog = state->argument(6).toBoolean(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = jsBoolean(impl.find(WTFMove(string), WTFMove(caseSensitive), WTFMove(backwards), WTFMove(wrap), WTFMove(wholeWord), WTFMove(searchInFrames), WTFMove(showDialog))); |
| return JSValue::encode(result); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScrollBy1(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 2)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto x = convert<double>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<double>(*state, state->uncheckedArgument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollBy(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScrollTo1(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 2)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto x = convert<double>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<double>(*state, state->uncheckedArgument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollTo(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScroll1(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 2)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto x = convert<double>(*state, state->uncheckedArgument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<double>(*state, state->uncheckedArgument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollTo(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScrollBy2(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto option = state->argument(0).isUndefined() ? DOMWindow::ScrollToOptions() : convertDictionary<DOMWindow::ScrollToOptions>(*state, state->uncheckedArgument(0)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollBy(option.value()); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScrollBy(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| size_t argsCount = std::min<size_t>(2, state->argumentCount()); |
| if (argsCount == 0) { |
| return jsDOMWindowInstanceFunctionScrollBy2(state); |
| } |
| if (argsCount == 1) { |
| return jsDOMWindowInstanceFunctionScrollBy2(state); |
| } |
| if (argsCount == 2) { |
| return jsDOMWindowInstanceFunctionScrollBy1(state); |
| } |
| return throwVMTypeError(state, throwScope); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScrollTo2(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto options = state->argument(0).isUndefined() ? DOMWindow::ScrollToOptions() : convertDictionary<DOMWindow::ScrollToOptions>(*state, state->uncheckedArgument(0)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollTo(options.value()); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScrollTo(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| size_t argsCount = std::min<size_t>(2, state->argumentCount()); |
| if (argsCount == 0) { |
| return jsDOMWindowInstanceFunctionScrollTo2(state); |
| } |
| if (argsCount == 1) { |
| return jsDOMWindowInstanceFunctionScrollTo2(state); |
| } |
| if (argsCount == 2) { |
| return jsDOMWindowInstanceFunctionScrollTo1(state); |
| } |
| return throwVMTypeError(state, throwScope); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionScroll2(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto options = state->argument(0).isUndefined() ? DOMWindow::ScrollToOptions() : convertDictionary<DOMWindow::ScrollToOptions>(*state, state->uncheckedArgument(0)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.scrollTo(options.value()); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionScroll(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| size_t argsCount = std::min<size_t>(2, state->argumentCount()); |
| if (argsCount == 0) { |
| return jsDOMWindowInstanceFunctionScroll2(state); |
| } |
| if (argsCount == 1) { |
| return jsDOMWindowInstanceFunctionScroll2(state); |
| } |
| if (argsCount == 2) { |
| return jsDOMWindowInstanceFunctionScroll1(state); |
| } |
| return throwVMTypeError(state, throwScope); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMoveBy(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto x = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<float>(*state, state->argument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.moveBy(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMoveTo(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto x = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<float>(*state, state->argument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.moveTo(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionResizeBy(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto x = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto y = convert<float>(*state, state->argument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.resizeBy(WTFMove(x), WTFMove(y)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionResizeTo(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto width = convert<float>(*state, state->argument(0), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto height = convert<float>(*state, state->argument(1), ShouldAllowNonFinite::Yes); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.resizeTo(WTFMove(width), WTFMove(height)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionMatchMedia(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto query = state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.matchMedia(WTFMove(query))); |
| return JSValue::encode(result); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionGetComputedStyle1(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto element = JSElement::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!element)) |
| return throwArgumentTypeError(*state, throwScope, 0, "element", "Window", "getComputedStyle", "Element"); |
| auto pseudoElement = state->argument(1).isUndefined() ? String() : valueToStringWithUndefinedOrNullCheck(state, state->uncheckedArgument(1)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = toJSNewlyCreated(state, castedThis->globalObject(), impl.getComputedStyle(*element, WTFMove(pseudoElement))); |
| return JSValue::encode(result); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionGetComputedStyle2(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| ExceptionCode ec = 0; |
| auto document = JSDocument::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!document)) |
| return throwArgumentTypeError(*state, throwScope, 0, "document", "Window", "getComputedStyle", "Document"); |
| auto pseudoElement = state->argument(1).isUndefined() ? String() : valueToStringWithUndefinedOrNullCheck(state, state->uncheckedArgument(1)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = toJSNewlyCreated(state, castedThis->globalObject(), impl.getComputedStyle(*document, WTFMove(pseudoElement), ec)); |
| |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetComputedStyle(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| size_t argsCount = std::min<size_t>(2, state->argumentCount()); |
| if (argsCount == 1) { |
| JSValue distinguishingArg = state->uncheckedArgument(0); |
| if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSElement::info())) |
| return jsDOMWindowInstanceFunctionGetComputedStyle1(state); |
| if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSDocument::info())) |
| return jsDOMWindowInstanceFunctionGetComputedStyle2(state); |
| } |
| if (argsCount == 2) { |
| JSValue distinguishingArg = state->uncheckedArgument(0); |
| if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSElement::info())) |
| return jsDOMWindowInstanceFunctionGetComputedStyle1(state); |
| if (distinguishingArg.isObject() && asObject(distinguishingArg)->inherits(JSDocument::info())) |
| return jsDOMWindowInstanceFunctionGetComputedStyle2(state); |
| } |
| return argsCount < 1 ? throwVMError(state, throwScope, createNotEnoughArgumentsError(state)) : throwVMTypeError(state, throwScope); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionGetMatchedCSSRules(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| Element* element = nullptr; |
| if (!state->argument(0).isUndefinedOrNull()) { |
| element = JSElement::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!element)) |
| return throwArgumentTypeError(*state, throwScope, 0, "element", "Window", "getMatchedCSSRules", "Element"); |
| } |
| auto pseudoElement = state->argument(1).isUndefined() ? String() : valueToStringWithUndefinedOrNullCheck(state, state->uncheckedArgument(1)); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = toJS(state, castedThis->globalObject(), impl.getMatchedCSSRules(WTFMove(element), WTFMove(pseudoElement))); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitConvertPointFromPageToNode(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| Node* node = nullptr; |
| if (!state->argument(0).isUndefinedOrNull()) { |
| node = JSNode::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!node)) |
| return throwArgumentTypeError(*state, throwScope, 0, "node", "Window", "webkitConvertPointFromPageToNode", "Node"); |
| } |
| WebKitPoint* p = nullptr; |
| if (!state->argument(1).isUndefinedOrNull()) { |
| p = JSWebKitPoint::toWrapped(state->uncheckedArgument(1)); |
| if (UNLIKELY(!p)) |
| return throwArgumentTypeError(*state, throwScope, 1, "p", "Window", "webkitConvertPointFromPageToNode", "WebKitPoint"); |
| } |
| JSValue result = toJS(state, castedThis->globalObject(), impl.webkitConvertPointFromPageToNode(WTFMove(node), WTFMove(p))); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitConvertPointFromNodeToPage(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| Node* node = nullptr; |
| if (!state->argument(0).isUndefinedOrNull()) { |
| node = JSNode::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!node)) |
| return throwArgumentTypeError(*state, throwScope, 0, "node", "Window", "webkitConvertPointFromNodeToPage", "Node"); |
| } |
| WebKitPoint* p = nullptr; |
| if (!state->argument(1).isUndefinedOrNull()) { |
| p = JSWebKitPoint::toWrapped(state->uncheckedArgument(1)); |
| if (UNLIKELY(!p)) |
| return throwArgumentTypeError(*state, throwScope, 1, "p", "Window", "webkitConvertPointFromNodeToPage", "WebKitPoint"); |
| } |
| JSValue result = toJS(state, castedThis->globalObject(), impl.webkitConvertPointFromNodeToPage(WTFMove(node), WTFMove(p))); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionPostMessage(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| return JSValue::encode(castedThis->postMessage(*state)); |
| } |
| |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionRequestAnimationFrame(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| if (UNLIKELY(!state->uncheckedArgument(0).isFunction())) |
| return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "Window", "requestAnimationFrame"); |
| auto callback = JSRequestAnimationFrameCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); |
| JSValue result = jsNumber(impl.requestAnimationFrame(WTFMove(callback))); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionCancelAnimationFrame(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto id = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.cancelAnimationFrame(WTFMove(id)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitRequestAnimationFrame(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| if (UNLIKELY(!state->uncheckedArgument(0).isFunction())) |
| return throwArgumentMustBeFunctionError(*state, throwScope, 0, "callback", "Window", "webkitRequestAnimationFrame"); |
| auto callback = JSRequestAnimationFrameCallback::create(asObject(state->uncheckedArgument(0)), castedThis->globalObject()); |
| JSValue result = jsNumber(impl.webkitRequestAnimationFrame(WTFMove(callback))); |
| return JSValue::encode(result); |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitCancelAnimationFrame(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto id = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.cancelAnimationFrame(WTFMove(id)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| #endif |
| |
| #if ENABLE(REQUEST_ANIMATION_FRAME) |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionWebkitCancelRequestAnimationFrame(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto id = convert<int32_t>(*state, state->uncheckedArgument(0), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.cancelAnimationFrame(WTFMove(id)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| #endif |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionCaptureEvents(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| impl.captureEvents(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionReleaseEvents(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| impl.releaseEvents(); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| #if ENABLE(FETCH_API) |
| static EncodedJSValue jsDOMWindowInstanceFunctionFetchRequestPromise(ExecState*, Ref<DeferredPromise>&&); |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionFetchRequest(ExecState* state) |
| { |
| ASSERT(state); |
| return JSValue::encode(callPromiseFunction<jsDOMWindowInstanceFunctionFetchRequestPromise, PromiseExecutionScope::WindowOnly>(*state)); |
| } |
| |
| static inline EncodedJSValue jsDOMWindowInstanceFunctionFetchRequestPromise(ExecState* state, Ref<DeferredPromise>&& promise) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| auto request = JSFetchRequest::toWrapped(state->uncheckedArgument(0)); |
| if (UNLIKELY(!request)) |
| return throwArgumentTypeError(*state, throwScope, 0, "request", "Window", "fetchRequest", "FetchRequest"); |
| WebCore::DOMWindowFetch::fetch(impl, *request, WTFMove(promise)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| #endif |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionOpenDatabase(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 4)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| ExceptionCode ec = 0; |
| auto name = state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto version = state->uncheckedArgument(1).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto displayName = state->uncheckedArgument(2).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| auto estimatedSize = convert<uint32_t>(*state, state->uncheckedArgument(3), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| RefPtr<DatabaseCallback> creationCallback; |
| if (!state->argument(4).isUndefinedOrNull()) { |
| if (!state->uncheckedArgument(4).isFunction()) |
| return throwArgumentMustBeFunctionError(*state, throwScope, 4, "creationCallback", "Window", "openDatabase"); |
| creationCallback = JSDatabaseCallback::create(asObject(state->uncheckedArgument(4)), castedThis->globalObject()); |
| } |
| JSValue result = toJS(state, castedThis->globalObject(), WebCore::DOMWindowWebDatabase::openDatabase(impl, WTFMove(name), WTFMove(version), WTFMove(displayName), WTFMove(estimatedSize), WTFMove(creationCallback), ec)); |
| |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionSetTimeout(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->setTimeout(*state)); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionClearTimeout(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto handle = convert<int32_t>(*state, state->argument(0), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.clearTimeout(WTFMove(handle)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionSetInterval(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| return JSValue::encode(castedThis->setInterval(*state)); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionClearInterval(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| auto handle = convert<int32_t>(*state, state->argument(0), NormalConversion); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| impl.clearInterval(WTFMove(handle)); |
| return JSValue::encode(jsUndefined()); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionAtob(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| ExceptionCode ec = 0; |
| auto string = state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = jsStringWithCache(state, impl.atob(WTFMove(string), ec)); |
| |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| EncodedJSValue JSC_HOST_CALL jsDOMWindowInstanceFunctionBtoa(ExecState* state) |
| { |
| VM& vm = state->vm(); |
| auto throwScope = DECLARE_THROW_SCOPE(vm); |
| UNUSED_PARAM(throwScope); |
| JSDOMWindow* castedThis = toJSDOMWindow(state->thisValue().toThis(state, NotStrictMode)); |
| if (UNLIKELY(!castedThis)) |
| return throwVMTypeError(state, throwScope); |
| ASSERT_GC_OBJECT_INHERITS(castedThis, JSDOMWindow::info()); |
| if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped(), ThrowSecurityError)) |
| return JSValue::encode(jsUndefined()); |
| auto& impl = castedThis->wrapped(); |
| if (UNLIKELY(state->argumentCount() < 1)) |
| return throwVMError(state, throwScope, createNotEnoughArgumentsError(state)); |
| ExceptionCode ec = 0; |
| auto string = state->uncheckedArgument(0).toWTFString(state); |
| RETURN_IF_EXCEPTION(throwScope, encodedJSValue()); |
| JSValue result = jsStringWithCache(state, impl.btoa(WTFMove(string), ec)); |
| |
| setDOMException(state, throwScope, ec); |
| return JSValue::encode(result); |
| } |
| |
| void JSDOMWindow::visitChildren(JSCell* cell, SlotVisitor& visitor) |
| { |
| auto* thisObject = jsCast<JSDOMWindow*>(cell); |
| ASSERT_GC_OBJECT_INHERITS(thisObject, info()); |
| Base::visitChildren(thisObject, visitor); |
| thisObject->wrapped().visitJSEventListeners(visitor); |
| thisObject->visitAdditionalChildren(visitor); |
| } |
| |
| |
| } |