https://bugs.webkit.org/show_bug.cgi?id=150613
Reviewed by Darin Adler.
Source/WebCore:
Renaming impl to wrapped in classes and binding generated classes.
No change in behavior.
* Modules/plugins/QuickTimePluginReplacement.mm:
(WebCore::JSQuickTimePluginReplacement::timedMetaData):
(WebCore::JSQuickTimePluginReplacement::accessLog):
(WebCore::JSQuickTimePluginReplacement::errorLog):
* bindings/js/JSAttrCustom.cpp:
(WebCore::JSAttr::visitAdditionalChildren):
* bindings/js/JSAudioBufferSourceNodeCustom.cpp:
(WebCore::JSAudioBufferSourceNode::setBuffer):
* bindings/js/JSAudioTrackCustom.cpp:
(WebCore::JSAudioTrack::visitAdditionalChildren):
(WebCore::JSAudioTrack::setKind):
(WebCore::JSAudioTrack::setLanguage):
* bindings/js/JSAudioTrackListCustom.cpp:
(WebCore::JSAudioTrackList::visitAdditionalChildren):
* bindings/js/JSBiquadFilterNodeCustom.cpp:
(WebCore::JSBiquadFilterNode::setType):
* bindings/js/JSCSSRuleCustom.cpp:
(WebCore::JSCSSRule::visitAdditionalChildren):
* bindings/js/JSCSSRuleListCustom.cpp:
(WebCore::JSCSSRuleListOwner::isReachableFromOpaqueRoots):
* bindings/js/JSCSSStyleDeclarationCustom.cpp:
(WebCore::JSCSSStyleDeclaration::visitAdditionalChildren):
(WebCore::getPropertyValueFallback):
(WebCore::cssPropertyGetterPixelOrPosPrefix):
(WebCore::cssPropertyGetter):
(WebCore::JSCSSStyleDeclaration::putDelegate):
(WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
(WebCore::JSCSSStyleDeclaration::getOwnPropertyNames):
* bindings/js/JSCSSValueCustom.cpp:
(WebCore::JSCSSValueOwner::isReachableFromOpaqueRoots):
(WebCore::JSCSSValueOwner::finalize):
* bindings/js/JSCanvasRenderingContext2DCustom.cpp:
(WebCore::toHTMLCanvasStyle):
(WebCore::JSCanvasRenderingContext2D::strokeStyle):
(WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
(WebCore::JSCanvasRenderingContext2D::fillStyle):
(WebCore::JSCanvasRenderingContext2D::setFillStyle):
(WebCore::JSCanvasRenderingContext2D::webkitLineDash):
(WebCore::JSCanvasRenderingContext2D::setWebkitLineDash):
* bindings/js/JSCanvasRenderingContextCustom.cpp:
(WebCore::JSCanvasRenderingContext::visitAdditionalChildren):
* bindings/js/JSCharacterDataCustom.cpp:
(WebCore::JSCharacterData::before):
(WebCore::JSCharacterData::after):
(WebCore::JSCharacterData::replaceWith):
* bindings/js/JSCommandLineAPIHostCustom.cpp:
(WebCore::JSCommandLineAPIHost::inspectedObject):
(WebCore::JSCommandLineAPIHost::getEventListeners):
(WebCore::JSCommandLineAPIHost::inspect):
(WebCore::JSCommandLineAPIHost::databaseId):
(WebCore::JSCommandLineAPIHost::storageId):
* bindings/js/JSCryptoCustom.cpp:
(WebCore::JSCrypto::getRandomValues):
* bindings/js/JSCryptoKeyCustom.cpp:
(WebCore::JSCryptoKey::algorithm):
* bindings/js/JSCryptoKeyPairCustom.cpp:
(WebCore::JSCryptoKeyPair::visitAdditionalChildren):
* bindings/js/JSCustomEventCustom.cpp:
(WebCore::JSCustomEvent::detail):
* bindings/js/JSCustomXPathNSResolver.cpp:
(WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
* bindings/js/JSDOMBinding.cpp:
(WebCore::reportException):
(WebCore::activeDOMWindow):
(WebCore::firstDOMWindow):
* bindings/js/JSDOMFormDataCustom.cpp:
(WebCore::toHTMLFormElementOrNull):
(WebCore::JSDOMFormData::append):
* bindings/js/JSDOMMimeTypeArrayCustom.cpp:
(WebCore::JSDOMMimeTypeArray::nameGetter):
* bindings/js/JSDOMNamedFlowCollectionCustom.cpp:
(WebCore::JSDOMNamedFlowCollection::nameGetter):
* bindings/js/JSDOMPluginArrayCustom.cpp:
(WebCore::JSDOMPluginArray::nameGetter):
* bindings/js/JSDOMPluginCustom.cpp:
(WebCore::JSDOMPlugin::nameGetter):
* bindings/js/JSDOMStringListCustom.cpp:
(WebCore::JSDOMStringList::toWrapped):
* bindings/js/JSDOMStringMapCustom.cpp:
(WebCore::JSDOMStringMap::getOwnPropertySlotDelegate):
(WebCore::JSDOMStringMap::getOwnPropertyNames):
(WebCore::JSDOMStringMap::deleteProperty):
(WebCore::JSDOMStringMap::putDelegate):
* bindings/js/JSDOMTokenListCustom.cpp:
(WebCore::JSDOMTokenList::toggle):
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::shouldAllowAccessFrom):
(WebCore::JSDOMWindowBase::JSDOMWindowBase):
(WebCore::JSDOMWindowBase::updateDocument):
(WebCore::JSDOMWindowBase::scriptExecutionContext):
(WebCore::JSDOMWindowBase::printErrorMessage):
(WebCore::JSDOMWindowBase::supportsProfiling):
(WebCore::JSDOMWindowBase::supportsRichSourceInfo):
(WebCore::JSDOMWindowBase::shouldInterruptScript):
(WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
(WebCore::JSDOMWindowBase::javaScriptRuntimeFlags):
(WebCore::JSDOMWindowBase::moduleLoaderResolve):
(WebCore::JSDOMWindowBase::moduleLoaderFetch):
(WebCore::JSDOMWindowBase::moduleLoaderEvaluate):
* bindings/js/JSDOMWindowBase.h:
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::visitAdditionalChildren):
(WebCore::childFrameGetter):
(WebCore::namedItemGetter):
(WebCore::jsDOMWindowWebKit):
(WebCore::jsDOMWindowIndexedDB):
(WebCore::JSDOMWindow::getOwnPropertySlot):
(WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
(WebCore::JSDOMWindow::put):
(WebCore::JSDOMWindow::putByIndex):
(WebCore::JSDOMWindow::deleteProperty):
(WebCore::JSDOMWindow::deletePropertyByIndex):
(WebCore::JSDOMWindow::getEnumerableLength):
(WebCore::JSDOMWindow::getStructurePropertyNames):
(WebCore::JSDOMWindow::getGenericPropertyNames):
(WebCore::JSDOMWindow::getPropertyNames):
(WebCore::JSDOMWindow::getOwnPropertyNames):
(WebCore::JSDOMWindow::defineOwnProperty):
(WebCore::JSDOMWindow::setLocation):
(WebCore::JSDOMWindow::open):
(WebCore::JSDOMWindow::showModalDialog):
(WebCore::JSDOMWindow::postMessage):
(WebCore::JSDOMWindow::setTimeout):
(WebCore::JSDOMWindow::setInterval):
(WebCore::JSDOMWindow::addEventListener):
(WebCore::JSDOMWindow::removeEventListener):
(WebCore::JSDOMWindow::toWrapped):
* bindings/js/JSDOMWindowShell.cpp:
(WebCore::JSDOMWindowShell::setWindow):
(WebCore::JSDOMWindowShell::wrapped):
* bindings/js/JSDOMWindowShell.h:
* bindings/js/JSDOMWrapper.h:
(WebCore::JSDOMWrapper::wrapped):
(WebCore::JSDOMWrapper::JSDOMWrapper):
* bindings/js/JSDataCueCustom.cpp:
(WebCore::JSDataCue::value):
(WebCore::JSDataCue::setValue):
* bindings/js/JSDataTransferCustom.cpp:
(WebCore::JSDataTransfer::types):
* bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp:
(WebCore::JSDedicatedWorkerGlobalScope::postMessage):
* bindings/js/JSDeviceMotionEventCustom.cpp:
(WebCore::JSDeviceMotionEvent::acceleration):
(WebCore::JSDeviceMotionEvent::accelerationIncludingGravity):
(WebCore::JSDeviceMotionEvent::rotationRate):
(WebCore::JSDeviceMotionEvent::interval):
(WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
* bindings/js/JSDeviceOrientationEventCustom.cpp:
(WebCore::JSDeviceOrientationEvent::alpha):
(WebCore::JSDeviceOrientationEvent::beta):
(WebCore::JSDeviceOrientationEvent::gamma):
(WebCore::JSDeviceOrientationEvent::webkitCompassHeading):
(WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy):
(WebCore::JSDeviceOrientationEvent::absolute):
(WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
* bindings/js/JSDocumentCustom.cpp:
(WebCore::JSDocument::prepend):
(WebCore::JSDocument::append):
* bindings/js/JSDocumentFragmentCustom.cpp:
(WebCore::JSDocumentFragment::prepend):
(WebCore::JSDocumentFragment::append):
* bindings/js/JSDocumentTypeCustom.cpp:
(WebCore::JSDocumentType::before):
(WebCore::JSDocumentType::after):
(WebCore::JSDocumentType::replaceWith):
* bindings/js/JSElementCustom.cpp:
(WebCore::JSElement::before):
(WebCore::JSElement::after):
(WebCore::JSElement::replaceWith):
(WebCore::JSElement::prepend):
(WebCore::JSElement::append):
* bindings/js/JSEventCustom.cpp:
(WebCore::JSEvent::clipboardData):
* bindings/js/JSEventListener.cpp:
(WebCore::JSEventListener::handleEvent):
* bindings/js/JSEventTargetCustom.cpp:
* bindings/js/JSFileReaderCustom.cpp:
(WebCore::JSFileReader::result):
* bindings/js/JSGeolocationCustom.cpp:
(WebCore::JSGeolocation::getCurrentPosition):
(WebCore::JSGeolocation::watchPosition):
* bindings/js/JSHTMLAllCollectionCustom.cpp:
(WebCore::namedItems):
(WebCore::callHTMLAllCollection):
(WebCore::JSHTMLAllCollection::item):
* bindings/js/JSHTMLCanvasElementCustom.cpp:
(WebCore::JSHTMLCanvasElement::getContext):
(WebCore::JSHTMLCanvasElement::probablySupportsContext):
(WebCore::JSHTMLCanvasElement::toDataURL):
* bindings/js/JSHTMLCollectionCustom.cpp:
(WebCore::JSHTMLCollection::nameGetter):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::nameGetter):
(WebCore::JSHTMLDocument::all):
(WebCore::findCallingDocument):
(WebCore::JSHTMLDocument::open):
(WebCore::documentWrite):
* bindings/js/JSHTMLElementCustom.cpp:
(WebCore::JSHTMLElement::pushEventHandlerScope):
* bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
(WebCore::namedItems):
* bindings/js/JSHTMLFormElementCustom.cpp:
(WebCore::JSHTMLFormElement::nameGetter):
* bindings/js/JSHTMLFrameElementCustom.cpp:
(WebCore::JSHTMLFrameElement::setLocation):
* bindings/js/JSHTMLFrameSetElementCustom.cpp:
(WebCore::JSHTMLFrameSetElement::nameGetter):
* bindings/js/JSHTMLInputElementCustom.cpp:
(WebCore::JSHTMLInputElement::selectionStart):
(WebCore::JSHTMLInputElement::setSelectionStart):
(WebCore::JSHTMLInputElement::selectionEnd):
(WebCore::JSHTMLInputElement::setSelectionEnd):
(WebCore::JSHTMLInputElement::selectionDirection):
(WebCore::JSHTMLInputElement::setSelectionDirection):
(WebCore::JSHTMLInputElement::setSelectionRange):
* bindings/js/JSHTMLMediaElementCustom.cpp:
(WebCore::JSHTMLMediaElement::setController):
* bindings/js/JSHTMLOptionsCollectionCustom.cpp:
(WebCore::JSHTMLOptionsCollection::nameGetter):
(WebCore::JSHTMLOptionsCollection::setLength):
(WebCore::JSHTMLOptionsCollection::indexSetter):
(WebCore::JSHTMLOptionsCollection::remove):
* bindings/js/JSHTMLSelectElementCustom.cpp:
(WebCore::JSHTMLSelectElement::remove):
(WebCore::JSHTMLSelectElement::indexSetter):
* bindings/js/JSHTMLTemplateElementCustom.cpp:
(WebCore::JSHTMLTemplateElement::content):
* bindings/js/JSHistoryCustom.cpp:
(WebCore::JSHistory::getOwnPropertySlotDelegate):
(WebCore::JSHistory::putDelegate):
(WebCore::JSHistory::deleteProperty):
(WebCore::JSHistory::deletePropertyByIndex):
(WebCore::JSHistory::getOwnPropertyNames):
(WebCore::JSHistory::state):
(WebCore::JSHistory::pushState):
(WebCore::JSHistory::replaceState):
* bindings/js/JSIDBDatabaseCustom.cpp:
(WebCore::JSIDBDatabase::createObjectStore):
* bindings/js/JSIDBObjectStoreCustom.cpp:
(WebCore::JSIDBObjectStore::createIndex):
* bindings/js/JSInspectorFrontendHostCustom.cpp:
(WebCore::JSInspectorFrontendHost::showContextMenu):
* bindings/js/JSLocationCustom.cpp:
(WebCore::JSLocation::getOwnPropertySlotDelegate):
(WebCore::JSLocation::putDelegate):
(WebCore::JSLocation::deleteProperty):
(WebCore::JSLocation::deletePropertyByIndex):
(WebCore::JSLocation::getOwnPropertyNames):
(WebCore::JSLocation::toStringFunction):
* bindings/js/JSMediaSourceStatesCustom.cpp:
(WebCore::JSMediaSourceStates::width):
(WebCore::JSMediaSourceStates::height):
(WebCore::JSMediaSourceStates::frameRate):
(WebCore::JSMediaSourceStates::aspectRatio):
(WebCore::JSMediaSourceStates::facingMode):
(WebCore::JSMediaSourceStates::volume):
* bindings/js/JSMessageChannelCustom.cpp:
(WebCore::JSMessageChannel::visitAdditionalChildren):
* bindings/js/JSMessageEventCustom.cpp:
(WebCore::JSMessageEvent::data):
(WebCore::handleInitMessageEvent):
* bindings/js/JSMessagePortCustom.cpp:
(WebCore::JSMessagePort::visitAdditionalChildren):
(WebCore::JSMessagePort::postMessage):
* bindings/js/JSMockContentFilterSettingsCustom.cpp:
(WebCore::JSMockContentFilterSettings::decisionPoint):
(WebCore::JSMockContentFilterSettings::setDecisionPoint):
(WebCore::JSMockContentFilterSettings::decision):
(WebCore::JSMockContentFilterSettings::setDecision):
(WebCore::JSMockContentFilterSettings::unblockRequestDecision):
(WebCore::JSMockContentFilterSettings::setUnblockRequestDecision):
* bindings/js/JSMutationObserverCustom.cpp:
(WebCore::JSMutationObserverOwner::isReachableFromOpaqueRoots):
* bindings/js/JSNamedNodeMapCustom.cpp:
(WebCore::JSNamedNodeMap::nameGetter):
* bindings/js/JSNavigatorCustom.cpp:
(WebCore::JSNavigator::webkitGetUserMedia):
* bindings/js/JSNodeCustom.cpp:
(WebCore::JSNodeOwner::isReachableFromOpaqueRoots):
(WebCore::JSNode::insertBefore):
(WebCore::JSNode::replaceChild):
(WebCore::JSNode::removeChild):
(WebCore::JSNode::appendChild):
(WebCore::JSNode::visitAdditionalChildren):
* bindings/js/JSNodeIteratorCustom.cpp:
(WebCore::JSNodeIterator::visitAdditionalChildren):
* bindings/js/JSNodeListCustom.cpp:
(WebCore::JSNodeListOwner::isReachableFromOpaqueRoots):
* bindings/js/JSNodeOrString.cpp:
(WebCore::toNodeOrStringVector):
* bindings/js/JSOscillatorNodeCustom.cpp:
(WebCore::JSOscillatorNode::setType):
* bindings/js/JSPannerNodeCustom.cpp:
(WebCore::JSPannerNode::setPanningModel):
(WebCore::JSPannerNode::setDistanceModel):
* bindings/js/JSPluginElementFunctions.cpp:
(WebCore::pluginScriptObjectFromPluginViewBase):
(WebCore::pluginScriptObject):
(WebCore::pluginElementGetCallData):
* bindings/js/JSPopStateEventCustom.cpp:
(WebCore::JSPopStateEvent::state):
* bindings/js/JSRTCStatsResponseCustom.cpp:
(WebCore::JSRTCStatsResponse::nameGetter):
* bindings/js/JSSQLResultSetRowListCustom.cpp:
(WebCore::JSSQLResultSetRowList::item):
* bindings/js/JSSQLTransactionCustom.cpp:
(WebCore::JSSQLTransaction::executeSql):
* bindings/js/JSSVGLengthCustom.cpp:
(WebCore::JSSVGLength::value):
(WebCore::JSSVGLength::setValue):
(WebCore::JSSVGLength::convertToSpecifiedUnits):
* bindings/js/JSStorageCustom.cpp:
(WebCore::JSStorage::nameGetter):
(WebCore::JSStorage::deleteProperty):
(WebCore::JSStorage::getOwnPropertyNames):
(WebCore::JSStorage::putDelegate):
* bindings/js/JSStyleSheetCustom.cpp:
(WebCore::JSStyleSheet::visitAdditionalChildren):
* bindings/js/JSStyleSheetListCustom.cpp:
(WebCore::JSStyleSheetList::nameGetter):
* bindings/js/JSSubtleCryptoCustom.cpp:
(WebCore::JSSubtleCrypto::encrypt):
(WebCore::JSSubtleCrypto::decrypt):
(WebCore::JSSubtleCrypto::sign):
(WebCore::JSSubtleCrypto::verify):
(WebCore::JSSubtleCrypto::wrapKey):
(WebCore::JSSubtleCrypto::unwrapKey):
* bindings/js/JSTextTrackCueCustom.cpp:
(WebCore::JSTextTrackCueOwner::isReachableFromOpaqueRoots):
(WebCore::JSTextTrackCue::visitAdditionalChildren):
* bindings/js/JSTextTrackCustom.cpp:
(WebCore::JSTextTrack::visitAdditionalChildren):
(WebCore::JSTextTrack::setKind):
(WebCore::JSTextTrack::setLanguage):
* bindings/js/JSTextTrackListCustom.cpp:
(WebCore::JSTextTrackList::visitAdditionalChildren):
* bindings/js/JSTrackCustom.cpp:
(WebCore::toTrack):
* bindings/js/JSTrackEventCustom.cpp:
(WebCore::JSTrackEvent::track):
* bindings/js/JSTreeWalkerCustom.cpp:
(WebCore::JSTreeWalker::visitAdditionalChildren):
* bindings/js/JSUserMessageHandlersNamespaceCustom.cpp:
(WebCore::JSUserMessageHandlersNamespace::getOwnPropertySlotDelegate):
* bindings/js/JSVideoTrackCustom.cpp:
(WebCore::JSVideoTrack::visitAdditionalChildren):
(WebCore::JSVideoTrack::setKind):
(WebCore::JSVideoTrack::setLanguage):
* bindings/js/JSVideoTrackListCustom.cpp:
(WebCore::JSVideoTrackList::visitAdditionalChildren):
* bindings/js/JSWebGL2RenderingContextCustom.cpp:
(WebCore::JSWebGL2RenderingContext::visitAdditionalChildren):
(WebCore::JSWebGL2RenderingContext::getIndexedParameter):
* bindings/js/JSWebGLRenderingContextBaseCustom.cpp:
(WebCore::getObjectParameter):
(WebCore::JSWebGLRenderingContextBase::visitAdditionalChildren):
(WebCore::JSWebGLRenderingContextBase::getAttachedShaders):
(WebCore::JSWebGLRenderingContextBase::getExtension):
(WebCore::JSWebGLRenderingContextBase::getFramebufferAttachmentParameter):
(WebCore::JSWebGLRenderingContextBase::getParameter):
(WebCore::JSWebGLRenderingContextBase::getProgramParameter):
(WebCore::JSWebGLRenderingContextBase::getShaderParameter):
(WebCore::JSWebGLRenderingContextBase::getSupportedExtensions):
(WebCore::JSWebGLRenderingContextBase::getUniform):
(WebCore::JSWebGLRenderingContextBase::uniform1fv):
(WebCore::JSWebGLRenderingContextBase::uniform1iv):
(WebCore::JSWebGLRenderingContextBase::uniform2fv):
(WebCore::JSWebGLRenderingContextBase::uniform2iv):
(WebCore::JSWebGLRenderingContextBase::uniform3fv):
(WebCore::JSWebGLRenderingContextBase::uniform3iv):
(WebCore::JSWebGLRenderingContextBase::uniform4fv):
(WebCore::JSWebGLRenderingContextBase::uniform4iv):
(WebCore::JSWebGLRenderingContextBase::uniformMatrix2fv):
(WebCore::JSWebGLRenderingContextBase::uniformMatrix3fv):
(WebCore::JSWebGLRenderingContextBase::uniformMatrix4fv):
(WebCore::JSWebGLRenderingContextBase::vertexAttrib1fv):
(WebCore::JSWebGLRenderingContextBase::vertexAttrib2fv):
(WebCore::JSWebGLRenderingContextBase::vertexAttrib3fv):
(WebCore::JSWebGLRenderingContextBase::vertexAttrib4fv):
* bindings/js/JSWebGLRenderingContextCustom.cpp:
(WebCore::JSWebGLRenderingContext::visitAdditionalChildren):
* bindings/js/JSWorkerCustom.cpp:
(WebCore::JSWorker::postMessage):
(WebCore::constructJSWorker):
* bindings/js/JSWorkerGlobalScopeBase.cpp:
(WebCore::JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase):
(WebCore::JSWorkerGlobalScopeBase::scriptExecutionContext):
* bindings/js/JSWorkerGlobalScopeBase.h:
(WebCore::JSWorkerGlobalScopeBase::wrapped):
* bindings/js/JSWorkerGlobalScopeCustom.cpp:
(WebCore::JSWorkerGlobalScope::visitAdditionalChildren):
(WebCore::JSWorkerGlobalScope::importScripts):
(WebCore::JSWorkerGlobalScope::setTimeout):
(WebCore::JSWorkerGlobalScope::setInterval):
* bindings/js/JSXMLHttpRequestCustom.cpp:
(WebCore::JSXMLHttpRequest::visitAdditionalChildren):
(WebCore::JSXMLHttpRequest::open):
(WebCore::JSXMLHttpRequest::send):
(WebCore::JSXMLHttpRequest::responseText):
(WebCore::JSXMLHttpRequest::response):
* bindings/js/JSXPathResultCustom.cpp:
(WebCore::JSXPathResult::visitAdditionalChildren):
* bindings/js/JSXSLTProcessorCustom.cpp:
(WebCore::JSXSLTProcessor::setParameter):
(WebCore::JSXSLTProcessor::getParameter):
(WebCore::JSXSLTProcessor::removeParameter):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::execute):
* bindings/js/ScriptCachedFrameData.cpp:
(WebCore::ScriptCachedFrameData::restore):
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::clearWindowShell):
(WebCore::ScriptController::collectIsolatedContexts):
* bindings/js/ScriptState.cpp:
(WebCore::domWindowFromExecState):
* bindings/objc/DOM.mm:
(+[DOMNode _nodeFromJSWrapper:]):
* bindings/objc/DOMUtility.mm:
(JSC::createDOMWrapper):
* bindings/objc/WebScriptObject.mm:
(-[WebScriptObject _isSafeScript]):
(+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateGetOwnPropertySlotBody):
(GenerateHeader):
(GetIndexedGetterExpression):
(GenerateImplementation):
(NativeToJSValue):
* bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
(WebCore::jsTestActiveDOMObjectExcitingAttr):
(WebCore::jsTestActiveDOMObjectConstructor):
(WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
(WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
(WebCore::JSTestActiveDOMObjectOwner::finalize):
(WebCore::JSTestActiveDOMObject::toWrapped):
* bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
(WebCore::JSTestCustomConstructorWithNoInterfaceObjectOwner::finalize):
(WebCore::JSTestCustomConstructorWithNoInterfaceObject::toWrapped):
* bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
(WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
(WebCore::JSTestCustomNamedGetterOwner::finalize):
(WebCore::JSTestCustomNamedGetter::toWrapped):
* bindings/scripts/test/JS/JSTestEventConstructor.cpp:
(WebCore::jsTestEventConstructorAttr1):
(WebCore::jsTestEventConstructorAttr2):
(WebCore::JSTestEventConstructorOwner::finalize):
(WebCore::JSTestEventConstructor::toWrapped):
* bindings/scripts/test/JS/JSTestEventTarget.cpp:
(WebCore::JSTestEventTarget::getOwnPropertySlot):
(WebCore::JSTestEventTarget::getOwnPropertySlotByIndex):
(WebCore::JSTestEventTarget::getOwnPropertyNames):
(WebCore::jsTestEventTargetPrototypeFunctionItem):
(WebCore::jsTestEventTargetPrototypeFunctionAddEventListener):
(WebCore::jsTestEventTargetPrototypeFunctionRemoveEventListener):
(WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
(WebCore::JSTestEventTarget::visitChildren):
(WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestEventTargetOwner::finalize):
(WebCore::JSTestEventTarget::toWrapped):
* bindings/scripts/test/JS/JSTestException.cpp:
(WebCore::jsTestExceptionName):
(WebCore::JSTestExceptionOwner::finalize):
(WebCore::JSTestException::toWrapped):
* bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
(WebCore::JSTestGenerateIsReachableOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestGenerateIsReachableOwner::finalize):
(WebCore::JSTestGenerateIsReachable::toWrapped):
* bindings/scripts/test/JS/JSTestInterface.cpp:
(WebCore::jsTestInterfaceImplementsStr1):
(WebCore::jsTestInterfaceImplementsStr2):
(WebCore::jsTestInterfaceImplementsNode):
(WebCore::jsTestInterfaceSupplementalStr1):
(WebCore::jsTestInterfaceSupplementalStr2):
(WebCore::jsTestInterfaceSupplementalNode):
(WebCore::setJSTestInterfaceImplementsStr2):
(WebCore::setJSTestInterfaceImplementsNode):
(WebCore::setJSTestInterfaceSupplementalStr2):
(WebCore::setJSTestInterfaceSupplementalNode):
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod1):
(WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod1):
(WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
(WebCore::JSTestInterfaceOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestInterfaceOwner::finalize):
(WebCore::JSTestInterface::toWrapped):
* bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
(WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
(WebCore::JSTestMediaQueryListListenerOwner::finalize):
(WebCore::JSTestMediaQueryListListener::toWrapped):
* bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
(WebCore::JSTestNamedConstructorOwner::isReachableFromOpaqueRoots):
(WebCore::JSTestNamedConstructorOwner::finalize):
(WebCore::JSTestNamedConstructor::toWrapped):
* bindings/scripts/test/JS/JSTestNode.cpp:
(WebCore::jsTestNodeName):
(WebCore::setJSTestNodeName):
(WebCore::JSTestNode::visitChildren):
* bindings/scripts/test/JS/JSTestNode.h:
* bindings/scripts/test/JS/JSTestNondeterministic.cpp:
(WebCore::jsTestNondeterministicNondeterministicReadonlyAttr):
(WebCore::jsTestNondeterministicNondeterministicWriteableAttr):
(WebCore::jsTestNondeterministicNondeterministicExceptionAttr):
(WebCore::jsTestNondeterministicNondeterministicGetterExceptionAttr):
(WebCore::jsTestNondeterministicNondeterministicSetterExceptionAttr):
(WebCore::setJSTestNondeterministicNondeterministicWriteableAttr):
(WebCore::setJSTestNondeterministicNondeterministicExceptionAttr):
(WebCore::setJSTestNondeterministicNondeterministicGetterExceptionAttr):
(WebCore::setJSTestNondeterministicNondeterministicSetterExceptionAttr):
(WebCore::jsTestNondeterministicPrototypeFunctionNondeterministicZeroArgFunction):
(WebCore::JSTestNondeterministicOwner::finalize):
(WebCore::JSTestNondeterministic::toWrapped):
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjReadOnlyLongAttr):
(WebCore::jsTestObjReadOnlyStringAttr):
(WebCore::jsTestObjReadOnlyTestObjAttr):
(WebCore::jsTestObjTestSubObjEnabledBySettingConstructor):
(WebCore::jsTestObjEnumAttr):
(WebCore::jsTestObjByteAttr):
(WebCore::jsTestObjOctetAttr):
(WebCore::jsTestObjShortAttr):
(WebCore::jsTestObjUnsignedShortAttr):
(WebCore::jsTestObjLongAttr):
(WebCore::jsTestObjLongLongAttr):
(WebCore::jsTestObjUnsignedLongLongAttr):
(WebCore::jsTestObjStringAttr):
(WebCore::jsTestObjTestObjAttr):
(WebCore::jsTestObjXMLObjAttr):
(WebCore::jsTestObjCreate):
(WebCore::jsTestObjReflectedStringAttr):
(WebCore::jsTestObjReflectedIntegralAttr):
(WebCore::jsTestObjReflectedUnsignedIntegralAttr):
(WebCore::jsTestObjReflectedBooleanAttr):
(WebCore::jsTestObjReflectedURLAttr):
(WebCore::jsTestObjReflectedCustomIntegralAttr):
(WebCore::jsTestObjReflectedCustomBooleanAttr):
(WebCore::jsTestObjReflectedCustomURLAttr):
(WebCore::jsTestObjTypedArrayAttr):
(WebCore::jsTestObjAttrWithGetterException):
(WebCore::jsTestObjAttrWithSetterException):
(WebCore::jsTestObjStringAttrWithGetterException):
(WebCore::jsTestObjStringAttrWithSetterException):
(WebCore::jsTestObjStrictTypeCheckingAttribute):
(WebCore::jsTestObjOnfoo):
(WebCore::jsTestObjWithScriptStateAttribute):
(WebCore::jsTestObjWithCallWithAndSetterCallWithAttribute):
(WebCore::jsTestObjWithScriptExecutionContextAttribute):
(WebCore::jsTestObjWithScriptStateAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttribute):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
(WebCore::jsTestObjWithScriptArgumentsAndCallStackAttribute):
(WebCore::jsTestObjConditionalAttr1):
(WebCore::jsTestObjConditionalAttr2):
(WebCore::jsTestObjConditionalAttr3):
(WebCore::jsTestObjCachedAttribute1):
(WebCore::jsTestObjCachedAttribute2):
(WebCore::jsTestObjAnyAttribute):
(WebCore::jsTestObjContentDocument):
(WebCore::jsTestObjMutablePoint):
(WebCore::jsTestObjImmutablePoint):
(WebCore::jsTestObjStrawberry):
(WebCore::jsTestObjStrictFloat):
(WebCore::jsTestObjDescription):
(WebCore::jsTestObjId):
(WebCore::jsTestObjHash):
(WebCore::jsTestObjReplaceableAttribute):
(WebCore::jsTestObjNullableDoubleAttribute):
(WebCore::jsTestObjNullableLongAttribute):
(WebCore::jsTestObjNullableBooleanAttribute):
(WebCore::jsTestObjNullableStringAttribute):
(WebCore::jsTestObjNullableLongSettableAttribute):
(WebCore::jsTestObjNullableStringValue):
(WebCore::jsTestObjAttribute):
(WebCore::jsTestObjAttributeWithReservedEnumType):
(WebCore::jsTestObjPutForwardsAttribute):
(WebCore::jsTestObjPutForwardsNullableAttribute):
(WebCore::setJSTestObjEnumAttr):
(WebCore::setJSTestObjByteAttr):
(WebCore::setJSTestObjOctetAttr):
(WebCore::setJSTestObjShortAttr):
(WebCore::setJSTestObjUnsignedShortAttr):
(WebCore::setJSTestObjLongAttr):
(WebCore::setJSTestObjLongLongAttr):
(WebCore::setJSTestObjUnsignedLongLongAttr):
(WebCore::setJSTestObjStringAttr):
(WebCore::setJSTestObjTestObjAttr):
(WebCore::setJSTestObjXMLObjAttr):
(WebCore::setJSTestObjCreate):
(WebCore::setJSTestObjReflectedStringAttr):
(WebCore::setJSTestObjReflectedIntegralAttr):
(WebCore::setJSTestObjReflectedUnsignedIntegralAttr):
(WebCore::setJSTestObjReflectedBooleanAttr):
(WebCore::setJSTestObjReflectedURLAttr):
(WebCore::setJSTestObjReflectedCustomIntegralAttr):
(WebCore::setJSTestObjReflectedCustomBooleanAttr):
(WebCore::setJSTestObjReflectedCustomURLAttr):
(WebCore::setJSTestObjTypedArrayAttr):
(WebCore::setJSTestObjAttrWithGetterException):
(WebCore::setJSTestObjAttrWithSetterException):
(WebCore::setJSTestObjStringAttrWithGetterException):
(WebCore::setJSTestObjStringAttrWithSetterException):
(WebCore::setJSTestObjStrictTypeCheckingAttribute):
(WebCore::setJSTestObjOnfoo):
(WebCore::setJSTestObjWithScriptStateAttribute):
(WebCore::setJSTestObjWithCallWithAndSetterCallWithAttribute):
(WebCore::setJSTestObjWithScriptExecutionContextAttribute):
(WebCore::setJSTestObjWithScriptStateAttributeRaises):
(WebCore::setJSTestObjWithScriptExecutionContextAttributeRaises):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttribute):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
(WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
(WebCore::setJSTestObjWithScriptArgumentsAndCallStackAttribute):
(WebCore::setJSTestObjConditionalAttr1):
(WebCore::setJSTestObjConditionalAttr2):
(WebCore::setJSTestObjConditionalAttr3):
(WebCore::setJSTestObjAnyAttribute):
(WebCore::setJSTestObjMutablePoint):
(WebCore::setJSTestObjImmutablePoint):
(WebCore::setJSTestObjStrawberry):
(WebCore::setJSTestObjStrictFloat):
(WebCore::setJSTestObjId):
(WebCore::setJSTestObjNullableLongSettableAttribute):
(WebCore::setJSTestObjNullableStringValue):
(WebCore::setJSTestObjAttributeWithReservedEnumType):
(WebCore::setJSTestObjPutForwardsAttribute):
(WebCore::setJSTestObjPutForwardsNullableAttribute):
(WebCore::jsTestObjPrototypeFunctionVoidMethod):
(WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionByteMethod):
(WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionOctetMethod):
(WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionLongMethod):
(WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionObjMethod):
(WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg):
(WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
(WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue):
(WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
(WebCore::jsTestObjPrototypeFunctionSerializedValue):
(WebCore::jsTestObjPrototypeFunctionOptionsObject):
(WebCore::jsTestObjPrototypeFunctionMethodWithException):
(WebCore::jsTestObjPrototypeFunctionPrivateMethod):
(WebCore::jsTestObjPrototypeFunctionAddEventListener):
(WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
(WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
(WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
(WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArgAndDefaultValue):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalString):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValue):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined):
(WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
(WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionAndOptionalArg):
(WebCore::jsTestObjPrototypeFunctionConditionalMethod1):
(WebCore::jsTestObjPrototypeFunctionConditionalMethod2):
(WebCore::jsTestObjPrototypeFunctionConditionalMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod8):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod9):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod10):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod11):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethod12):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1):
(WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2):
(WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
(WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence):
(WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
(WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
(WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence):
(WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2):
(WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
(WebCore::jsTestObjPrototypeFunctionConvert1):
(WebCore::jsTestObjPrototypeFunctionConvert2):
(WebCore::jsTestObjPrototypeFunctionConvert4):
(WebCore::jsTestObjPrototypeFunctionConvert5):
(WebCore::jsTestObjPrototypeFunctionMutablePointFunction):
(WebCore::jsTestObjPrototypeFunctionImmutablePointFunction):
(WebCore::jsTestObjPrototypeFunctionOrange):
(WebCore::jsTestObjPrototypeFunctionStrictFunction):
(WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence):
(WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray):
(WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
(WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
(WebCore::jsTestObjPrototypeFunctionAny):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionPromise):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise):
(WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise):
(WebCore::JSTestObjOwner::finalize):
(WebCore::JSTestObj::toWrapped):
* bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
(WebCore::JSTestOverloadedConstructorsOwner::finalize):
(WebCore::JSTestOverloadedConstructors::toWrapped):
* bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
(WebCore::JSTestOverrideBuiltins::getOwnPropertyNames):
(WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):
(WebCore::JSTestOverrideBuiltinsOwner::finalize):
(WebCore::JSTestOverrideBuiltins::toWrapped):
* bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
(WebCore::jsTestSerializedScriptValueInterfaceValue):
(WebCore::jsTestSerializedScriptValueInterfaceReadonlyValue):
(WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
(WebCore::jsTestSerializedScriptValueInterfacePorts):
(WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
(WebCore::setJSTestSerializedScriptValueInterfaceValue):
(WebCore::setJSTestSerializedScriptValueInterfaceCachedValue):
(WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
(WebCore::JSTestSerializedScriptValueInterface::toWrapped):
* bindings/scripts/test/JS/JSTestTypedefs.cpp:
(WebCore::jsTestTypedefsUnsignedLongLongAttr):
(WebCore::jsTestTypedefsImmutableSerializedScriptValue):
(WebCore::jsTestTypedefsAttrWithGetterException):
(WebCore::jsTestTypedefsAttrWithSetterException):
(WebCore::jsTestTypedefsStringAttrWithGetterException):
(WebCore::jsTestTypedefsStringAttrWithSetterException):
(WebCore::setJSTestTypedefsUnsignedLongLongAttr):
(WebCore::setJSTestTypedefsImmutableSerializedScriptValue):
(WebCore::setJSTestTypedefsAttrWithGetterException):
(WebCore::setJSTestTypedefsAttrWithSetterException):
(WebCore::setJSTestTypedefsStringAttrWithGetterException):
(WebCore::setJSTestTypedefsStringAttrWithSetterException):
(WebCore::jsTestTypedefsPrototypeFunctionFunc):
(WebCore::jsTestTypedefsPrototypeFunctionSetShadow):
(WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
(WebCore::jsTestTypedefsPrototypeFunctionNullableArrayArg):
(WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp):
(WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction):
(WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2):
(WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
(WebCore::jsTestTypedefsPrototypeFunctionMethodWithException):
(WebCore::JSTestTypedefsOwner::finalize):
(WebCore::JSTestTypedefs::toWrapped):
* bindings/scripts/test/JS/JSattribute.cpp:
(WebCore::jsattributeReadonly):
(WebCore::JSattributeOwner::finalize):
(WebCore::JSattribute::toWrapped):
* bindings/scripts/test/JS/JSreadonly.cpp:
(WebCore::JSreadonlyOwner::finalize):
(WebCore::JSreadonly::toWrapped):
* bridge/runtime_method.cpp:
(JSC::callRuntimeMethod):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::canAccessInspectedScriptState):
Source/WebKit/mac:
* WebView/WebFrame.mm:
(-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):
* WebView/WebScriptDebugger.mm:
(toWebFrame):
Source/WebKit/win:
* WebFrame.cpp:
(WebFrame::stringByEvaluatingJavaScriptInScriptWorld):
Source/WebKit2:
* WebProcess/WebPage/WebFrame.cpp:
(WebKit::WebFrame::frameForContext): Renaming impl() to wrapped().
(WebKit::WebFrame::counterValue): Ditto.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191887
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2015-11-02 Youenn Fablet <youenn.fablet@crf.canon.fr>
+
+ Rename JSDOMWrapper.impl to JSDOMWrapper.wrapped
+ https://bugs.webkit.org/show_bug.cgi?id=150613
+
+ Reviewed by Darin Adler.
+
+ Renaming impl to wrapped in classes and binding generated classes.
+ No change in behavior.
+
+ * Modules/plugins/QuickTimePluginReplacement.mm:
+ (WebCore::JSQuickTimePluginReplacement::timedMetaData):
+ (WebCore::JSQuickTimePluginReplacement::accessLog):
+ (WebCore::JSQuickTimePluginReplacement::errorLog):
+ * bindings/js/JSAttrCustom.cpp:
+ (WebCore::JSAttr::visitAdditionalChildren):
+ * bindings/js/JSAudioBufferSourceNodeCustom.cpp:
+ (WebCore::JSAudioBufferSourceNode::setBuffer):
+ * bindings/js/JSAudioTrackCustom.cpp:
+ (WebCore::JSAudioTrack::visitAdditionalChildren):
+ (WebCore::JSAudioTrack::setKind):
+ (WebCore::JSAudioTrack::setLanguage):
+ * bindings/js/JSAudioTrackListCustom.cpp:
+ (WebCore::JSAudioTrackList::visitAdditionalChildren):
+ * bindings/js/JSBiquadFilterNodeCustom.cpp:
+ (WebCore::JSBiquadFilterNode::setType):
+ * bindings/js/JSCSSRuleCustom.cpp:
+ (WebCore::JSCSSRule::visitAdditionalChildren):
+ * bindings/js/JSCSSRuleListCustom.cpp:
+ (WebCore::JSCSSRuleListOwner::isReachableFromOpaqueRoots):
+ * bindings/js/JSCSSStyleDeclarationCustom.cpp:
+ (WebCore::JSCSSStyleDeclaration::visitAdditionalChildren):
+ (WebCore::getPropertyValueFallback):
+ (WebCore::cssPropertyGetterPixelOrPosPrefix):
+ (WebCore::cssPropertyGetter):
+ (WebCore::JSCSSStyleDeclaration::putDelegate):
+ (WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
+ (WebCore::JSCSSStyleDeclaration::getOwnPropertyNames):
+ * bindings/js/JSCSSValueCustom.cpp:
+ (WebCore::JSCSSValueOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSCSSValueOwner::finalize):
+ * bindings/js/JSCanvasRenderingContext2DCustom.cpp:
+ (WebCore::toHTMLCanvasStyle):
+ (WebCore::JSCanvasRenderingContext2D::strokeStyle):
+ (WebCore::JSCanvasRenderingContext2D::setStrokeStyle):
+ (WebCore::JSCanvasRenderingContext2D::fillStyle):
+ (WebCore::JSCanvasRenderingContext2D::setFillStyle):
+ (WebCore::JSCanvasRenderingContext2D::webkitLineDash):
+ (WebCore::JSCanvasRenderingContext2D::setWebkitLineDash):
+ * bindings/js/JSCanvasRenderingContextCustom.cpp:
+ (WebCore::JSCanvasRenderingContext::visitAdditionalChildren):
+ * bindings/js/JSCharacterDataCustom.cpp:
+ (WebCore::JSCharacterData::before):
+ (WebCore::JSCharacterData::after):
+ (WebCore::JSCharacterData::replaceWith):
+ * bindings/js/JSCommandLineAPIHostCustom.cpp:
+ (WebCore::JSCommandLineAPIHost::inspectedObject):
+ (WebCore::JSCommandLineAPIHost::getEventListeners):
+ (WebCore::JSCommandLineAPIHost::inspect):
+ (WebCore::JSCommandLineAPIHost::databaseId):
+ (WebCore::JSCommandLineAPIHost::storageId):
+ * bindings/js/JSCryptoCustom.cpp:
+ (WebCore::JSCrypto::getRandomValues):
+ * bindings/js/JSCryptoKeyCustom.cpp:
+ (WebCore::JSCryptoKey::algorithm):
+ * bindings/js/JSCryptoKeyPairCustom.cpp:
+ (WebCore::JSCryptoKeyPair::visitAdditionalChildren):
+ * bindings/js/JSCustomEventCustom.cpp:
+ (WebCore::JSCustomEvent::detail):
+ * bindings/js/JSCustomXPathNSResolver.cpp:
+ (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
+ * bindings/js/JSDOMBinding.cpp:
+ (WebCore::reportException):
+ (WebCore::activeDOMWindow):
+ (WebCore::firstDOMWindow):
+ * bindings/js/JSDOMFormDataCustom.cpp:
+ (WebCore::toHTMLFormElementOrNull):
+ (WebCore::JSDOMFormData::append):
+ * bindings/js/JSDOMMimeTypeArrayCustom.cpp:
+ (WebCore::JSDOMMimeTypeArray::nameGetter):
+ * bindings/js/JSDOMNamedFlowCollectionCustom.cpp:
+ (WebCore::JSDOMNamedFlowCollection::nameGetter):
+ * bindings/js/JSDOMPluginArrayCustom.cpp:
+ (WebCore::JSDOMPluginArray::nameGetter):
+ * bindings/js/JSDOMPluginCustom.cpp:
+ (WebCore::JSDOMPlugin::nameGetter):
+ * bindings/js/JSDOMStringListCustom.cpp:
+ (WebCore::JSDOMStringList::toWrapped):
+ * bindings/js/JSDOMStringMapCustom.cpp:
+ (WebCore::JSDOMStringMap::getOwnPropertySlotDelegate):
+ (WebCore::JSDOMStringMap::getOwnPropertyNames):
+ (WebCore::JSDOMStringMap::deleteProperty):
+ (WebCore::JSDOMStringMap::putDelegate):
+ * bindings/js/JSDOMTokenListCustom.cpp:
+ (WebCore::JSDOMTokenList::toggle):
+ * bindings/js/JSDOMWindowBase.cpp:
+ (WebCore::shouldAllowAccessFrom):
+ (WebCore::JSDOMWindowBase::JSDOMWindowBase):
+ (WebCore::JSDOMWindowBase::updateDocument):
+ (WebCore::JSDOMWindowBase::scriptExecutionContext):
+ (WebCore::JSDOMWindowBase::printErrorMessage):
+ (WebCore::JSDOMWindowBase::supportsProfiling):
+ (WebCore::JSDOMWindowBase::supportsRichSourceInfo):
+ (WebCore::JSDOMWindowBase::shouldInterruptScript):
+ (WebCore::JSDOMWindowBase::shouldInterruptScriptBeforeTimeout):
+ (WebCore::JSDOMWindowBase::javaScriptRuntimeFlags):
+ (WebCore::JSDOMWindowBase::moduleLoaderResolve):
+ (WebCore::JSDOMWindowBase::moduleLoaderFetch):
+ (WebCore::JSDOMWindowBase::moduleLoaderEvaluate):
+ * bindings/js/JSDOMWindowBase.h:
+ * bindings/js/JSDOMWindowCustom.cpp:
+ (WebCore::JSDOMWindow::visitAdditionalChildren):
+ (WebCore::childFrameGetter):
+ (WebCore::namedItemGetter):
+ (WebCore::jsDOMWindowWebKit):
+ (WebCore::jsDOMWindowIndexedDB):
+ (WebCore::JSDOMWindow::getOwnPropertySlot):
+ (WebCore::JSDOMWindow::getOwnPropertySlotByIndex):
+ (WebCore::JSDOMWindow::put):
+ (WebCore::JSDOMWindow::putByIndex):
+ (WebCore::JSDOMWindow::deleteProperty):
+ (WebCore::JSDOMWindow::deletePropertyByIndex):
+ (WebCore::JSDOMWindow::getEnumerableLength):
+ (WebCore::JSDOMWindow::getStructurePropertyNames):
+ (WebCore::JSDOMWindow::getGenericPropertyNames):
+ (WebCore::JSDOMWindow::getPropertyNames):
+ (WebCore::JSDOMWindow::getOwnPropertyNames):
+ (WebCore::JSDOMWindow::defineOwnProperty):
+ (WebCore::JSDOMWindow::setLocation):
+ (WebCore::JSDOMWindow::open):
+ (WebCore::JSDOMWindow::showModalDialog):
+ (WebCore::JSDOMWindow::postMessage):
+ (WebCore::JSDOMWindow::setTimeout):
+ (WebCore::JSDOMWindow::setInterval):
+ (WebCore::JSDOMWindow::addEventListener):
+ (WebCore::JSDOMWindow::removeEventListener):
+ (WebCore::JSDOMWindow::toWrapped):
+ * bindings/js/JSDOMWindowShell.cpp:
+ (WebCore::JSDOMWindowShell::setWindow):
+ (WebCore::JSDOMWindowShell::wrapped):
+ * bindings/js/JSDOMWindowShell.h:
+ * bindings/js/JSDOMWrapper.h:
+ (WebCore::JSDOMWrapper::wrapped):
+ (WebCore::JSDOMWrapper::JSDOMWrapper):
+ * bindings/js/JSDataCueCustom.cpp:
+ (WebCore::JSDataCue::value):
+ (WebCore::JSDataCue::setValue):
+ * bindings/js/JSDataTransferCustom.cpp:
+ (WebCore::JSDataTransfer::types):
+ * bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp:
+ (WebCore::JSDedicatedWorkerGlobalScope::postMessage):
+ * bindings/js/JSDeviceMotionEventCustom.cpp:
+ (WebCore::JSDeviceMotionEvent::acceleration):
+ (WebCore::JSDeviceMotionEvent::accelerationIncludingGravity):
+ (WebCore::JSDeviceMotionEvent::rotationRate):
+ (WebCore::JSDeviceMotionEvent::interval):
+ (WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
+ * bindings/js/JSDeviceOrientationEventCustom.cpp:
+ (WebCore::JSDeviceOrientationEvent::alpha):
+ (WebCore::JSDeviceOrientationEvent::beta):
+ (WebCore::JSDeviceOrientationEvent::gamma):
+ (WebCore::JSDeviceOrientationEvent::webkitCompassHeading):
+ (WebCore::JSDeviceOrientationEvent::webkitCompassAccuracy):
+ (WebCore::JSDeviceOrientationEvent::absolute):
+ (WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
+ * bindings/js/JSDocumentCustom.cpp:
+ (WebCore::JSDocument::prepend):
+ (WebCore::JSDocument::append):
+ * bindings/js/JSDocumentFragmentCustom.cpp:
+ (WebCore::JSDocumentFragment::prepend):
+ (WebCore::JSDocumentFragment::append):
+ * bindings/js/JSDocumentTypeCustom.cpp:
+ (WebCore::JSDocumentType::before):
+ (WebCore::JSDocumentType::after):
+ (WebCore::JSDocumentType::replaceWith):
+ * bindings/js/JSElementCustom.cpp:
+ (WebCore::JSElement::before):
+ (WebCore::JSElement::after):
+ (WebCore::JSElement::replaceWith):
+ (WebCore::JSElement::prepend):
+ (WebCore::JSElement::append):
+ * bindings/js/JSEventCustom.cpp:
+ (WebCore::JSEvent::clipboardData):
+ * bindings/js/JSEventListener.cpp:
+ (WebCore::JSEventListener::handleEvent):
+ * bindings/js/JSEventTargetCustom.cpp:
+ * bindings/js/JSFileReaderCustom.cpp:
+ (WebCore::JSFileReader::result):
+ * bindings/js/JSGeolocationCustom.cpp:
+ (WebCore::JSGeolocation::getCurrentPosition):
+ (WebCore::JSGeolocation::watchPosition):
+ * bindings/js/JSHTMLAllCollectionCustom.cpp:
+ (WebCore::namedItems):
+ (WebCore::callHTMLAllCollection):
+ (WebCore::JSHTMLAllCollection::item):
+ * bindings/js/JSHTMLCanvasElementCustom.cpp:
+ (WebCore::JSHTMLCanvasElement::getContext):
+ (WebCore::JSHTMLCanvasElement::probablySupportsContext):
+ (WebCore::JSHTMLCanvasElement::toDataURL):
+ * bindings/js/JSHTMLCollectionCustom.cpp:
+ (WebCore::JSHTMLCollection::nameGetter):
+ * bindings/js/JSHTMLDocumentCustom.cpp:
+ (WebCore::JSHTMLDocument::nameGetter):
+ (WebCore::JSHTMLDocument::all):
+ (WebCore::findCallingDocument):
+ (WebCore::JSHTMLDocument::open):
+ (WebCore::documentWrite):
+ * bindings/js/JSHTMLElementCustom.cpp:
+ (WebCore::JSHTMLElement::pushEventHandlerScope):
+ * bindings/js/JSHTMLFormControlsCollectionCustom.cpp:
+ (WebCore::namedItems):
+ * bindings/js/JSHTMLFormElementCustom.cpp:
+ (WebCore::JSHTMLFormElement::nameGetter):
+ * bindings/js/JSHTMLFrameElementCustom.cpp:
+ (WebCore::JSHTMLFrameElement::setLocation):
+ * bindings/js/JSHTMLFrameSetElementCustom.cpp:
+ (WebCore::JSHTMLFrameSetElement::nameGetter):
+ * bindings/js/JSHTMLInputElementCustom.cpp:
+ (WebCore::JSHTMLInputElement::selectionStart):
+ (WebCore::JSHTMLInputElement::setSelectionStart):
+ (WebCore::JSHTMLInputElement::selectionEnd):
+ (WebCore::JSHTMLInputElement::setSelectionEnd):
+ (WebCore::JSHTMLInputElement::selectionDirection):
+ (WebCore::JSHTMLInputElement::setSelectionDirection):
+ (WebCore::JSHTMLInputElement::setSelectionRange):
+ * bindings/js/JSHTMLMediaElementCustom.cpp:
+ (WebCore::JSHTMLMediaElement::setController):
+ * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
+ (WebCore::JSHTMLOptionsCollection::nameGetter):
+ (WebCore::JSHTMLOptionsCollection::setLength):
+ (WebCore::JSHTMLOptionsCollection::indexSetter):
+ (WebCore::JSHTMLOptionsCollection::remove):
+ * bindings/js/JSHTMLSelectElementCustom.cpp:
+ (WebCore::JSHTMLSelectElement::remove):
+ (WebCore::JSHTMLSelectElement::indexSetter):
+ * bindings/js/JSHTMLTemplateElementCustom.cpp:
+ (WebCore::JSHTMLTemplateElement::content):
+ * bindings/js/JSHistoryCustom.cpp:
+ (WebCore::JSHistory::getOwnPropertySlotDelegate):
+ (WebCore::JSHistory::putDelegate):
+ (WebCore::JSHistory::deleteProperty):
+ (WebCore::JSHistory::deletePropertyByIndex):
+ (WebCore::JSHistory::getOwnPropertyNames):
+ (WebCore::JSHistory::state):
+ (WebCore::JSHistory::pushState):
+ (WebCore::JSHistory::replaceState):
+ * bindings/js/JSIDBDatabaseCustom.cpp:
+ (WebCore::JSIDBDatabase::createObjectStore):
+ * bindings/js/JSIDBObjectStoreCustom.cpp:
+ (WebCore::JSIDBObjectStore::createIndex):
+ * bindings/js/JSInspectorFrontendHostCustom.cpp:
+ (WebCore::JSInspectorFrontendHost::showContextMenu):
+ * bindings/js/JSLocationCustom.cpp:
+ (WebCore::JSLocation::getOwnPropertySlotDelegate):
+ (WebCore::JSLocation::putDelegate):
+ (WebCore::JSLocation::deleteProperty):
+ (WebCore::JSLocation::deletePropertyByIndex):
+ (WebCore::JSLocation::getOwnPropertyNames):
+ (WebCore::JSLocation::toStringFunction):
+ * bindings/js/JSMediaSourceStatesCustom.cpp:
+ (WebCore::JSMediaSourceStates::width):
+ (WebCore::JSMediaSourceStates::height):
+ (WebCore::JSMediaSourceStates::frameRate):
+ (WebCore::JSMediaSourceStates::aspectRatio):
+ (WebCore::JSMediaSourceStates::facingMode):
+ (WebCore::JSMediaSourceStates::volume):
+ * bindings/js/JSMessageChannelCustom.cpp:
+ (WebCore::JSMessageChannel::visitAdditionalChildren):
+ * bindings/js/JSMessageEventCustom.cpp:
+ (WebCore::JSMessageEvent::data):
+ (WebCore::handleInitMessageEvent):
+ * bindings/js/JSMessagePortCustom.cpp:
+ (WebCore::JSMessagePort::visitAdditionalChildren):
+ (WebCore::JSMessagePort::postMessage):
+ * bindings/js/JSMockContentFilterSettingsCustom.cpp:
+ (WebCore::JSMockContentFilterSettings::decisionPoint):
+ (WebCore::JSMockContentFilterSettings::setDecisionPoint):
+ (WebCore::JSMockContentFilterSettings::decision):
+ (WebCore::JSMockContentFilterSettings::setDecision):
+ (WebCore::JSMockContentFilterSettings::unblockRequestDecision):
+ (WebCore::JSMockContentFilterSettings::setUnblockRequestDecision):
+ * bindings/js/JSMutationObserverCustom.cpp:
+ (WebCore::JSMutationObserverOwner::isReachableFromOpaqueRoots):
+ * bindings/js/JSNamedNodeMapCustom.cpp:
+ (WebCore::JSNamedNodeMap::nameGetter):
+ * bindings/js/JSNavigatorCustom.cpp:
+ (WebCore::JSNavigator::webkitGetUserMedia):
+ * bindings/js/JSNodeCustom.cpp:
+ (WebCore::JSNodeOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSNode::insertBefore):
+ (WebCore::JSNode::replaceChild):
+ (WebCore::JSNode::removeChild):
+ (WebCore::JSNode::appendChild):
+ (WebCore::JSNode::visitAdditionalChildren):
+ * bindings/js/JSNodeIteratorCustom.cpp:
+ (WebCore::JSNodeIterator::visitAdditionalChildren):
+ * bindings/js/JSNodeListCustom.cpp:
+ (WebCore::JSNodeListOwner::isReachableFromOpaqueRoots):
+ * bindings/js/JSNodeOrString.cpp:
+ (WebCore::toNodeOrStringVector):
+ * bindings/js/JSOscillatorNodeCustom.cpp:
+ (WebCore::JSOscillatorNode::setType):
+ * bindings/js/JSPannerNodeCustom.cpp:
+ (WebCore::JSPannerNode::setPanningModel):
+ (WebCore::JSPannerNode::setDistanceModel):
+ * bindings/js/JSPluginElementFunctions.cpp:
+ (WebCore::pluginScriptObjectFromPluginViewBase):
+ (WebCore::pluginScriptObject):
+ (WebCore::pluginElementGetCallData):
+ * bindings/js/JSPopStateEventCustom.cpp:
+ (WebCore::JSPopStateEvent::state):
+ * bindings/js/JSRTCStatsResponseCustom.cpp:
+ (WebCore::JSRTCStatsResponse::nameGetter):
+ * bindings/js/JSSQLResultSetRowListCustom.cpp:
+ (WebCore::JSSQLResultSetRowList::item):
+ * bindings/js/JSSQLTransactionCustom.cpp:
+ (WebCore::JSSQLTransaction::executeSql):
+ * bindings/js/JSSVGLengthCustom.cpp:
+ (WebCore::JSSVGLength::value):
+ (WebCore::JSSVGLength::setValue):
+ (WebCore::JSSVGLength::convertToSpecifiedUnits):
+ * bindings/js/JSStorageCustom.cpp:
+ (WebCore::JSStorage::nameGetter):
+ (WebCore::JSStorage::deleteProperty):
+ (WebCore::JSStorage::getOwnPropertyNames):
+ (WebCore::JSStorage::putDelegate):
+ * bindings/js/JSStyleSheetCustom.cpp:
+ (WebCore::JSStyleSheet::visitAdditionalChildren):
+ * bindings/js/JSStyleSheetListCustom.cpp:
+ (WebCore::JSStyleSheetList::nameGetter):
+ * bindings/js/JSSubtleCryptoCustom.cpp:
+ (WebCore::JSSubtleCrypto::encrypt):
+ (WebCore::JSSubtleCrypto::decrypt):
+ (WebCore::JSSubtleCrypto::sign):
+ (WebCore::JSSubtleCrypto::verify):
+ (WebCore::JSSubtleCrypto::wrapKey):
+ (WebCore::JSSubtleCrypto::unwrapKey):
+ * bindings/js/JSTextTrackCueCustom.cpp:
+ (WebCore::JSTextTrackCueOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSTextTrackCue::visitAdditionalChildren):
+ * bindings/js/JSTextTrackCustom.cpp:
+ (WebCore::JSTextTrack::visitAdditionalChildren):
+ (WebCore::JSTextTrack::setKind):
+ (WebCore::JSTextTrack::setLanguage):
+ * bindings/js/JSTextTrackListCustom.cpp:
+ (WebCore::JSTextTrackList::visitAdditionalChildren):
+ * bindings/js/JSTrackCustom.cpp:
+ (WebCore::toTrack):
+ * bindings/js/JSTrackEventCustom.cpp:
+ (WebCore::JSTrackEvent::track):
+ * bindings/js/JSTreeWalkerCustom.cpp:
+ (WebCore::JSTreeWalker::visitAdditionalChildren):
+ * bindings/js/JSUserMessageHandlersNamespaceCustom.cpp:
+ (WebCore::JSUserMessageHandlersNamespace::getOwnPropertySlotDelegate):
+ * bindings/js/JSVideoTrackCustom.cpp:
+ (WebCore::JSVideoTrack::visitAdditionalChildren):
+ (WebCore::JSVideoTrack::setKind):
+ (WebCore::JSVideoTrack::setLanguage):
+ * bindings/js/JSVideoTrackListCustom.cpp:
+ (WebCore::JSVideoTrackList::visitAdditionalChildren):
+ * bindings/js/JSWebGL2RenderingContextCustom.cpp:
+ (WebCore::JSWebGL2RenderingContext::visitAdditionalChildren):
+ (WebCore::JSWebGL2RenderingContext::getIndexedParameter):
+ * bindings/js/JSWebGLRenderingContextBaseCustom.cpp:
+ (WebCore::getObjectParameter):
+ (WebCore::JSWebGLRenderingContextBase::visitAdditionalChildren):
+ (WebCore::JSWebGLRenderingContextBase::getAttachedShaders):
+ (WebCore::JSWebGLRenderingContextBase::getExtension):
+ (WebCore::JSWebGLRenderingContextBase::getFramebufferAttachmentParameter):
+ (WebCore::JSWebGLRenderingContextBase::getParameter):
+ (WebCore::JSWebGLRenderingContextBase::getProgramParameter):
+ (WebCore::JSWebGLRenderingContextBase::getShaderParameter):
+ (WebCore::JSWebGLRenderingContextBase::getSupportedExtensions):
+ (WebCore::JSWebGLRenderingContextBase::getUniform):
+ (WebCore::JSWebGLRenderingContextBase::uniform1fv):
+ (WebCore::JSWebGLRenderingContextBase::uniform1iv):
+ (WebCore::JSWebGLRenderingContextBase::uniform2fv):
+ (WebCore::JSWebGLRenderingContextBase::uniform2iv):
+ (WebCore::JSWebGLRenderingContextBase::uniform3fv):
+ (WebCore::JSWebGLRenderingContextBase::uniform3iv):
+ (WebCore::JSWebGLRenderingContextBase::uniform4fv):
+ (WebCore::JSWebGLRenderingContextBase::uniform4iv):
+ (WebCore::JSWebGLRenderingContextBase::uniformMatrix2fv):
+ (WebCore::JSWebGLRenderingContextBase::uniformMatrix3fv):
+ (WebCore::JSWebGLRenderingContextBase::uniformMatrix4fv):
+ (WebCore::JSWebGLRenderingContextBase::vertexAttrib1fv):
+ (WebCore::JSWebGLRenderingContextBase::vertexAttrib2fv):
+ (WebCore::JSWebGLRenderingContextBase::vertexAttrib3fv):
+ (WebCore::JSWebGLRenderingContextBase::vertexAttrib4fv):
+ * bindings/js/JSWebGLRenderingContextCustom.cpp:
+ (WebCore::JSWebGLRenderingContext::visitAdditionalChildren):
+ * bindings/js/JSWorkerCustom.cpp:
+ (WebCore::JSWorker::postMessage):
+ (WebCore::constructJSWorker):
+ * bindings/js/JSWorkerGlobalScopeBase.cpp:
+ (WebCore::JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase):
+ (WebCore::JSWorkerGlobalScopeBase::scriptExecutionContext):
+ * bindings/js/JSWorkerGlobalScopeBase.h:
+ (WebCore::JSWorkerGlobalScopeBase::wrapped):
+ * bindings/js/JSWorkerGlobalScopeCustom.cpp:
+ (WebCore::JSWorkerGlobalScope::visitAdditionalChildren):
+ (WebCore::JSWorkerGlobalScope::importScripts):
+ (WebCore::JSWorkerGlobalScope::setTimeout):
+ (WebCore::JSWorkerGlobalScope::setInterval):
+ * bindings/js/JSXMLHttpRequestCustom.cpp:
+ (WebCore::JSXMLHttpRequest::visitAdditionalChildren):
+ (WebCore::JSXMLHttpRequest::open):
+ (WebCore::JSXMLHttpRequest::send):
+ (WebCore::JSXMLHttpRequest::responseText):
+ (WebCore::JSXMLHttpRequest::response):
+ * bindings/js/JSXPathResultCustom.cpp:
+ (WebCore::JSXPathResult::visitAdditionalChildren):
+ * bindings/js/JSXSLTProcessorCustom.cpp:
+ (WebCore::JSXSLTProcessor::setParameter):
+ (WebCore::JSXSLTProcessor::getParameter):
+ (WebCore::JSXSLTProcessor::removeParameter):
+ * bindings/js/ScheduledAction.cpp:
+ (WebCore::ScheduledAction::execute):
+ * bindings/js/ScriptCachedFrameData.cpp:
+ (WebCore::ScriptCachedFrameData::restore):
+ * bindings/js/ScriptController.cpp:
+ (WebCore::ScriptController::clearWindowShell):
+ (WebCore::ScriptController::collectIsolatedContexts):
+ * bindings/js/ScriptState.cpp:
+ (WebCore::domWindowFromExecState):
+ * bindings/objc/DOM.mm:
+ (+[DOMNode _nodeFromJSWrapper:]):
+ * bindings/objc/DOMUtility.mm:
+ (JSC::createDOMWrapper):
+ * bindings/objc/WebScriptObject.mm:
+ (-[WebScriptObject _isSafeScript]):
+ (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
+ * bindings/scripts/CodeGeneratorJS.pm:
+ (GenerateGetOwnPropertySlotBody):
+ (GenerateHeader):
+ (GetIndexedGetterExpression):
+ (GenerateImplementation):
+ (NativeToJSValue):
+ * bindings/scripts/test/JS/JSTestActiveDOMObject.cpp:
+ (WebCore::jsTestActiveDOMObjectExcitingAttr):
+ (WebCore::jsTestActiveDOMObjectConstructor):
+ (WebCore::jsTestActiveDOMObjectPrototypeFunctionExcitingFunction):
+ (WebCore::jsTestActiveDOMObjectPrototypeFunctionPostMessage):
+ (WebCore::JSTestActiveDOMObjectOwner::finalize):
+ (WebCore::JSTestActiveDOMObject::toWrapped):
+ * bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp:
+ (WebCore::JSTestCustomConstructorWithNoInterfaceObjectOwner::finalize):
+ (WebCore::JSTestCustomConstructorWithNoInterfaceObject::toWrapped):
+ * bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp:
+ (WebCore::jsTestCustomNamedGetterPrototypeFunctionAnotherFunction):
+ (WebCore::JSTestCustomNamedGetterOwner::finalize):
+ (WebCore::JSTestCustomNamedGetter::toWrapped):
+ * bindings/scripts/test/JS/JSTestEventConstructor.cpp:
+ (WebCore::jsTestEventConstructorAttr1):
+ (WebCore::jsTestEventConstructorAttr2):
+ (WebCore::JSTestEventConstructorOwner::finalize):
+ (WebCore::JSTestEventConstructor::toWrapped):
+ * bindings/scripts/test/JS/JSTestEventTarget.cpp:
+ (WebCore::JSTestEventTarget::getOwnPropertySlot):
+ (WebCore::JSTestEventTarget::getOwnPropertySlotByIndex):
+ (WebCore::JSTestEventTarget::getOwnPropertyNames):
+ (WebCore::jsTestEventTargetPrototypeFunctionItem):
+ (WebCore::jsTestEventTargetPrototypeFunctionAddEventListener):
+ (WebCore::jsTestEventTargetPrototypeFunctionRemoveEventListener):
+ (WebCore::jsTestEventTargetPrototypeFunctionDispatchEvent):
+ (WebCore::JSTestEventTarget::visitChildren):
+ (WebCore::JSTestEventTargetOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSTestEventTargetOwner::finalize):
+ (WebCore::JSTestEventTarget::toWrapped):
+ * bindings/scripts/test/JS/JSTestException.cpp:
+ (WebCore::jsTestExceptionName):
+ (WebCore::JSTestExceptionOwner::finalize):
+ (WebCore::JSTestException::toWrapped):
+ * bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp:
+ (WebCore::JSTestGenerateIsReachableOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSTestGenerateIsReachableOwner::finalize):
+ (WebCore::JSTestGenerateIsReachable::toWrapped):
+ * bindings/scripts/test/JS/JSTestInterface.cpp:
+ (WebCore::jsTestInterfaceImplementsStr1):
+ (WebCore::jsTestInterfaceImplementsStr2):
+ (WebCore::jsTestInterfaceImplementsNode):
+ (WebCore::jsTestInterfaceSupplementalStr1):
+ (WebCore::jsTestInterfaceSupplementalStr2):
+ (WebCore::jsTestInterfaceSupplementalNode):
+ (WebCore::setJSTestInterfaceImplementsStr2):
+ (WebCore::setJSTestInterfaceImplementsNode):
+ (WebCore::setJSTestInterfaceSupplementalStr2):
+ (WebCore::setJSTestInterfaceSupplementalNode):
+ (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod1):
+ (WebCore::jsTestInterfacePrototypeFunctionImplementsMethod2):
+ (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod1):
+ (WebCore::jsTestInterfacePrototypeFunctionSupplementalMethod2):
+ (WebCore::JSTestInterfaceOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSTestInterfaceOwner::finalize):
+ (WebCore::JSTestInterface::toWrapped):
+ * bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp:
+ (WebCore::jsTestMediaQueryListListenerPrototypeFunctionMethod):
+ (WebCore::JSTestMediaQueryListListenerOwner::finalize):
+ (WebCore::JSTestMediaQueryListListener::toWrapped):
+ * bindings/scripts/test/JS/JSTestNamedConstructor.cpp:
+ (WebCore::JSTestNamedConstructorOwner::isReachableFromOpaqueRoots):
+ (WebCore::JSTestNamedConstructorOwner::finalize):
+ (WebCore::JSTestNamedConstructor::toWrapped):
+ * bindings/scripts/test/JS/JSTestNode.cpp:
+ (WebCore::jsTestNodeName):
+ (WebCore::setJSTestNodeName):
+ (WebCore::JSTestNode::visitChildren):
+ * bindings/scripts/test/JS/JSTestNode.h:
+ * bindings/scripts/test/JS/JSTestNondeterministic.cpp:
+ (WebCore::jsTestNondeterministicNondeterministicReadonlyAttr):
+ (WebCore::jsTestNondeterministicNondeterministicWriteableAttr):
+ (WebCore::jsTestNondeterministicNondeterministicExceptionAttr):
+ (WebCore::jsTestNondeterministicNondeterministicGetterExceptionAttr):
+ (WebCore::jsTestNondeterministicNondeterministicSetterExceptionAttr):
+ (WebCore::setJSTestNondeterministicNondeterministicWriteableAttr):
+ (WebCore::setJSTestNondeterministicNondeterministicExceptionAttr):
+ (WebCore::setJSTestNondeterministicNondeterministicGetterExceptionAttr):
+ (WebCore::setJSTestNondeterministicNondeterministicSetterExceptionAttr):
+ (WebCore::jsTestNondeterministicPrototypeFunctionNondeterministicZeroArgFunction):
+ (WebCore::JSTestNondeterministicOwner::finalize):
+ (WebCore::JSTestNondeterministic::toWrapped):
+ * bindings/scripts/test/JS/JSTestObj.cpp:
+ (WebCore::jsTestObjReadOnlyLongAttr):
+ (WebCore::jsTestObjReadOnlyStringAttr):
+ (WebCore::jsTestObjReadOnlyTestObjAttr):
+ (WebCore::jsTestObjTestSubObjEnabledBySettingConstructor):
+ (WebCore::jsTestObjEnumAttr):
+ (WebCore::jsTestObjByteAttr):
+ (WebCore::jsTestObjOctetAttr):
+ (WebCore::jsTestObjShortAttr):
+ (WebCore::jsTestObjUnsignedShortAttr):
+ (WebCore::jsTestObjLongAttr):
+ (WebCore::jsTestObjLongLongAttr):
+ (WebCore::jsTestObjUnsignedLongLongAttr):
+ (WebCore::jsTestObjStringAttr):
+ (WebCore::jsTestObjTestObjAttr):
+ (WebCore::jsTestObjXMLObjAttr):
+ (WebCore::jsTestObjCreate):
+ (WebCore::jsTestObjReflectedStringAttr):
+ (WebCore::jsTestObjReflectedIntegralAttr):
+ (WebCore::jsTestObjReflectedUnsignedIntegralAttr):
+ (WebCore::jsTestObjReflectedBooleanAttr):
+ (WebCore::jsTestObjReflectedURLAttr):
+ (WebCore::jsTestObjReflectedCustomIntegralAttr):
+ (WebCore::jsTestObjReflectedCustomBooleanAttr):
+ (WebCore::jsTestObjReflectedCustomURLAttr):
+ (WebCore::jsTestObjTypedArrayAttr):
+ (WebCore::jsTestObjAttrWithGetterException):
+ (WebCore::jsTestObjAttrWithSetterException):
+ (WebCore::jsTestObjStringAttrWithGetterException):
+ (WebCore::jsTestObjStringAttrWithSetterException):
+ (WebCore::jsTestObjStrictTypeCheckingAttribute):
+ (WebCore::jsTestObjOnfoo):
+ (WebCore::jsTestObjWithScriptStateAttribute):
+ (WebCore::jsTestObjWithCallWithAndSetterCallWithAttribute):
+ (WebCore::jsTestObjWithScriptExecutionContextAttribute):
+ (WebCore::jsTestObjWithScriptStateAttributeRaises):
+ (WebCore::jsTestObjWithScriptExecutionContextAttributeRaises):
+ (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttribute):
+ (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+ (WebCore::jsTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
+ (WebCore::jsTestObjWithScriptArgumentsAndCallStackAttribute):
+ (WebCore::jsTestObjConditionalAttr1):
+ (WebCore::jsTestObjConditionalAttr2):
+ (WebCore::jsTestObjConditionalAttr3):
+ (WebCore::jsTestObjCachedAttribute1):
+ (WebCore::jsTestObjCachedAttribute2):
+ (WebCore::jsTestObjAnyAttribute):
+ (WebCore::jsTestObjContentDocument):
+ (WebCore::jsTestObjMutablePoint):
+ (WebCore::jsTestObjImmutablePoint):
+ (WebCore::jsTestObjStrawberry):
+ (WebCore::jsTestObjStrictFloat):
+ (WebCore::jsTestObjDescription):
+ (WebCore::jsTestObjId):
+ (WebCore::jsTestObjHash):
+ (WebCore::jsTestObjReplaceableAttribute):
+ (WebCore::jsTestObjNullableDoubleAttribute):
+ (WebCore::jsTestObjNullableLongAttribute):
+ (WebCore::jsTestObjNullableBooleanAttribute):
+ (WebCore::jsTestObjNullableStringAttribute):
+ (WebCore::jsTestObjNullableLongSettableAttribute):
+ (WebCore::jsTestObjNullableStringValue):
+ (WebCore::jsTestObjAttribute):
+ (WebCore::jsTestObjAttributeWithReservedEnumType):
+ (WebCore::jsTestObjPutForwardsAttribute):
+ (WebCore::jsTestObjPutForwardsNullableAttribute):
+ (WebCore::setJSTestObjEnumAttr):
+ (WebCore::setJSTestObjByteAttr):
+ (WebCore::setJSTestObjOctetAttr):
+ (WebCore::setJSTestObjShortAttr):
+ (WebCore::setJSTestObjUnsignedShortAttr):
+ (WebCore::setJSTestObjLongAttr):
+ (WebCore::setJSTestObjLongLongAttr):
+ (WebCore::setJSTestObjUnsignedLongLongAttr):
+ (WebCore::setJSTestObjStringAttr):
+ (WebCore::setJSTestObjTestObjAttr):
+ (WebCore::setJSTestObjXMLObjAttr):
+ (WebCore::setJSTestObjCreate):
+ (WebCore::setJSTestObjReflectedStringAttr):
+ (WebCore::setJSTestObjReflectedIntegralAttr):
+ (WebCore::setJSTestObjReflectedUnsignedIntegralAttr):
+ (WebCore::setJSTestObjReflectedBooleanAttr):
+ (WebCore::setJSTestObjReflectedURLAttr):
+ (WebCore::setJSTestObjReflectedCustomIntegralAttr):
+ (WebCore::setJSTestObjReflectedCustomBooleanAttr):
+ (WebCore::setJSTestObjReflectedCustomURLAttr):
+ (WebCore::setJSTestObjTypedArrayAttr):
+ (WebCore::setJSTestObjAttrWithGetterException):
+ (WebCore::setJSTestObjAttrWithSetterException):
+ (WebCore::setJSTestObjStringAttrWithGetterException):
+ (WebCore::setJSTestObjStringAttrWithSetterException):
+ (WebCore::setJSTestObjStrictTypeCheckingAttribute):
+ (WebCore::setJSTestObjOnfoo):
+ (WebCore::setJSTestObjWithScriptStateAttribute):
+ (WebCore::setJSTestObjWithCallWithAndSetterCallWithAttribute):
+ (WebCore::setJSTestObjWithScriptExecutionContextAttribute):
+ (WebCore::setJSTestObjWithScriptStateAttributeRaises):
+ (WebCore::setJSTestObjWithScriptExecutionContextAttributeRaises):
+ (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttribute):
+ (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateAttributeRaises):
+ (WebCore::setJSTestObjWithScriptExecutionContextAndScriptStateWithSpacesAttribute):
+ (WebCore::setJSTestObjWithScriptArgumentsAndCallStackAttribute):
+ (WebCore::setJSTestObjConditionalAttr1):
+ (WebCore::setJSTestObjConditionalAttr2):
+ (WebCore::setJSTestObjConditionalAttr3):
+ (WebCore::setJSTestObjAnyAttribute):
+ (WebCore::setJSTestObjMutablePoint):
+ (WebCore::setJSTestObjImmutablePoint):
+ (WebCore::setJSTestObjStrawberry):
+ (WebCore::setJSTestObjStrictFloat):
+ (WebCore::setJSTestObjId):
+ (WebCore::setJSTestObjNullableLongSettableAttribute):
+ (WebCore::setJSTestObjNullableStringValue):
+ (WebCore::setJSTestObjAttributeWithReservedEnumType):
+ (WebCore::setJSTestObjPutForwardsAttribute):
+ (WebCore::setJSTestObjPutForwardsNullableAttribute):
+ (WebCore::jsTestObjPrototypeFunctionVoidMethod):
+ (WebCore::jsTestObjPrototypeFunctionVoidMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionByteMethod):
+ (WebCore::jsTestObjPrototypeFunctionByteMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionOctetMethod):
+ (WebCore::jsTestObjPrototypeFunctionOctetMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionLongMethod):
+ (WebCore::jsTestObjPrototypeFunctionLongMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionObjMethod):
+ (WebCore::jsTestObjPrototypeFunctionObjMethodWithArgs):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithEnumArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue):
+ (WebCore::jsTestObjPrototypeFunctionMethodThatRequiresAllArgsAndThrows):
+ (WebCore::jsTestObjPrototypeFunctionSerializedValue):
+ (WebCore::jsTestObjPrototypeFunctionOptionsObject):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithException):
+ (WebCore::jsTestObjPrototypeFunctionPrivateMethod):
+ (WebCore::jsTestObjPrototypeFunctionAddEventListener):
+ (WebCore::jsTestObjPrototypeFunctionRemoveEventListener):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoid):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateObj):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateVoidException):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptStateObjException):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContext):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptState):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateObjException):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptExecutionContextAndScriptStateWithSpaces):
+ (WebCore::jsTestObjPrototypeFunctionWithScriptArgumentsAndCallStack):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalArgAndDefaultValue):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndOptionalArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonOptionalArgAndTwoOptionalArgs):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalString):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringAndDefaultValue):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsUndefined):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithOptionalStringIsNullString):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackAndOptionalArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithNonCallbackArgAndCallbackFunctionArg):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithCallbackFunctionAndOptionalArg):
+ (WebCore::jsTestObjPrototypeFunctionConditionalMethod1):
+ (WebCore::jsTestObjPrototypeFunctionConditionalMethod2):
+ (WebCore::jsTestObjPrototypeFunctionConditionalMethod3):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod1):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod2):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod3):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod4):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod5):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod6):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod7):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod8):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod9):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod10):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod11):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethod12):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter1):
+ (WebCore::jsTestObjPrototypeFunctionOverloadedMethodWithOptionalParameter2):
+ (WebCore::jsTestObjPrototypeFunctionClassMethodWithClamp):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithUnsignedLongSequence):
+ (WebCore::jsTestObjPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestObjPrototypeFunctionDomStringListFunction):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence):
+ (WebCore::jsTestObjPrototypeFunctionMethodWithAndWithoutNullableSequence2):
+ (WebCore::jsTestObjPrototypeFunctionGetSVGDocument):
+ (WebCore::jsTestObjPrototypeFunctionConvert1):
+ (WebCore::jsTestObjPrototypeFunctionConvert2):
+ (WebCore::jsTestObjPrototypeFunctionConvert4):
+ (WebCore::jsTestObjPrototypeFunctionConvert5):
+ (WebCore::jsTestObjPrototypeFunctionMutablePointFunction):
+ (WebCore::jsTestObjPrototypeFunctionImmutablePointFunction):
+ (WebCore::jsTestObjPrototypeFunctionOrange):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunction):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithSequence):
+ (WebCore::jsTestObjPrototypeFunctionStrictFunctionWithArray):
+ (WebCore::jsTestObjPrototypeFunctionVariadicStringMethod):
+ (WebCore::jsTestObjPrototypeFunctionVariadicDoubleMethod):
+ (WebCore::jsTestObjPrototypeFunctionVariadicNodeMethod):
+ (WebCore::jsTestObjPrototypeFunctionAny):
+ (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionPromise):
+ (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithFloatArgumentPromise):
+ (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithExceptionPromise):
+ (WebCore::jsTestObjPrototypeFunctionTestPromiseFunctionWithOptionalIntArgumentPromise):
+ (WebCore::JSTestObjOwner::finalize):
+ (WebCore::JSTestObj::toWrapped):
+ * bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp:
+ (WebCore::JSTestOverloadedConstructorsOwner::finalize):
+ (WebCore::JSTestOverloadedConstructors::toWrapped):
+ * bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp:
+ (WebCore::JSTestOverrideBuiltins::getOwnPropertyNames):
+ (WebCore::jsTestOverrideBuiltinsPrototypeFunctionNamedItem):
+ (WebCore::JSTestOverrideBuiltinsOwner::finalize):
+ (WebCore::JSTestOverrideBuiltins::toWrapped):
+ * bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp:
+ (WebCore::jsTestSerializedScriptValueInterfaceValue):
+ (WebCore::jsTestSerializedScriptValueInterfaceReadonlyValue):
+ (WebCore::jsTestSerializedScriptValueInterfaceCachedValue):
+ (WebCore::jsTestSerializedScriptValueInterfacePorts):
+ (WebCore::jsTestSerializedScriptValueInterfaceCachedReadonlyValue):
+ (WebCore::setJSTestSerializedScriptValueInterfaceValue):
+ (WebCore::setJSTestSerializedScriptValueInterfaceCachedValue):
+ (WebCore::JSTestSerializedScriptValueInterfaceOwner::finalize):
+ (WebCore::JSTestSerializedScriptValueInterface::toWrapped):
+ * bindings/scripts/test/JS/JSTestTypedefs.cpp:
+ (WebCore::jsTestTypedefsUnsignedLongLongAttr):
+ (WebCore::jsTestTypedefsImmutableSerializedScriptValue):
+ (WebCore::jsTestTypedefsAttrWithGetterException):
+ (WebCore::jsTestTypedefsAttrWithSetterException):
+ (WebCore::jsTestTypedefsStringAttrWithGetterException):
+ (WebCore::jsTestTypedefsStringAttrWithSetterException):
+ (WebCore::setJSTestTypedefsUnsignedLongLongAttr):
+ (WebCore::setJSTestTypedefsImmutableSerializedScriptValue):
+ (WebCore::setJSTestTypedefsAttrWithGetterException):
+ (WebCore::setJSTestTypedefsAttrWithSetterException):
+ (WebCore::setJSTestTypedefsStringAttrWithGetterException):
+ (WebCore::setJSTestTypedefsStringAttrWithSetterException):
+ (WebCore::jsTestTypedefsPrototypeFunctionFunc):
+ (WebCore::jsTestTypedefsPrototypeFunctionSetShadow):
+ (WebCore::jsTestTypedefsPrototypeFunctionMethodWithSequenceArg):
+ (WebCore::jsTestTypedefsPrototypeFunctionNullableArrayArg):
+ (WebCore::jsTestTypedefsPrototypeFunctionFuncWithClamp):
+ (WebCore::jsTestTypedefsPrototypeFunctionImmutablePointFunction):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction):
+ (WebCore::jsTestTypedefsPrototypeFunctionStringArrayFunction2):
+ (WebCore::jsTestTypedefsPrototypeFunctionCallWithSequenceThatRequiresInclude):
+ (WebCore::jsTestTypedefsPrototypeFunctionMethodWithException):
+ (WebCore::JSTestTypedefsOwner::finalize):
+ (WebCore::JSTestTypedefs::toWrapped):
+ * bindings/scripts/test/JS/JSattribute.cpp:
+ (WebCore::jsattributeReadonly):
+ (WebCore::JSattributeOwner::finalize):
+ (WebCore::JSattribute::toWrapped):
+ * bindings/scripts/test/JS/JSreadonly.cpp:
+ (WebCore::JSreadonlyOwner::finalize):
+ (WebCore::JSreadonly::toWrapped):
+ * bridge/runtime_method.cpp:
+ (JSC::callRuntimeMethod):
+ * inspector/InspectorController.cpp:
+ (WebCore::InspectorController::canAccessInspectedScriptState):
+
2015-11-02 Youenn Fablet <youenn.fablet@crf.canon.fr>
IDL functions and attributes should be JSBuiltin by default if interface is marked as JSBuiltinConstructor
JSC::JSValue JSQuickTimePluginReplacement::timedMetaData(JSC::ExecState& state) const
{
#if PLATFORM(IOS)
- HTMLVideoElement* parent = impl().parentElement();
+ HTMLVideoElement* parent = wrapped().parentElement();
if (!parent || !parent->player())
return JSC::jsNull();
JSC::JSValue JSQuickTimePluginReplacement::accessLog(JSC::ExecState& state) const
{
#if PLATFORM(IOS)
- HTMLVideoElement* parent = impl().parentElement();
+ HTMLVideoElement* parent = wrapped().parentElement();
if (!parent || !parent->player())
return JSC::jsNull();
JSC::JSValue JSQuickTimePluginReplacement::errorLog(JSC::ExecState& state) const
{
#if PLATFORM(IOS)
- HTMLVideoElement* parent = impl().parentElement();
+ HTMLVideoElement* parent = wrapped().parentElement();
if (!parent || !parent->player())
return JSC::jsNull();
void JSAttr::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- if (Element* element = impl().ownerElement())
+ if (Element* element = wrapped().ownerElement())
visitor.addOpaqueRoot(root(element));
}
return;
}
- if (!impl().setBuffer(buffer))
+ if (!wrapped().setBuffer(buffer))
state.vm().throwException(&state, createTypeError(&state, "AudioBuffer unsupported number of channels"));
}
void JSAudioTrack::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
void JSAudioTrack::setKind(ExecState& state, JSValue value)
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setKind(string);
+ wrapped().setKind(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setLanguage(string);
+ wrapped().setLanguage(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
void JSAudioTrackList::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(impl().element()));
+ visitor.addOpaqueRoot(root(wrapped().element()));
}
} // namespace WebCore
#if ENABLE(LEGACY_WEB_AUDIO)
if (value.isNumber()) {
uint32_t type = value.toUInt32(&state);
- if (!impl().setType(type))
+ if (!wrapped().setType(type))
state.vm().throwException(&state, createTypeError(&state, "Illegal BiquadFilterNode type"));
return;
}
if (value.isString()) {
String type = value.toString(&state)->value(&state);
if (type == "lowpass" || type == "highpass" || type == "bandpass" || type == "lowshelf" || type == "highshelf" || type == "peaking" || type == "notch" || type == "allpass") {
- impl().setType(type);
+ wrapped().setType(type);
return;
}
}
void JSCSSRule::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
JSValue toJS(ExecState*, JSDOMGlobalObject* globalObject, CSSRule* rule)
JSCSSRuleList* jsCSSRuleList = jsCast<JSCSSRuleList*>(handle.slot()->asCell());
if (!jsCSSRuleList->hasCustomProperties())
return false;
- if (CSSStyleSheet* styleSheet = jsCSSRuleList->impl().styleSheet())
+ if (CSSStyleSheet* styleSheet = jsCSSRuleList->wrapped().styleSheet())
return visitor.containsOpaqueRoot(root(styleSheet));
- if (CSSRule* cssRule = jsCSSRuleList->impl().item(0))
+ if (CSSRule* cssRule = jsCSSRuleList->wrapped().item(0))
return visitor.containsOpaqueRoot(root(cssRule));
return false;
}
void JSCSSStyleDeclaration::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
class CSSPropertyInfo {
{
// If the property is a shorthand property (such as "padding"),
// it can only be accessed using getPropertyValue.
- return jsStringWithCache(exec, thisObj->impl().getPropertyValueInternal(static_cast<CSSPropertyID>(index)));
+ return jsStringWithCache(exec, thisObj->wrapped().getPropertyValueInternal(static_cast<CSSPropertyID>(index)));
}
static inline JSValue cssPropertyGetterPixelOrPosPrefix(ExecState* exec, JSCSSStyleDeclaration* thisObj, unsigned propertyID)
// posTop returns "CSS top" as number value in unit pixels _if_ its a
// positioned element. if it is not a positioned element, return 0
// from MSIE documentation FIXME: IMPLEMENT THAT (Dirk)
- RefPtr<CSSValue> v = thisObj->impl().getPropertyCSSValueInternal(static_cast<CSSPropertyID>(propertyID));
+ RefPtr<CSSValue> v = thisObj->wrapped().getPropertyCSSValueInternal(static_cast<CSSPropertyID>(propertyID));
if (v) {
if (v->isPrimitiveValue())
return jsNumber(static_pointer_cast<CSSPrimitiveValue>(v)->getFloatValue(CSSPrimitiveValue::CSS_PX));
static inline JSValue cssPropertyGetter(ExecState* exec, JSCSSStyleDeclaration* thisObj, unsigned propertyID)
{
- RefPtr<CSSValue> v = thisObj->impl().getPropertyCSSValueInternal(static_cast<CSSPropertyID>(propertyID));
+ RefPtr<CSSValue> v = thisObj->wrapped().getPropertyCSSValueInternal(static_cast<CSSPropertyID>(propertyID));
if (v)
return jsStringOrNull(exec, v->cssText());
ExceptionCode ec = 0;
CSSPropertyID propertyID = static_cast<CSSPropertyID>(propertyInfo.propertyID);
- impl().setPropertyInternal(propertyID, propValue, important, ec);
+ wrapped().setPropertyInternal(propertyID, propValue, important, ec);
setDOMException(exec, ec);
return true;
if (state.hadException())
return jsUndefined();
- RefPtr<CSSValue> cssValue = impl().getPropertyCSSValue(propertyName);
+ RefPtr<CSSValue> cssValue = wrapped().getPropertyCSSValue(propertyName);
if (!cssValue)
return jsNull();
- globalObject()->world().m_cssValueRoots.add(cssValue.get(), root(&impl())); // Balanced by JSCSSValueOwner::finalize().
+ globalObject()->world().m_cssValueRoots.add(cssValue.get(), root(&wrapped())); // Balanced by JSCSSValueOwner::finalize().
return toJS(&state, globalObject(), WTF::getPtr(cssValue));
}
JSCSSStyleDeclaration* thisObject = jsCast<JSCSSStyleDeclaration*>(object);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
- unsigned length = thisObject->impl().length();
+ unsigned length = thisObject->wrapped().length();
for (unsigned i = 0; i < length; ++i)
propertyNames.add(Identifier::from(exec, i));
if (!jsCSSValue->hasCustomProperties())
return false;
DOMWrapperWorld* world = static_cast<DOMWrapperWorld*>(context);
- void* root = world->m_cssValueRoots.get(&jsCSSValue->impl());
+ void* root = world->m_cssValueRoots.get(&jsCSSValue->wrapped());
if (!root)
return false;
return visitor.containsOpaqueRoot(root);
{
JSCSSValue* jsCSSValue = jsCast<JSCSSValue*>(handle.slot()->asCell());
DOMWrapperWorld& world = *static_cast<DOMWrapperWorld*>(context);
- world.m_cssValueRoots.remove(&jsCSSValue->impl());
- uncacheWrapper(world, &jsCSSValue->impl(), jsCSSValue);
+ world.m_cssValueRoots.remove(&jsCSSValue->wrapped());
+ uncacheWrapper(world, &jsCSSValue->wrapped(), jsCSSValue);
}
JSValue toJS(ExecState*, JSDOMGlobalObject* globalObject, CSSValue* value)
return CanvasStyle();
JSObject* object = asObject(value);
if (object->inherits(JSCanvasGradient::info()))
- return CanvasStyle(&jsCast<JSCanvasGradient*>(object)->impl());
+ return CanvasStyle(&jsCast<JSCanvasGradient*>(object)->wrapped());
if (object->inherits(JSCanvasPattern::info()))
- return CanvasStyle(&jsCast<JSCanvasPattern*>(object)->impl());
+ return CanvasStyle(&jsCast<JSCanvasPattern*>(object)->wrapped());
return CanvasStyle();
}
JSValue JSCanvasRenderingContext2D::strokeStyle(ExecState& state) const
{
- return toJS(&state, globalObject(), impl().strokeStyle());
+ return toJS(&state, globalObject(), wrapped().strokeStyle());
}
void JSCanvasRenderingContext2D::setStrokeStyle(ExecState& state, JSValue value)
{
- CanvasRenderingContext2D& context = impl();
+ CanvasRenderingContext2D& context = wrapped();
if (value.isString()) {
context.setStrokeColor(asString(value)->value(&state));
return;
JSValue JSCanvasRenderingContext2D::fillStyle(ExecState& state) const
{
- return toJS(&state, globalObject(), impl().fillStyle());
+ return toJS(&state, globalObject(), wrapped().fillStyle());
}
void JSCanvasRenderingContext2D::setFillStyle(ExecState& state, JSValue value)
{
- CanvasRenderingContext2D& context = impl();
+ CanvasRenderingContext2D& context = wrapped();
if (value.isString()) {
context.setFillColor(asString(value)->value(&state));
return;
JSValue JSCanvasRenderingContext2D::webkitLineDash(ExecState& state) const
{
- const Vector<float>& dash = impl().getLineDash();
+ const Vector<float>& dash = wrapped().getLineDash();
MarkedArgumentBuffer list;
Vector<float>::const_iterator end = dash.end();
dash.append(elem);
}
- impl().setWebkitLineDash(dash);
+ wrapped().setWebkitLineDash(dash);
}
} // namespace WebCore
void JSCanvasRenderingContext::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(impl().canvas()));
+ visitor.addOpaqueRoot(root(wrapped().canvas()));
}
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, CanvasRenderingContext* object)
JSValue JSCharacterData::before(ExecState& state)
{
ExceptionCode ec = 0;
- impl().before(toNodeOrStringVector(state), ec);
+ wrapped().before(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSCharacterData::after(ExecState& state)
{
ExceptionCode ec = 0;
- impl().after(toNodeOrStringVector(state), ec);
+ wrapped().after(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSCharacterData::replaceWith(ExecState& state)
{
ExceptionCode ec = 0;
- impl().replaceWith(toNodeOrStringVector(state), ec);
+ wrapped().replaceWith(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSCommandLineAPIHost::inspectedObject(ExecState& state)
{
- CommandLineAPIHost::InspectableObject* object = impl().inspectedObject();
+ CommandLineAPIHost::InspectableObject* object = wrapped().inspectedObject();
if (!object)
return jsUndefined();
return jsUndefined();
Vector<EventListenerInfo> listenersArray;
- impl().getEventListenersImpl(node, listenersArray);
+ wrapped().getEventListenersImpl(node, listenersArray);
JSObject* result = constructEmptyObject(&state);
for (size_t i = 0; i < listenersArray.size(); ++i) {
if (state.argumentCount() >= 2) {
Deprecated::ScriptValue object(state.vm(), state.uncheckedArgument(0));
Deprecated::ScriptValue hints(state.vm(), state.uncheckedArgument(1));
- impl().inspectImpl(object.toInspectorValue(&state), hints.toInspectorValue(&state));
+ wrapped().inspectImpl(object.toInspectorValue(&state), hints.toInspectorValue(&state));
}
return jsUndefined();
Database* database = JSDatabase::toWrapped(state.uncheckedArgument(0));
if (database)
- return jsStringWithCache(&state, impl().databaseIdImpl(database));
+ return jsStringWithCache(&state, wrapped().databaseIdImpl(database));
return jsUndefined();
}
Storage* storage = JSStorage::toWrapped(state.uncheckedArgument(0));
if (storage)
- return jsStringWithCache(&state, impl().storageIdImpl(storage));
+ return jsStringWithCache(&state, wrapped().storageIdImpl(storage));
return jsUndefined();
}
return throwTypeError(&state);
ExceptionCode ec = 0;
- impl().getRandomValues(arrayBufferView.get(), ec);
+ wrapped().getRandomValues(arrayBufferView.get(), ec);
if (ec) {
setDOMException(&state, ec);
JSValue JSCryptoKey::algorithm(JSC::ExecState& state) const
{
JSCryptoAlgorithmBuilder builder(&state);
- impl().buildAlgorithmDescription(builder);
+ wrapped().buildAlgorithmDescription(builder);
return builder.result();
}
void JSCryptoKeyPair::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(impl().publicKey());
- visitor.addOpaqueRoot(impl().privateKey());
+ visitor.addOpaqueRoot(wrapped().publicKey());
+ visitor.addOpaqueRoot(wrapped().privateKey());
}
} // namespace WebCore
JSValue JSCustomEvent::detail(ExecState& state) const
{
- CustomEvent& event = impl();
+ CustomEvent& event = wrapped();
if (event.detail().hasNoValue())
return jsNull();
callType = m_customResolver->methodTable()->getCallData(m_customResolver.get(), callData);
if (callType == CallTypeNone) {
// FIXME: <http://webkit.org/b/114312> JSCustomXPathNSResolver::lookupNamespaceURI Console Message should include Line, Column, and SourceURL
- if (PageConsoleClient* console = m_globalObject->impl().console())
+ if (PageConsoleClient* console = m_globalObject->wrapped().console())
console->addMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("XPathNSResolver does not have a lookupNamespaceURI method."));
return String();
}
JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject());
if (JSDOMWindow* window = jsDynamicCast<JSDOMWindow*>(globalObject)) {
- if (!window->impl().isCurrentlyDisplayedInFrame())
+ if (!window->wrapped().isCurrentlyDisplayedInFrame())
return;
}
DOMWindow& activeDOMWindow(ExecState* exec)
{
- return asJSDOMWindow(exec->lexicalGlobalObject())->impl();
+ return asJSDOMWindow(exec->lexicalGlobalObject())->wrapped();
}
DOMWindow& firstDOMWindow(ExecState* exec)
{
- return asJSDOMWindow(exec->vmEntryGlobalObject())->impl();
+ return asJSDOMWindow(exec->vmEntryGlobalObject())->wrapped();
}
static inline bool canAccessDocument(JSC::ExecState* state, Document* targetDocument, SecurityReportingOption reportingOption = ReportSecurityError)
static HTMLFormElement* toHTMLFormElementOrNull(JSC::JSValue value)
{
- return value.inherits(JSHTMLFormElement::info()) ? &jsCast<JSHTMLFormElement*>(asObject(value))->impl() : nullptr;
+ return value.inherits(JSHTMLFormElement::info()) ? &jsCast<JSHTMLFormElement*>(asObject(value))->wrapped() : nullptr;
}
EncodedJSValue JSC_HOST_CALL constructJSDOMFormData(ExecState* exec)
String filename;
if (state.argumentCount() >= 3 && !state.argument(2).isUndefinedOrNull())
filename = state.argument(2).toString(&state)->value(&state);
- impl().append(name, JSBlob::toWrapped(value), filename);
+ wrapped().append(name, JSBlob::toWrapped(value), filename);
} else
- impl().append(name, value.toString(&state)->value(&state));
+ wrapped().append(name, value.toString(&state)->value(&state));
}
return jsUndefined();
bool JSDOMMimeTypeArray::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
bool JSDOMNamedFlowCollection::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
bool JSDOMPluginArray::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
bool JSDOMPlugin::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
RefPtr<DOMStringList> JSDOMStringList::toWrapped(ExecState* exec, JSValue value)
{
if (value.inherits(JSDOMStringList::info()))
- return &jsCast<JSDOMStringList*>(asObject(value))->impl();
+ return &jsCast<JSDOMStringList*>(asObject(value))->wrapped();
if (!isJSArray(value))
return nullptr;
if (propertyName.isSymbol())
return false;
bool nameIsValid;
- const AtomicString& item = impl().item(propertyNameToString(propertyName), nameIsValid);
+ const AtomicString& item = wrapped().item(propertyNameToString(propertyName), nameIsValid);
if (nameIsValid) {
slot.setValue(this, ReadOnly | DontDelete | DontEnum, toJS(exec, globalObject(), item));
return true;
{
JSDOMStringMap* thisObject = jsCast<JSDOMStringMap*>(object);
Vector<String> names;
- thisObject->impl().getNames(names);
+ thisObject->wrapped().getNames(names);
size_t length = names.size();
for (size_t i = 0; i < length; ++i)
propertyNames.add(Identifier::fromString(exec, names[i]));
JSDOMStringMap* thisObject = jsCast<JSDOMStringMap*>(cell);
if (propertyName.isSymbol())
return Base::deleteProperty(thisObject, exec, propertyName);
- return thisObject->impl().deleteItem(propertyNameToString(propertyName));
+ return thisObject->wrapped().deleteItem(propertyNameToString(propertyName));
}
bool JSDOMStringMap::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned index)
return false;
ExceptionCode ec = 0;
- impl().setItem(propertyNameToString(propertyName), stringValue, ec);
+ wrapped().setItem(propertyNameToString(propertyName), stringValue, ec);
setDOMException(exec, ec);
return !ec;
}
Optional<bool> force = state.argument(1).isUndefined() ? Nullopt : Optional<bool>(state.uncheckedArgument(1).toBoolean(&state));
if (UNLIKELY(state.hadException()))
return jsUndefined();
- JSValue result = jsBoolean(impl().toggle(token, force, ec));
+ JSValue result = jsBoolean(wrapped().toggle(token, force, ec));
setDOMException(&state, ec);
return result;
static bool shouldAllowAccessFrom(const JSGlobalObject* thisObject, ExecState* exec)
{
- return BindingSecurity::shouldAllowAccessToDOMWindow(exec, asJSDOMWindow(thisObject)->impl());
+ return BindingSecurity::shouldAllowAccessToDOMWindow(exec, asJSDOMWindow(thisObject)->wrapped());
}
const ClassInfo JSDOMWindowBase::s_info = { "Window", &JSDOMGlobalObject::s_info, 0, CREATE_METHOD_TABLE(JSDOMWindowBase) };
JSDOMWindowBase::JSDOMWindowBase(VM& vm, Structure* structure, PassRefPtr<DOMWindow> window, JSDOMWindowShell* shell)
: JSDOMGlobalObject(vm, structure, &shell->world(), &s_globalObjectMethodTable)
, m_windowCloseWatchpoints((window && window->frame()) ? IsWatched : IsInvalidated)
- , m_impl(window)
+ , m_wrapped(window)
, m_shell(shell)
, m_privateFunctions(vm)
{
void JSDOMWindowBase::updateDocument()
{
- ASSERT(m_impl->document());
+ ASSERT(m_wrapped->document());
ExecState* exec = globalExec();
- symbolTablePutWithAttributesTouchWatchpointSet(this, exec, exec->vm().propertyNames->document, toJS(exec, this, m_impl->document()), DontDelete | ReadOnly);
+ symbolTablePutWithAttributesTouchWatchpointSet(this, exec, exec->vm().propertyNames->document, toJS(exec, this, m_wrapped->document()), DontDelete | ReadOnly);
}
ScriptExecutionContext* JSDOMWindowBase::scriptExecutionContext() const
{
- return m_impl->document();
+ return m_wrapped->document();
}
void JSDOMWindowBase::printErrorMessage(const String& message) const
{
- printErrorMessageForFrame(impl().frame(), message);
+ printErrorMessageForFrame(wrapped().frame(), message);
}
bool JSDOMWindowBase::supportsProfiling(const JSGlobalObject* object)
{
const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
- Frame* frame = thisObject->impl().frame();
+ Frame* frame = thisObject->wrapped().frame();
if (!frame)
return false;
bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object)
{
const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
- Frame* frame = thisObject->impl().frame();
+ Frame* frame = thisObject->wrapped().frame();
if (!frame)
return false;
bool JSDOMWindowBase::shouldInterruptScript(const JSGlobalObject* object)
{
const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
- ASSERT(thisObject->impl().frame());
- Page* page = thisObject->impl().frame()->page();
+ ASSERT(thisObject->wrapped().frame());
+ Page* page = thisObject->wrapped().frame()->page();
return shouldInterruptScriptToPreventInfiniteRecursionWhenClosingPage(page);
}
bool JSDOMWindowBase::shouldInterruptScriptBeforeTimeout(const JSGlobalObject* object)
{
const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
- ASSERT(thisObject->impl().frame());
- Page* page = thisObject->impl().frame()->page();
+ ASSERT(thisObject->wrapped().frame());
+ Page* page = thisObject->wrapped().frame()->page();
if (shouldInterruptScriptToPreventInfiniteRecursionWhenClosingPage(page))
return true;
RuntimeFlags JSDOMWindowBase::javaScriptRuntimeFlags(const JSGlobalObject* object)
{
const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
- Frame* frame = thisObject->impl().frame();
+ Frame* frame = thisObject->wrapped().frame();
if (!frame)
return RuntimeFlags();
return frame->settings().javaScriptRuntimeFlags();
JSC::JSInternalPromise* JSDOMWindowBase::moduleLoaderResolve(JSC::JSGlobalObject* globalObject, JSC::ExecState* exec, JSC::JSValue moduleName, JSC::JSValue importerModuleKey)
{
JSDOMWindowBase* thisObject = JSC::jsCast<JSDOMWindowBase*>(globalObject);
- if (RefPtr<Document> document = thisObject->impl().document())
+ if (RefPtr<Document> document = thisObject->wrapped().document())
return document->moduleLoader()->resolve(globalObject, exec, moduleName, importerModuleKey);
JSC::JSInternalPromiseDeferred* deferred = JSC::JSInternalPromiseDeferred::create(exec, globalObject);
return deferred->reject(exec, jsUndefined());
JSC::JSInternalPromise* JSDOMWindowBase::moduleLoaderFetch(JSC::JSGlobalObject* globalObject, JSC::ExecState* exec, JSC::JSValue moduleKey)
{
JSDOMWindowBase* thisObject = JSC::jsCast<JSDOMWindowBase*>(globalObject);
- if (RefPtr<Document> document = thisObject->impl().document())
+ if (RefPtr<Document> document = thisObject->wrapped().document())
return document->moduleLoader()->fetch(globalObject, exec, moduleKey);
JSC::JSInternalPromiseDeferred* deferred = JSC::JSInternalPromiseDeferred::create(exec, globalObject);
return deferred->reject(exec, jsUndefined());
JSC::JSValue JSDOMWindowBase::moduleLoaderEvaluate(JSC::JSGlobalObject* globalObject, JSC::ExecState* exec, JSC::JSValue moduleKey, JSC::JSValue moduleRecord)
{
JSDOMWindowBase* thisObject = JSC::jsCast<JSDOMWindowBase*>(globalObject);
- if (RefPtr<Document> document = thisObject->impl().document())
+ if (RefPtr<Document> document = thisObject->wrapped().document())
return document->moduleLoader()->evaluate(globalObject, exec, moduleKey, moduleRecord);
return JSC::jsUndefined();
}
public:
void updateDocument();
- DOMWindow& impl() const { return *m_impl; }
+ DOMWindow& wrapped() const { return *m_wrapped; }
ScriptExecutionContext* scriptExecutionContext() const;
// Called just before removing this window from the JSDOMWindowShell.
static JSC::JSInternalPromise* moduleLoaderFetch(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSValue);
static JSC::JSValue moduleLoaderEvaluate(JSC::JSGlobalObject*, JSC::ExecState*, JSC::JSValue, JSC::JSValue);
- RefPtr<DOMWindow> m_impl;
+ RefPtr<DOMWindow> m_wrapped;
JSDOMWindowShell* m_shell;
JSBuiltinInternalFunctions m_privateFunctions;
void JSDOMWindow::visitAdditionalChildren(SlotVisitor& visitor)
{
- if (Frame* frame = impl().frame())
+ if (Frame* frame = wrapped().frame())
visitor.addOpaqueRoot(frame);
}
static EncodedJSValue childFrameGetter(ExecState* exec, JSObject* slotBase, EncodedJSValue, PropertyName propertyName)
{
- return JSValue::encode(toJS(exec, jsCast<JSDOMWindow*>(slotBase)->impl().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))->document()->domWindow()));
+ return JSValue::encode(toJS(exec, jsCast<JSDOMWindow*>(slotBase)->wrapped().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))->document()->domWindow()));
}
static EncodedJSValue namedItemGetter(ExecState* exec, JSObject* slotBase, EncodedJSValue, PropertyName propertyName)
{
JSDOMWindowBase* thisObj = jsCast<JSDOMWindow*>(slotBase);
- Document* document = thisObj->impl().frame()->document();
+ Document* document = thisObj->wrapped().frame()->document();
- ASSERT(BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObj->impl()));
+ ASSERT(BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObj->wrapped()));
ASSERT(is<HTMLDocument>(document));
AtomicStringImpl* atomicPropertyName = propertyName.publicName();
static EncodedJSValue jsDOMWindowWebKit(ExecState* exec, JSObject*, EncodedJSValue thisValue, PropertyName)
{
JSDOMWindow* castedThis = toJSDOMWindow(JSValue::decode(thisValue));
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->wrapped()))
return JSValue::encode(jsUndefined());
- return JSValue::encode(toJS(exec, castedThis->globalObject(), castedThis->impl().webkitNamespace()));
+ return JSValue::encode(toJS(exec, castedThis->globalObject(), castedThis->wrapped().webkitNamespace()));
}
#endif
auto* castedThis = toJSDOMWindow(JSValue::decode(thisValue));
if (!RuntimeEnabledFeatures::sharedFeatures().indexedDBEnabled())
return JSValue::encode(jsUndefined());
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, castedThis->wrapped()))
return JSValue::encode(jsUndefined());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = toJS(exec, castedThis->globalObject(), WTF::getPtr(DOMWindowIndexedDatabase::indexedDB(&impl)));
return JSValue::encode(result);
}
// We don't want any properties other than "close" and "closed" on a frameless window (i.e. one whose page got closed,
// or whose iframe got removed).
// FIXME: This doesn't fully match Firefox, which allows at least toString in addition to those.
- if (!thisObject->impl().frame()) {
+ if (!thisObject->wrapped().frame()) {
// The following code is safe for cross-domain and same domain use.
// It ignores any custom properties that might be set on the DOMWindow (including a custom prototype).
if (propertyName == exec->propertyNames().closed) {
// not allowed.
slot.setUndefined();
return true;
- } else
- slot.setWatchpointSet(thisObject->m_windowCloseWatchpoints);
+ }
+
+ slot.setWatchpointSet(thisObject->m_windowCloseWatchpoints);
// We need to check for cross-domain access here without printing the generic warning message
// because we always allow access to some function, just different ones depending whether access
// is allowed.
String errorMessage;
- bool allowsAccess = shouldAllowAccessToDOMWindow(exec, thisObject->impl(), errorMessage);
+ bool allowsAccess = shouldAllowAccessToDOMWindow(exec, thisObject->wrapped(), errorMessage);
// Look for overrides before looking at any of our own properties, but ignore overrides completely
// if this is cross-domain access.
slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, nonCachingStaticFunctionGetter<jsDOMWindowPrototypeFunctionPostMessage, 2>);
return true;
} else if (propertyName == exec->propertyNames().showModalDialog) {
- if (!DOMWindow::canShowModalDialog(thisObject->impl().frame())) {
+ if (!DOMWindow::canShowModalDialog(thisObject->wrapped().frame())) {
slot.setUndefined();
return true;
}
}
#if ENABLE(USER_MESSAGE_HANDLERS)
- if (propertyName == exec->propertyNames().webkit && thisObject->impl().shouldHaveWebKitNamespaceForWorld(thisObject->world())) {
+ if (propertyName == exec->propertyNames().webkit && thisObject->wrapped().shouldHaveWebKitNamespaceForWorld(thisObject->world())) {
slot.setCacheableCustom(thisObject, allowsAccess ? DontDelete | ReadOnly : ReadOnly | DontDelete | DontEnum, jsDOMWindowWebKit);
return true;
}
// naming frames things that conflict with window properties that
// are in Moz but not IE. Since we have some of these, we have to do
// it the Moz way.
- if (thisObject->impl().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))) {
+ if (thisObject->wrapped().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))) {
slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, childFrameGetter);
return true;
}
// allow window[1] or parent[1] etc. (#56983)
Optional<uint32_t> index = parseIndex(propertyName);
- if (index && index.value() < thisObject->impl().frame()->tree().scopedChildCount()) {
+ if (index && index.value() < thisObject->wrapped().frame()->tree().scopedChildCount()) {
slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum,
- toJS(exec, thisObject->impl().frame()->tree().scopedChild(index.value())->document()->domWindow()));
+ toJS(exec, thisObject->wrapped().frame()->tree().scopedChild(index.value())->document()->domWindow()));
return true;
}
}
// Allow shortcuts like 'Image1' instead of document.images.Image1
- Document* document = thisObject->impl().frame()->document();
+ Document* document = thisObject->wrapped().frame()->document();
if (is<HTMLDocument>(*document)) {
AtomicStringImpl* atomicPropertyName = propertyName.publicName();
if (atomicPropertyName && downcast<HTMLDocument>(*document).hasWindowNamedItem(*atomicPropertyName)) {
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
- if (!thisObject->impl().frame()) {
+ if (!thisObject->wrapped().frame()) {
// FIXME: We should have a message here that explains why the property access/function call was
// not allowed.
slot.setUndefined();
// because we always allow access to some function, just different ones depending whether access
// is allowed.
String errorMessage;
- bool allowsAccess = shouldAllowAccessToDOMWindow(exec, thisObject->impl(), errorMessage);
+ bool allowsAccess = shouldAllowAccessToDOMWindow(exec, thisObject->wrapped(), errorMessage);
// Look for overrides before looking at any of our own properties, but ignore overrides completely
// if this is cross-domain access.
// naming frames things that conflict with window properties that
// are in Moz but not IE. Since we have some of these, we have to do
// it the Moz way.
- if (thisObject->impl().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))) {
+ if (thisObject->wrapped().frame()->tree().scopedChild(propertyNameToAtomicString(propertyName))) {
slot.setCustom(thisObject, ReadOnly | DontDelete | DontEnum, childFrameGetter);
return true;
}
// We need to test the correct priority order.
// allow window[1] or parent[1] etc. (#56983)
- if (index < thisObject->impl().frame()->tree().scopedChildCount()) {
+ if (index < thisObject->wrapped().frame()->tree().scopedChildCount()) {
slot.setValue(thisObject, ReadOnly | DontDelete | DontEnum,
- toJS(exec, thisObject->impl().frame()->tree().scopedChild(index)->document()->domWindow()));
+ toJS(exec, thisObject->wrapped().frame()->tree().scopedChild(index)->document()->domWindow()));
return true;
}
}
// Allow shortcuts like 'Image1' instead of document.images.Image1
- Document* document = thisObject->impl().frame()->document();
+ Document* document = thisObject->wrapped().frame()->document();
if (is<HTMLDocument>(*document)) {
// This propertyName is generated by Identifier::from.
// This function generates Identifier from String and always returns the non-symbol Identifier.
void JSDOMWindow::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(cell);
- if (!thisObject->impl().frame())
+ if (!thisObject->wrapped().frame())
return;
// Optimization: access JavaScript global variables directly before involving the DOM.
if (thisObject->JSGlobalObject::hasOwnPropertyForWrite(exec, propertyName)) {
- if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
JSGlobalObject::put(thisObject, exec, propertyName, value, slot);
return;
}
if (lookupPut(exec, propertyName, thisObject, value, *s_info.staticPropHashTable, slot))
return;
- if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
Base::put(thisObject, exec, propertyName, value, slot);
}
void JSDOMWindow::putByIndex(JSCell* cell, ExecState* exec, unsigned index, JSValue value, bool shouldThrow)
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(cell);
- if (!thisObject->impl().frame())
+ if (!thisObject->wrapped().frame())
return;
Identifier propertyName = Identifier::from(exec, index);
// Optimization: access JavaScript global variables directly before involving the DOM.
if (thisObject->JSGlobalObject::hasOwnPropertyForWrite(exec, propertyName)) {
- if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
JSGlobalObject::putByIndex(thisObject, exec, index, value, shouldThrow);
return;
}
- if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
Base::putByIndex(thisObject, exec, index, value, shouldThrow);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(cell);
// Only allow deleting properties by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return false;
return Base::deleteProperty(thisObject, exec, propertyName);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(cell);
// Only allow deleting properties by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return false;
return Base::deletePropertyByIndex(thisObject, exec, propertyName);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow the window to enumerated by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return 0;
return Base::getEnumerableLength(exec, thisObject);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow the window to enumerated by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return;
Base::getStructurePropertyNames(thisObject, exec, propertyNames, mode);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow the window to enumerated by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return;
Base::getGenericPropertyNames(thisObject, exec, propertyNames, mode);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow the window to enumerated by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return;
Base::getPropertyNames(thisObject, exec, propertyNames, mode);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow the window to enumerated by frames in the same origin.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return;
Base::getOwnPropertyNames(thisObject, exec, propertyNames, mode);
}
{
JSDOMWindow* thisObject = jsCast<JSDOMWindow*>(object);
// Only allow defining properties in this way by frames in the same origin, as it allows setters to be introduced.
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(exec, thisObject->wrapped()))
return false;
// Don't allow shadowing location using accessor properties.
// a property named "location" instead of performing a navigation (<rdar://problem/5688039>).
if (Frame* activeFrame = activeDOMWindow(&state).frame()) {
if (activeFrame->settings().usesDashboardBackwardCompatibilityMode() && !activeFrame->tree().parent()) {
- if (BindingSecurity::shouldAllowAccessToDOMWindow(&state, impl()))
+ if (BindingSecurity::shouldAllowAccessToDOMWindow(&state, wrapped()))
putDirect(state.vm(), Identifier::fromString(&state, "location"), value);
return;
}
if (state.hadException())
return;
- if (Location* location = impl().location())
+ if (Location* location = wrapped().location())
location->setHref(activeDOMWindow(&state), firstDOMWindow(&state), locationString);
}
if (state.hadException())
return jsUndefined();
- RefPtr<DOMWindow> openedWindow = impl().open(urlString, frameName, windowFeaturesString, activeDOMWindow(&state), firstDOMWindow(&state));
+ RefPtr<DOMWindow> openedWindow = wrapped().open(urlString, frameName, windowFeaturesString, activeDOMWindow(&state), firstDOMWindow(&state));
if (!openedWindow)
return jsUndefined();
return toJS(&state, openedWindow.get());
DialogHandler handler(state);
- impl().showModalDialog(urlString, dialogFeaturesString, activeDOMWindow(&state), firstDOMWindow(&state), [&handler](DOMWindow& dialog) {
+ wrapped().showModalDialog(urlString, dialogFeaturesString, activeDOMWindow(&state), firstDOMWindow(&state), [&handler](DOMWindow& dialog) {
handler.dialogCreated(dialog);
});
JSValue JSDOMWindow::postMessage(ExecState& state)
{
- return handlePostMessage(impl(), state);
+ return handlePostMessage(wrapped(), state);
}
JSValue JSDOMWindow::setTimeout(ExecState& state)
{
- ContentSecurityPolicy* contentSecurityPolicy = impl().document() ? impl().document()->contentSecurityPolicy() : nullptr;
+ ContentSecurityPolicy* contentSecurityPolicy = wrapped().document() ? wrapped().document()->contentSecurityPolicy() : nullptr;
std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), contentSecurityPolicy);
if (state.hadException())
return jsUndefined();
int delay = state.argument(1).toInt32(&state);
ExceptionCode ec = 0;
- int result = impl().setTimeout(WTF::move(action), delay, ec);
+ int result = wrapped().setTimeout(WTF::move(action), delay, ec);
setDOMException(&state, ec);
return jsNumber(result);
JSValue JSDOMWindow::setInterval(ExecState& state)
{
- ContentSecurityPolicy* contentSecurityPolicy = impl().document() ? impl().document()->contentSecurityPolicy() : nullptr;
+ ContentSecurityPolicy* contentSecurityPolicy = wrapped().document() ? wrapped().document()->contentSecurityPolicy() : nullptr;
std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), contentSecurityPolicy);
if (state.hadException())
return jsUndefined();
return jsNumber(0);
ExceptionCode ec = 0;
- int result = impl().setInterval(WTF::move(action), delay, ec);
+ int result = wrapped().setInterval(WTF::move(action), delay, ec);
setDOMException(&state, ec);
return jsNumber(result);
JSValue JSDOMWindow::addEventListener(ExecState& state)
{
- Frame* frame = impl().frame();
+ Frame* frame = wrapped().frame();
if (!frame)
return jsUndefined();
if (!listener.isObject())
return jsUndefined();
- impl().addEventListener(state.argument(0).toString(&state)->toAtomicString(&state), JSEventListener::create(asObject(listener), this, false, globalObject()->world()), state.argument(2).toBoolean(&state));
+ wrapped().addEventListener(state.argument(0).toString(&state)->toAtomicString(&state), JSEventListener::create(asObject(listener), this, false, globalObject()->world()), state.argument(2).toBoolean(&state));
return jsUndefined();
}
JSValue JSDOMWindow::removeEventListener(ExecState& state)
{
- Frame* frame = impl().frame();
+ Frame* frame = wrapped().frame();
if (!frame)
return jsUndefined();
if (!listener.isObject())
return jsUndefined();
- impl().removeEventListener(state.argument(0).toString(&state)->toAtomicString(&state), JSEventListener::create(asObject(listener), this, false, globalObject()->world()).ptr(), state.argument(2).toBoolean(&state));
+ wrapped().removeEventListener(state.argument(0).toString(&state)->toAtomicString(&state), JSEventListener::create(asObject(listener), this, false, globalObject()->world()).ptr(), state.argument(2).toBoolean(&state));
return jsUndefined();
}
return 0;
JSObject* object = asObject(value);
if (object->inherits(JSDOMWindow::info()))
- return &jsCast<JSDOMWindow*>(object)->impl();
+ return &jsCast<JSDOMWindow*>(object)->wrapped();
if (object->inherits(JSDOMWindowShell::info()))
- return &jsCast<JSDOMWindowShell*>(object)->impl();
+ return &jsCast<JSDOMWindowShell*>(object)->wrapped();
return 0;
}
{
// Replacing JSDOMWindow via telling JSDOMWindowShell to use the same DOMWindow it already uses makes no sense,
// so we'd better never try to.
- ASSERT(!window() || domWindow.get() != &window()->impl());
+ ASSERT(!window() || domWindow.get() != &window()->wrapped());
// Explicitly protect the global object's prototype so it isn't collected
// when we allocate the global object. (Once the global object is fully
// constructed, it can mark its own prototype.)
// JSDOMWindow methods
// ----
-DOMWindow& JSDOMWindowShell::impl() const
+DOMWindow& JSDOMWindowShell::wrapped() const
{
- return window()->impl();
+ return window()->wrapped();
}
// ----
DECLARE_INFO;
- DOMWindow& impl() const;
+ DOMWindow& wrapped() const;
static JSDOMWindowShell* create(JSC::VM& vm, PassRefPtr<DOMWindow> window, JSC::Structure* structure, DOMWrapperWorld& world)
{
public:
typedef JSDOMObject Base;
- ImplementationClass& impl() const { return *m_impl; }
- ~JSDOMWrapper() { std::exchange(m_impl, nullptr)->deref(); }
+ ImplementationClass& wrapped() const { return const_cast<ImplementationClass&>(m_wrapped.get()); }
protected:
JSDOMWrapper(JSC::Structure* structure, JSC::JSGlobalObject& globalObject, Ref<ImplementationClass>&& impl)
: Base(structure, globalObject)
- , m_impl(&impl.leakRef()) { }
+ , m_wrapped(WTF::move(impl)) { }
private:
- ImplementationClass* m_impl;
+ Ref<ImplementationClass> m_wrapped;
};
} // namespace WebCore
#if ENABLE(DATACUE_VALUE)
JSValue JSDataCue::value(ExecState& state) const
{
- return impl().value(&state);
+ return wrapped().value(&state);
}
void JSDataCue::setValue(ExecState& state, JSValue value)
{
- impl().setValue(&state, value);
+ wrapped().setValue(&state, value);
}
#endif
JSValue JSDataTransfer::types(ExecState& state) const
{
- Vector<String> types = impl().types();
+ Vector<String> types = wrapped().types();
return types.isEmpty() ? jsNull() : jsArray(&state, globalObject(), types);
}
JSC::JSValue JSDedicatedWorkerGlobalScope::postMessage(JSC::ExecState& state)
{
- return handlePostMessage(state, &impl());
+ return handlePostMessage(state, &wrapped());
}
} // namespace WebCore
JSValue JSDeviceMotionEvent::acceleration(ExecState& state) const
{
- DeviceMotionEvent& imp = impl();
+ DeviceMotionEvent& imp = wrapped();
if (!imp.deviceMotionData()->acceleration())
return jsNull();
return createAccelerationObject(imp.deviceMotionData()->acceleration(), state);
JSValue JSDeviceMotionEvent::accelerationIncludingGravity(ExecState& state) const
{
- DeviceMotionEvent& imp = impl();
+ DeviceMotionEvent& imp = wrapped();
if (!imp.deviceMotionData()->accelerationIncludingGravity())
return jsNull();
return createAccelerationObject(imp.deviceMotionData()->accelerationIncludingGravity(), state);
JSValue JSDeviceMotionEvent::rotationRate(ExecState& state) const
{
- DeviceMotionEvent& imp = impl();
+ DeviceMotionEvent& imp = wrapped();
if (!imp.deviceMotionData()->rotationRate())
return jsNull();
return createRotationRateObject(imp.deviceMotionData()->rotationRate(), state);
JSValue JSDeviceMotionEvent::interval(ExecState&) const
{
- DeviceMotionEvent& imp = impl();
+ DeviceMotionEvent& imp = wrapped();
if (!imp.deviceMotionData()->canProvideInterval())
return jsNull();
return jsNumber(imp.deviceMotionData()->interval());
bool intervalProvided = !state.argument(6).isUndefinedOrNull();
double interval = state.argument(6).toNumber(&state);
RefPtr<DeviceMotionData> deviceMotionData = DeviceMotionData::create(acceleration, accelerationIncludingGravity, rotationRate, intervalProvided, interval);
- impl().initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get());
+ wrapped().initDeviceMotionEvent(type, bubbles, cancelable, deviceMotionData.get());
return jsUndefined();
}
JSValue JSDeviceOrientationEvent::alpha(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideAlpha())
return jsNull();
return jsNumber(imp.orientation()->alpha());
JSValue JSDeviceOrientationEvent::beta(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideBeta())
return jsNull();
return jsNumber(imp.orientation()->beta());
JSValue JSDeviceOrientationEvent::gamma(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideGamma())
return jsNull();
return jsNumber(imp.orientation()->gamma());
#if PLATFORM(IOS)
JSValue JSDeviceOrientationEvent::webkitCompassHeading(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideCompassHeading())
return jsNull();
return jsNumber(imp.orientation()->compassHeading());
JSValue JSDeviceOrientationEvent::webkitCompassAccuracy(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideCompassAccuracy())
return jsNull();
return jsNumber(imp.orientation()->compassAccuracy());
#if !PLATFORM(IOS)
JSValue JSDeviceOrientationEvent::absolute(ExecState&) const
{
- DeviceOrientationEvent& imp = impl();
+ DeviceOrientationEvent& imp = wrapped();
if (!imp.orientation()->canProvideAbsolute())
return jsNull();
return jsBoolean(imp.orientation()->absolute());
bool absolute = state.argument(6).toBoolean(&state);
RefPtr<DeviceOrientationData> orientation = DeviceOrientationData::create(alphaProvided, alpha, betaProvided, beta, gammaProvided, gamma, absoluteProvided, absolute);
#endif
- impl().initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
+ wrapped().initDeviceOrientationEvent(type, bubbles, cancelable, orientation.get());
return jsUndefined();
}
JSValue JSDocument::prepend(ExecState& state)
{
ExceptionCode ec = 0;
- impl().prepend(toNodeOrStringVector(state), ec);
+ wrapped().prepend(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocument::append(ExecState& state)
{
ExceptionCode ec = 0;
- impl().append(toNodeOrStringVector(state), ec);
+ wrapped().append(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocumentFragment::prepend(ExecState& state)
{
ExceptionCode ec = 0;
- impl().prepend(toNodeOrStringVector(state), ec);
+ wrapped().prepend(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocumentFragment::append(ExecState& state)
{
ExceptionCode ec = 0;
- impl().append(toNodeOrStringVector(state), ec);
+ wrapped().append(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocumentType::before(ExecState& state)
{
ExceptionCode ec = 0;
- impl().before(toNodeOrStringVector(state), ec);
+ wrapped().before(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocumentType::after(ExecState& state)
{
ExceptionCode ec = 0;
- impl().after(toNodeOrStringVector(state), ec);
+ wrapped().after(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSDocumentType::replaceWith(ExecState& state)
{
ExceptionCode ec = 0;
- impl().replaceWith(toNodeOrStringVector(state), ec);
+ wrapped().replaceWith(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSElement::before(ExecState& state)
{
ExceptionCode ec = 0;
- impl().before(toNodeOrStringVector(state), ec);
+ wrapped().before(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSElement::after(ExecState& state)
{
ExceptionCode ec = 0;
- impl().after(toNodeOrStringVector(state), ec);
+ wrapped().after(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSElement::replaceWith(ExecState& state)
{
ExceptionCode ec = 0;
- impl().replaceWith(toNodeOrStringVector(state), ec);
+ wrapped().replaceWith(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSElement::prepend(ExecState& state)
{
ExceptionCode ec = 0;
- impl().prepend(toNodeOrStringVector(state), ec);
+ wrapped().prepend(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSElement::append(ExecState& state)
{
ExceptionCode ec = 0;
- impl().append(toNodeOrStringVector(state), ec);
+ wrapped().append(toNodeOrStringVector(state), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSEvent::clipboardData(ExecState& state) const
{
- return impl().isClipboardEvent() ? toJS(&state, globalObject(), impl().clipboardData()) : jsUndefined();
+ return wrapped().isClipboardEvent() ? toJS(&state, globalObject(), wrapped().clipboardData()) : jsUndefined();
}
#define TRY_TO_WRAP_WITH_INTERFACE(interfaceName) \
if (scriptExecutionContext->isDocument()) {
JSDOMWindow* window = jsCast<JSDOMWindow*>(globalObject);
- if (!window->impl().isCurrentlyDisplayedInFrame())
+ if (!window->wrapped().isCurrentlyDisplayedInFrame())
return;
// FIXME: Is this check needed for other contexts?
- ScriptController& script = window->impl().frame()->script();
+ ScriptController& script = window->wrapped().frame()->script();
if (!script.canExecuteScripts(AboutToExecuteScript) || script.isPaused())
return;
}
#define TRY_TO_UNWRAP_WITH_INTERFACE(interfaceName) \
if (value.inherits(JS##interfaceName::info())) \
- return &jsCast<JS##interfaceName*>(asObject(value))->impl();
+ return &jsCast<JS##interfaceName*>(asObject(value))->wrapped();
EventTarget* JSEventTarget::toWrapped(JSC::JSValue value)
{
JSValue JSFileReader::result(ExecState& state) const
{
- FileReader& imp = impl();
+ FileReader& imp = wrapped();
if (imp.readType() == FileReaderLoader::ReadAsArrayBuffer)
return toJS(&state, globalObject(), WTF::getPtr(imp.arrayBufferResult()));
return jsOwnedStringOrNull(&state, imp.stringResult());
return jsUndefined();
ASSERT(positionOptions);
- impl().getCurrentPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
+ wrapped().getCurrentPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
return jsUndefined();
}
return jsUndefined();
ASSERT(positionOptions);
- int watchID = impl().watchPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
+ int watchID = wrapped().watchPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
return jsNumber(watchID);
}
static JSValue namedItems(ExecState& state, JSHTMLAllCollection* collection, PropertyName propertyName)
{
- Vector<Ref<Element>> namedItems = collection->impl().namedItems(propertyNameToAtomicString(propertyName));
+ Vector<Ref<Element>> namedItems = collection->wrapped().namedItems(propertyNameToAtomicString(propertyName));
if (namedItems.isEmpty())
return jsUndefined();
// Do not use thisObj here. It can be the JSHTMLDocument, in the document.forms(i) case.
JSHTMLAllCollection* jsCollection = jsCast<JSHTMLAllCollection*>(exec->callee());
- HTMLAllCollection& collection = jsCollection->impl();
+ HTMLAllCollection& collection = jsCollection->wrapped();
// Also, do we need the TypeError test here ?
JSValue JSHTMLAllCollection::item(ExecState& state)
{
if (Optional<uint32_t> index = parseIndex(*state.argument(0).toString(&state)->value(&state).impl()))
- return toJS(&state, globalObject(), impl().item(index.value()));
+ return toJS(&state, globalObject(), wrapped().item(index.value()));
return namedItems(state, this, Identifier::fromString(&state, state.argument(0).toString(&state)->value(&state)));
}
JSValue JSHTMLCanvasElement::getContext(ExecState& state)
{
- HTMLCanvasElement& canvas = impl();
+ HTMLCanvasElement& canvas = wrapped();
const String& contextId = state.argument(0).toString(&state)->value(&state);
RefPtr<CanvasContextAttributes> attrs;
JSValue JSHTMLCanvasElement::probablySupportsContext(ExecState& state)
{
- HTMLCanvasElement& canvas = impl();
+ HTMLCanvasElement& canvas = wrapped();
if (!state.argumentCount())
return jsBoolean(false);
const String& contextId = state.uncheckedArgument(0).toString(&state)->value(&state);
JSValue JSHTMLCanvasElement::toDataURL(ExecState& state)
{
- HTMLCanvasElement& canvas = impl();
+ HTMLCanvasElement& canvas = wrapped();
ExceptionCode ec = 0;
const String& type = valueToStringWithUndefinedOrNullCheck(&state, state.argument(0));
bool JSHTMLCollection::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- ASSERT_WITH_MESSAGE(impl().type() != FormControls, "Should call the subclass' nameGetter");
- ASSERT_WITH_MESSAGE(impl().type() != SelectOptions, "Should call the subclass' nameGetter");
+ ASSERT_WITH_MESSAGE(wrapped().type() != FormControls, "Should call the subclass' nameGetter");
+ ASSERT_WITH_MESSAGE(wrapped().type() != SelectOptions, "Should call the subclass' nameGetter");
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
bool JSHTMLDocument::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto& document = impl();
+ auto& document = wrapped();
AtomicStringImpl* atomicPropertyName = propertyName.publicName();
if (!atomicPropertyName || !document.hasDocumentNamedItem(*atomicPropertyName))
if (v)
return v;
- return toJS(&state, globalObject(), impl().all());
+ return toJS(&state, globalObject(), wrapped().all());
}
void JSHTMLDocument::setAll(ExecState& state, JSValue value)
if (!callerFrame)
return nullptr;
- return asJSDOMWindow(functor.callerFrame()->lexicalGlobalObject())->impl().document();
+ return asJSDOMWindow(functor.callerFrame()->lexicalGlobalObject())->wrapped().document();
}
// Custom functions
{
// For compatibility with other browsers, pass open calls with more than 2 parameters to the window.
if (state.argumentCount() > 2) {
- if (Frame* frame = impl().frame()) {
+ if (Frame* frame = wrapped().frame()) {
JSDOMWindowShell* wrapper = toJSDOMWindowShell(frame, currentWorld(&state));
if (wrapper) {
JSValue function = wrapper->get(&state, Identifier::fromString(&state, "open"));
// document.open clobbers the security context of the document and
// aliases it with the active security context.
- Document* activeDocument = asJSDOMWindow(state.lexicalGlobalObject())->impl().document();
+ Document* activeDocument = asJSDOMWindow(state.lexicalGlobalObject())->wrapped().document();
// In the case of two parameters or fewer, do a normal document open.
- impl().open(activeDocument);
+ wrapped().open(activeDocument);
return this;
}
static inline void documentWrite(ExecState& state, JSHTMLDocument* thisDocument, NewlineRequirement addNewline)
{
- HTMLDocument* document = &thisDocument->impl();
+ HTMLDocument* document = &thisDocument->wrapped();
// DOM only specifies single string argument, but browsers allow multiple or no arguments.
size_t size = state.argumentCount();
JSScope* JSHTMLElement::pushEventHandlerScope(ExecState* exec, JSScope* scope) const
{
- HTMLElement& element = impl();
+ HTMLElement& element = wrapped();
// The document is put on first, fall back to searching it only after the element and form.
scope = JSWithScope::create(exec, asObject(toJS(exec, globalObject(), &element.document())), scope);
static JSValue namedItems(ExecState& state, JSHTMLFormControlsCollection* collection, PropertyName propertyName)
{
const AtomicString& name = propertyNameToAtomicString(propertyName);
- Vector<Ref<Element>> namedItems = collection->impl().namedItems(name);
+ Vector<Ref<Element>> namedItems = collection->wrapped().namedItems(name);
if (namedItems.isEmpty())
return jsUndefined();
if (namedItems.size() == 1)
return toJS(&state, collection->globalObject(), namedItems[0].ptr());
- ASSERT(collection->impl().type() == FormControls);
- return toJS(&state, collection->globalObject(), collection->impl().ownerNode().radioNodeList(name).get());
+ ASSERT(collection->wrapped().type() == FormControls);
+ return toJS(&state, collection->globalObject(), collection->wrapped().ownerNode().radioNodeList(name).get());
}
bool JSHTMLFormControlsCollection::nameGetter(ExecState* state, PropertyName propertyName, JSValue& value)
bool JSHTMLFormElement::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- Vector<Ref<Element>> namedItems = impl().namedElements(propertyNameToAtomicString(propertyName));
+ Vector<Ref<Element>> namedItems = wrapped().namedElements(propertyNameToAtomicString(propertyName));
if (namedItems.isEmpty())
return false;
void JSHTMLFrameElement::setLocation(ExecState& state, JSValue value)
{
- HTMLFrameElement& imp = impl();
+ HTMLFrameElement& imp = wrapped();
String locationValue = valueToStringWithNullCheck(&state, value);
if (!allowSettingJavascriptURL(state, &imp, locationValue))
bool JSHTMLFrameSetElement::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto* frameElement = impl().children()->namedItem(propertyNameToAtomicString(propertyName));
+ auto* frameElement = wrapped().children()->namedItem(propertyNameToAtomicString(propertyName));
if (!is<HTMLFrameElement>(frameElement))
return false;
JSValue JSHTMLInputElement::selectionStart(ExecState& state) const
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
return throwTypeError(&state);
void JSHTMLInputElement::setSelectionStart(ExecState& state, JSValue value)
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
throwTypeError(&state);
JSValue JSHTMLInputElement::selectionEnd(ExecState& state) const
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
return throwTypeError(&state);
void JSHTMLInputElement::setSelectionEnd(ExecState& state, JSValue value)
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
throwTypeError(&state);
JSValue JSHTMLInputElement::selectionDirection(ExecState& state) const
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
return throwTypeError(&state);
void JSHTMLInputElement::setSelectionDirection(ExecState& state, JSValue value)
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection()) {
throwTypeError(&state);
return;
JSValue JSHTMLInputElement::setSelectionRange(ExecState& state)
{
- HTMLInputElement& input = impl();
+ HTMLInputElement& input = wrapped();
if (!input.canHaveSelection())
return throwTypeError(&state);
{
// 4.8.10.11.2 Media controllers: controller attribute.
// On setting, it must first remove the element's mediagroup attribute, if any,
- impl().setMediaGroup(String());
+ wrapped().setMediaGroup(String());
// and then set the current media controller to the given value.
- impl().setController(JSMediaController::toWrapped(value));
+ wrapped().setController(JSMediaController::toWrapped(value));
}
}
bool JSHTMLOptionsCollection::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
newLength = static_cast<unsigned>(lengthValue);
}
if (!ec)
- impl().setLength(newLength, ec);
+ wrapped().setLength(newLength, ec);
setDOMException(&state, ec);
}
void JSHTMLOptionsCollection::indexSetter(ExecState* exec, unsigned index, JSValue value)
{
- selectIndexSetter(&impl().selectElement(), exec, index, value);
+ selectIndexSetter(&wrapped().selectElement(), exec, index, value);
}
JSValue JSHTMLOptionsCollection::remove(ExecState& state)
// The argument can be an HTMLOptionElement or an index.
JSValue argument = state.argument(0);
if (HTMLOptionElement* option = JSHTMLOptionElement::toWrapped(argument))
- impl().remove(option);
+ wrapped().remove(option);
else
- impl().remove(argument.toInt32(&state));
+ wrapped().remove(argument.toInt32(&state));
return jsUndefined();
}
JSValue JSHTMLSelectElement::remove(ExecState& state)
{
- HTMLSelectElement& select = impl();
+ HTMLSelectElement& select = wrapped();
if (!state.argumentCount()) {
// When called with no argument, we should call Element::remove() to detach.
void JSHTMLSelectElement::indexSetter(JSC::ExecState* exec, unsigned index, JSC::JSValue value)
{
- selectIndexSetter(&impl(), exec, index, value);
+ selectIndexSetter(&wrapped(), exec, index, value);
}
}
{
JSLockHolder lock(&state);
- DocumentFragment* content = impl().content();
+ DocumentFragment* content = wrapped().content();
JSObject* wrapper = getCachedWrapper(globalObject()->world(), content);
if (wrapper)
// Our custom code is only needed to implement the Window cross-domain scheme, so if access is
// allowed, return false so the normal lookup will take place.
String message;
- if (shouldAllowAccessToFrame(exec, impl().frame(), message))
+ if (shouldAllowAccessToFrame(exec, wrapped().frame(), message))
return false;
// Check for the few functions that we allow, even when called cross-domain.
return true;
}
- printErrorMessageForFrame(impl().frame(), message);
+ printErrorMessageForFrame(wrapped().frame(), message);
slot.setUndefined();
return true;
}
bool JSHistory::putDelegate(ExecState* exec, PropertyName, JSValue, PutPropertySlot&)
{
- if (!shouldAllowAccessToFrame(exec, impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, wrapped().frame()))
return true;
return false;
}
bool JSHistory::deleteProperty(JSCell* cell, ExecState* exec, PropertyName propertyName)
{
JSHistory* thisObject = jsCast<JSHistory*>(cell);
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return false;
return Base::deleteProperty(thisObject, exec, propertyName);
}
bool JSHistory::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned propertyName)
{
JSHistory* thisObject = jsCast<JSHistory*>(cell);
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return false;
return Base::deletePropertyByIndex(thisObject, exec, propertyName);
}
void JSHistory::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyNameArray& propertyNames, EnumerationMode mode)
{
JSHistory* thisObject = jsCast<JSHistory*>(object);
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return;
Base::getOwnPropertyNames(thisObject, exec, propertyNames, mode);
}
JSValue JSHistory::state(ExecState& state) const
{
- History& history = impl();
+ History& history = wrapped();
JSValue cachedValue = m_state.get();
if (!cachedValue.isEmpty() && !history.stateChanged())
JSValue JSHistory::pushState(ExecState& state)
{
- if (!shouldAllowAccessToFrame(&state, impl().frame()))
+ if (!shouldAllowAccessToFrame(&state, wrapped().frame()))
return jsUndefined();
RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
}
ExceptionCode ec = 0;
- impl().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Push, ec);
+ wrapped().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Push, ec);
setDOMException(&state, ec);
m_state.clear();
JSValue JSHistory::replaceState(ExecState& state)
{
- if (!shouldAllowAccessToFrame(&state, impl().frame()))
+ if (!shouldAllowAccessToFrame(&state, wrapped().frame()))
return jsUndefined();
RefPtr<SerializedScriptValue> historyState = SerializedScriptValue::create(&state, state.argument(0), 0, 0);
}
ExceptionCode ec = 0;
- impl().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Replace, ec);
+ wrapped().stateObjectAdded(historyState.release(), title, url, History::StateObjectType::Replace, ec);
setDOMException(&state, ec);
m_state.clear();
}
ExceptionCode ec = 0;
- JSValue result = toJS(&state, globalObject(), impl().createObjectStore(name, keyPath, autoIncrement, ec).get());
+ JSValue result = toJS(&state, globalObject(), wrapped().createObjectStore(name, keyPath, autoIncrement, ec).get());
setDOMException(&state, ec);
return result;
}
}
ExceptionCode ec = 0;
- JSValue result = toJS(&exec, globalObject(), impl().transaction(scriptContext, scope, mode, ec).get());
+ JSValue result = toJS(&exec, globalObject(), wrapped().transaction(scriptContext, scope, mode, ec).get());
setDOMException(&exec, ec);
return result;
}
return JSValue::decode(throwThisTypeError(state, "IDBObjectStore", "put"));
ASSERT_GC_OBJECT_INHERITS(castedThis, JSIDBObjectStore::info());
- auto& impl = castedThis->impl();
+ auto& wrapped = castedThis->wrapped();
size_t argsCount = state.argumentCount();
if (UNLIKELY(argsCount < 1))
if (argsCount == 1) {
JSValue result;
if (overwrite)
- result = toJS(&state, castedThis->globalObject(), impl.put(state, value, ec).get());
+ result = toJS(&state, castedThis->globalObject(), wrapped.put(state, value, ec).get());
else
- result = toJS(&state, castedThis->globalObject(), impl.add(state, value, ec).get());
+ result = toJS(&state, castedThis->globalObject(), wrapped.add(state, value, ec).get());
setDOMException(&state, ec);
return result;
auto key = state.uncheckedArgument(1);
JSValue result;
if (overwrite)
- result = toJS(&state, castedThis->globalObject(), impl.put(state, value, key, ec).get());
+ result = toJS(&state, castedThis->globalObject(), wrapped.put(state, value, key, ec).get());
else
- result = toJS(&state, castedThis->globalObject(), impl.add(state, value, key, ec).get());
+ result = toJS(&state, castedThis->globalObject(), wrapped.add(state, value, key, ec).get());
setDOMException(&state, ec);
return result;
}
ExceptionCode ec = 0;
- JSValue result = toJS(&state, globalObject(), impl().createIndex(context, name, keyPath, unique, multiEntry, ec).get());
+ JSValue result = toJS(&state, globalObject(), wrapped().createIndex(context, name, keyPath, unique, multiEntry, ec).get());
setDOMException(&state, ec);
return result;
}
#else
Vector<ContextMenuItem> items = menu.items();
#endif
- impl().showContextMenu(event, items);
+ wrapped().showContextMenu(event, items);
#else
UNUSED_PARAM(state);
#endif
bool JSLocation::getOwnPropertySlotDelegate(ExecState* exec, PropertyName propertyName, PropertySlot& slot)
{
- Frame* frame = impl().frame();
+ Frame* frame = wrapped().frame();
if (!frame) {
slot.setUndefined();
return true;
bool JSLocation::putDelegate(ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
{
- Frame* frame = impl().frame();
+ Frame* frame = wrapped().frame();
if (!frame)
return true;
{
JSLocation* thisObject = jsCast<JSLocation*>(cell);
// Only allow deleting by frames in the same origin.
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return false;
return Base::deleteProperty(thisObject, exec, propertyName);
}
{
JSLocation* thisObject = jsCast<JSLocation*>(cell);
// Only allow deleting by frames in the same origin.
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return false;
return Base::deletePropertyByIndex(thisObject, exec, propertyName);
}
{
JSLocation* thisObject = jsCast<JSLocation*>(object);
// Only allow the location object to enumerated by frames in the same origin.
- if (!shouldAllowAccessToFrame(exec, thisObject->impl().frame()))
+ if (!shouldAllowAccessToFrame(exec, thisObject->wrapped().frame()))
return;
Base::getOwnPropertyNames(thisObject, exec, propertyNames, mode);
}
JSValue JSLocation::toStringFunction(ExecState& state)
{
- Frame* frame = impl().frame();
+ Frame* frame = wrapped().frame();
if (!frame || !shouldAllowAccessToFrame(&state, frame))
return jsUndefined();
- return jsStringWithCache(&state, impl().toString());
+ return jsStringWithCache(&state, wrapped().toString());
}
bool JSLocationPrototype::putDelegate(ExecState* exec, PropertyName propertyName, JSValue, PutPropertySlot&)
JSValue JSMediaSourceStates::width(ExecState&) const
{
- if (!impl().hasVideoSource())
+ if (!wrapped().hasVideoSource())
return jsUndefined();
- return jsNumber(impl().width());
+ return jsNumber(wrapped().width());
}
JSValue JSMediaSourceStates::height(ExecState&) const
{
- if (!impl().hasVideoSource())
+ if (!wrapped().hasVideoSource())
return jsUndefined();
- return jsNumber(impl().height());
+ return jsNumber(wrapped().height());
}
JSValue JSMediaSourceStates::frameRate(ExecState&) const
{
- if (!impl().hasVideoSource())
+ if (!wrapped().hasVideoSource())
return jsUndefined();
- return jsNumber(impl().frameRate());
+ return jsNumber(wrapped().frameRate());
}
JSValue JSMediaSourceStates::aspectRatio(ExecState&) const
{
- if (!impl().hasVideoSource())
+ if (!wrapped().hasVideoSource())
return jsUndefined();
- return jsNumber(impl().aspectRatio());
+ return jsNumber(wrapped().aspectRatio());
}
JSValue JSMediaSourceStates::facingMode(ExecState& state) const
{
- if (!impl().hasVideoSource())
+ if (!wrapped().hasVideoSource())
return jsUndefined();
- const AtomicString& mode = impl().facingMode();
+ const AtomicString& mode = wrapped().facingMode();
if (mode.isEmpty())
return jsUndefined();
- return jsStringWithCache(&state, impl().facingMode());
+ return jsStringWithCache(&state, wrapped().facingMode());
}
JSValue JSMediaSourceStates::volume(ExecState&) const
{
- if (impl().hasVideoSource())
+ if (wrapped().hasVideoSource())
return jsUndefined();
- return jsNumber(impl().volume());
+ return jsNumber(wrapped().volume());
}
} // namespace WebCore
void JSMessageChannel::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- if (MessagePort* port = impl().port1())
+ if (MessagePort* port = wrapped().port1())
visitor.addOpaqueRoot(port);
- if (MessagePort* port = impl().port2())
+ if (MessagePort* port = wrapped().port2())
visitor.addOpaqueRoot(port);
}
ASSERT_NOT_REACHED();
}
- MessageEvent& event = impl();
+ MessageEvent& event = wrapped();
JSValue result;
switch (event.dataType()) {
case MessageEvent::DataTypeScriptValue: {
case MessageEvent::DataTypeSerializedScriptValue:
if (RefPtr<SerializedScriptValue> serializedValue = event.dataAsSerializedScriptValue()) {
- MessagePortArray ports = impl().ports();
+ MessagePortArray ports = wrapped().ports();
// FIXME: Why does this suppress exceptions?
result = serializedValue->deserialize(&state, globalObject(), &ports, NonThrowing);
} else
if (state.hadException())
return jsUndefined();
- MessageEvent& event = jsEvent->impl();
+ MessageEvent& event = jsEvent->wrapped();
event.initMessageEvent(typeArg, canBubbleArg, cancelableArg, dataArg, originArg, lastEventIdArg, sourceArg, WTF::move(messagePorts));
jsEvent->m_data.set(state.vm(), jsEvent, dataArg.jsValue());
return jsUndefined();
void JSMessagePort::visitAdditionalChildren(SlotVisitor& visitor)
{
// If we have a locally entangled port, we can directly mark it as reachable. Ports that are remotely entangled are marked in-use by markActiveObjectsForContext().
- if (MessagePort* port = impl().locallyEntangledPort())
+ if (MessagePort* port = wrapped().locallyEntangledPort())
visitor.addOpaqueRoot(port);
}
JSC::JSValue JSMessagePort::postMessage(JSC::ExecState& state)
{
- return handlePostMessage(state, &impl());
+ return handlePostMessage(state, &wrapped());
}
void fillMessagePortArray(JSC::ExecState& state, JSC::JSValue value, MessagePortArray& portArray, ArrayBufferArray& arrayBuffers)
JSValue JSMockContentFilterSettings::decisionPoint(ExecState&) const
{
- DecisionPoint decisionPoint = impl().decisionPoint();
+ DecisionPoint decisionPoint = wrapped().decisionPoint();
switch (decisionPoint) {
case DecisionPoint::AfterWillSendRequest:
case DecisionPoint::AfterRedirect:
case DecisionPoint::AfterAddData:
case DecisionPoint::AfterFinishedAddingData:
case DecisionPoint::Never:
- impl().setDecisionPoint(decisionPoint);
+ wrapped().setDecisionPoint(decisionPoint);
return;
}
JSValue JSMockContentFilterSettings::decision(ExecState&) const
{
- return toJSValue(impl().decision());
+ return toJSValue(wrapped().decision());
}
void JSMockContentFilterSettings::setDecision(ExecState& state, JSValue value)
if (state.hadException())
return;
- impl().setDecision(decision);
+ wrapped().setDecision(decision);
}
JSValue JSMockContentFilterSettings::unblockRequestDecision(ExecState&) const
{
- return toJSValue(impl().unblockRequestDecision());
+ return toJSValue(wrapped().unblockRequestDecision());
}
void JSMockContentFilterSettings::setUnblockRequestDecision(ExecState& state, JSValue value)
if (state.hadException())
return;
- impl().setUnblockRequestDecision(unblockRequestDecision);
+ wrapped().setUnblockRequestDecision(unblockRequestDecision);
}
}; // namespace WebCore
bool JSMutationObserverOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
- MutationObserver& observer = jsCast<JSMutationObserver*>(handle.slot()->asCell())->impl();
+ MutationObserver& observer = jsCast<JSMutationObserver*>(handle.slot()->asCell())->wrapped();
auto observedNodes = observer.getObservedNodes();
for (auto it = observedNodes.begin(), end = observedNodes.end(); it != end; ++it) {
if (visitor.containsOpaqueRoot(root(*it)))
bool JSNamedNodeMap::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().getNamedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().getNamedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
return jsUndefined();
}
- if (!impl().frame()) {
+ if (!wrapped().frame()) {
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
// We do not need to protect the context (i.e. document) here as UserMediaRequest is observing context destruction and will check validity before resolving/rejecting promise.
- Document* document = impl().frame()->document();
+ Document* document = wrapped().frame()->document();
RefPtr<NavigatorUserMediaSuccessCallback> successCallback = JSNavigatorUserMediaSuccessCallback::create(asObject(state.uncheckedArgument(1)), globalObject());
auto resolveCallback = [successCallback, document](const RefPtr<MediaStream>& stream) mutable {
bool JSNodeOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
JSNode* jsNode = jsCast<JSNode*>(handle.slot()->asCell());
- return isReachableFromDOM(&jsNode->impl(), visitor);
+ return isReachableFromDOM(&jsNode->wrapped(), visitor);
}
JSValue JSNode::insertBefore(ExecState& state)
{
ExceptionCode ec = 0;
- bool ok = impl().insertBefore(JSNode::toWrapped(state.argument(0)), JSNode::toWrapped(state.argument(1)), ec);
+ bool ok = wrapped().insertBefore(JSNode::toWrapped(state.argument(0)), JSNode::toWrapped(state.argument(1)), ec);
setDOMException(&state, ec);
if (ok)
return state.argument(0);
JSValue JSNode::replaceChild(ExecState& state)
{
ExceptionCode ec = 0;
- bool ok = impl().replaceChild(JSNode::toWrapped(state.argument(0)), JSNode::toWrapped(state.argument(1)), ec);
+ bool ok = wrapped().replaceChild(JSNode::toWrapped(state.argument(0)), JSNode::toWrapped(state.argument(1)), ec);
setDOMException(&state, ec);
if (ok)
return state.argument(1);
JSValue JSNode::removeChild(ExecState& state)
{
ExceptionCode ec = 0;
- bool ok = impl().removeChild(JSNode::toWrapped(state.argument(0)), ec);
+ bool ok = wrapped().removeChild(JSNode::toWrapped(state.argument(0)), ec);
setDOMException(&state, ec);
if (ok)
return state.argument(0);
JSValue JSNode::appendChild(ExecState& state)
{
ExceptionCode ec = 0;
- bool ok = impl().appendChild(JSNode::toWrapped(state.argument(0)), ec);
+ bool ok = wrapped().appendChild(JSNode::toWrapped(state.argument(0)), ec);
setDOMException(&state, ec);
if (ok)
return state.argument(0);
void JSNode::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(impl()));
+ visitor.addOpaqueRoot(root(wrapped()));
}
static ALWAYS_INLINE JSValue createWrapperInline(ExecState* exec, JSDOMGlobalObject* globalObject, Node* node)
void JSNodeIterator::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- if (NodeFilter* filter = impl().filter())
+ if (NodeFilter* filter = wrapped().filter())
visitor.addOpaqueRoot(filter);
}
JSNodeList* jsNodeList = jsCast<JSNodeList*>(handle.slot()->asCell());
if (!jsNodeList->hasCustomProperties())
return false;
- if (jsNodeList->impl().isLiveNodeList())
- return visitor.containsOpaqueRoot(root(static_cast<LiveNodeList&>(jsNodeList->impl()).ownerNode()));
- if (jsNodeList->impl().isChildNodeList())
- return visitor.containsOpaqueRoot(root(static_cast<ChildNodeList&>(jsNodeList->impl()).ownerNode()));
- if (jsNodeList->impl().isEmptyNodeList())
- return visitor.containsOpaqueRoot(root(static_cast<EmptyNodeList&>(jsNodeList->impl()).ownerNode()));
+ if (jsNodeList->wrapped().isLiveNodeList())
+ return visitor.containsOpaqueRoot(root(static_cast<LiveNodeList&>(jsNodeList->wrapped()).ownerNode()));
+ if (jsNodeList->wrapped().isChildNodeList())
+ return visitor.containsOpaqueRoot(root(static_cast<ChildNodeList&>(jsNodeList->wrapped()).ownerNode()));
+ if (jsNodeList->wrapped().isEmptyNodeList())
+ return visitor.containsOpaqueRoot(root(static_cast<EmptyNodeList&>(jsNodeList->wrapped()).ownerNode()));
return false;
}
for (size_t i = 0; i < argumentCount; ++i) {
JSValue value = state.uncheckedArgument(i);
if (auto* node = jsDynamicCast<JSNode*>(value))
- result.uncheckedAppend(&node->impl());
+ result.uncheckedAppend(&node->wrapped());
else {
String string = value.toWTFString(&state);
if (state.hadException())
void JSOscillatorNode::setType(ExecState& state, JSValue value)
{
- OscillatorNode& imp = impl();
+ OscillatorNode& imp = wrapped();
#if ENABLE(LEGACY_WEB_AUDIO)
if (value.isNumber()) {
void JSPannerNode::setPanningModel(ExecState& state, JSValue value)
{
- PannerNode& imp = impl();
+ PannerNode& imp = wrapped();
#if ENABLE(LEGACY_WEB_AUDIO)
if (value.isNumber()) {
void JSPannerNode::setDistanceModel(ExecState& state, JSValue value)
{
- PannerNode& imp = impl();
+ PannerNode& imp = wrapped();
#if ENABLE(LEGACY_WEB_AUDIO)
if (value.isNumber()) {
static JSObject* pluginScriptObjectFromPluginViewBase(JSHTMLElement* jsHTMLElement)
{
- HTMLElement& element = jsHTMLElement->impl();
+ HTMLElement& element = jsHTMLElement->wrapped();
if (!is<HTMLPlugInElement>(element))
return nullptr;
JSObject* pluginScriptObject(ExecState* exec, JSHTMLElement* jsHTMLElement)
{
- HTMLElement& element = jsHTMLElement->impl();
+ HTMLElement& element = jsHTMLElement->wrapped();
if (!is<HTMLPlugInElement>(element))
return nullptr;
return CallTypeHost;
}
- Instance* instance = pluginInstance(element->impl());
+ Instance* instance = pluginInstance(element->wrapped());
if (!instance || !instance->supportsInvokeDefaultMethod())
return CallTypeNone;
callData.native.function = callPlugin;
ASSERT_NOT_REACHED();
}
- PopStateEvent& event = impl();
+ PopStateEvent& event = wrapped();
if (!event.state().hasNoValue()) {
// We need to make sure a PopStateEvent does not leak objects in its state property across isolated DOM worlds.
bool JSRTCStatsResponse::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
{
- auto item = impl().namedItem(propertyNameToAtomicString(propertyName));
+ auto item = wrapped().namedItem(propertyNameToAtomicString(propertyName));
if (!item)
return false;
setDOMException(&state, TYPE_MISMATCH_ERR);
return jsUndefined();
}
- if (index < 0 || (unsigned)index >= impl().length()) {
+ if (index < 0 || (unsigned)index >= wrapped().length()) {
setDOMException(&state, INDEX_SIZE_ERR);
return jsUndefined();
}
JSObject* object = constructEmptyObject(&state);
- unsigned numColumns = impl().columnNames().size();
+ unsigned numColumns = wrapped().columnNames().size();
unsigned valuesIndex = index * numColumns;
for (unsigned i = 0; i < numColumns; i++) {
- const SQLValue& value = impl().values()[valuesIndex + i];
+ const SQLValue& value = wrapped().values()[valuesIndex + i];
JSValue jsValue;
switch (value.type()) {
ASSERT_NOT_REACHED();
}
- object->putDirect(state.vm(), Identifier::fromString(&state, impl().columnNames()[i]), jsValue, DontDelete | ReadOnly);
+ object->putDirect(state.vm(), Identifier::fromString(&state, wrapped().columnNames()[i]), jsValue, DontDelete | ReadOnly);
}
return object;
}
ExceptionCode ec = 0;
- impl().executeSQL(sqlStatement, sqlValues, callback.release(), errorCallback.release(), ec);
+ wrapped().executeSQL(sqlStatement, sqlValues, callback.release(), errorCallback.release(), ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSSVGLength::value(ExecState& state) const
{
- SVGLength& podImp = impl().propertyReference();
+ SVGLength& podImp = wrapped().propertyReference();
ExceptionCode ec = 0;
- SVGLengthContext lengthContext(impl().contextElement());
+ SVGLengthContext lengthContext(wrapped().contextElement());
float value = podImp.value(lengthContext, ec);
if (ec) {
setDOMException(&state, ec);
void JSSVGLength::setValue(ExecState& state, JSValue value)
{
- if (impl().isReadOnly()) {
+ if (wrapped().isReadOnly()) {
setDOMException(&state, NO_MODIFICATION_ALLOWED_ERR);
return;
}
return;
}
- SVGLength& podImp = impl().propertyReference();
+ SVGLength& podImp = wrapped().propertyReference();
ExceptionCode ec = 0;
- SVGLengthContext lengthContext(impl().contextElement());
+ SVGLengthContext lengthContext(wrapped().contextElement());
podImp.setValue(value.toFloat(&state), lengthContext, ec);
if (ec) {
setDOMException(&state, ec);
return;
}
- impl().commitChange();
+ wrapped().commitChange();
}
JSValue JSSVGLength::convertToSpecifiedUnits(ExecState& state)
{
- if (impl().isReadOnly()) {
+ if (wrapped().isReadOnly()) {
setDOMException(&state, NO_MODIFICATION_ALLOWED_ERR);
return jsUndefined();
}
- SVGLength& podImp = impl().propertyReference();
+ SVGLength& podImp = wrapped().propertyReference();
if (state.argumentCount() < 1)
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
return jsUndefined();
ExceptionCode ec = 0;
- SVGLengthContext lengthContext(impl().contextElement());
+ SVGLengthContext lengthContext(wrapped().contextElement());
podImp.convertToSpecifiedUnits(unitType, lengthContext, ec);
if (ec) {
setDOMException(&state, ec);
return jsUndefined();
}
- impl().commitChange();
+ wrapped().commitChange();
return jsUndefined();
}
return false;
ExceptionCode ec = 0;
- String item = impl().getItem(propertyNameToString(propertyName), ec);
+ String item = wrapped().getItem(propertyNameToString(propertyName), ec);
setDOMException(exec, ec);
if (item.isNull())
return Base::deleteProperty(thisObject, exec, propertyName);
ExceptionCode ec = 0;
- thisObject->impl().removeItem(propertyNameToString(propertyName), ec);
+ thisObject->wrapped().removeItem(propertyNameToString(propertyName), ec);
setDOMException(exec, ec);
return true;
}
{
JSStorage* thisObject = jsCast<JSStorage*>(object);
ExceptionCode ec = 0;
- unsigned length = thisObject->impl().length(ec);
+ unsigned length = thisObject->wrapped().length(ec);
setDOMException(exec, ec);
if (exec->hadException())
return;
for (unsigned i = 0; i < length; ++i) {
- propertyNames.add(Identifier::fromString(exec, thisObject->impl().key(i, ec)));
+ propertyNames.add(Identifier::fromString(exec, thisObject->wrapped().key(i, ec)));
setDOMException(exec, ec);
if (exec->hadException())
return;
return true;
ExceptionCode ec = 0;
- impl().setItem(propertyNameToString(propertyName), stringValue, ec);
+ wrapped().setItem(propertyNameToString(propertyName), stringValue, ec);
setDOMException(exec, ec);
return true;
void JSStyleSheet::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, StyleSheet* styleSheet)
if (propertyName.isSymbol())
return false;
- auto* item = impl().getNamedItem(propertyNameToString(propertyName));
+ auto* item = wrapped().getNamedItem(propertyNameToString(propertyName));
if (!item)
return false;
return throwTypeError(&state);
if (!key->allows(CryptoKeyUsageEncrypt)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'encrypt'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'encrypt'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
return throwTypeError(&state);
if (!key->allows(CryptoKeyUsageDecrypt)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'decrypt'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'decrypt'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
return throwTypeError(&state);
if (!key->allows(CryptoKeyUsageSign)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'sign'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'sign'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
return throwTypeError(&state);
if (!key->allows(CryptoKeyUsageVerify)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'verify'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'verify'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
return throwTypeError(&state);
if (!wrappingKey->allows(CryptoKeyUsageWrapKey)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'wrapKey'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'wrapKey'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
return throwTypeError(&state);
if (!unwrappingKey->allows(CryptoKeyUsageUnwrapKey)) {
- impl().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'unwrapKey'"));
+ wrapped().document()->addConsoleMessage(MessageSource::JS, MessageLevel::Error, ASCIILiteral("Key usages do not include 'unwrapKey'"));
setDOMException(&state, NOT_SUPPORTED_ERR);
return jsUndefined();
}
bool JSTextTrackCueOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
JSTextTrackCue* jsTextTrackCue = jsCast<JSTextTrackCue*>(handle.slot()->asCell());
- TextTrackCue& textTrackCue = jsTextTrackCue->impl();
+ TextTrackCue& textTrackCue = jsTextTrackCue->wrapped();
// If the cue is firing event listeners, its wrapper is reachable because
// the wrapper is responsible for marking those event listeners.
void JSTextTrackCue::visitAdditionalChildren(SlotVisitor& visitor)
{
- if (TextTrack* textTrack = impl().track())
+ if (TextTrack* textTrack = wrapped().track())
visitor.addOpaqueRoot(root(textTrack));
}
void JSTextTrack::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
void JSTextTrack::setKind(ExecState& state, JSValue value)
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setKind(string);
+ wrapped().setKind(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setLanguage(string);
+ wrapped().setLanguage(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
void JSTextTrackList::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(impl().element()));
+ visitor.addOpaqueRoot(root(wrapped().element()));
}
} // namespace WebCore
JSObject* object = asObject(value);
if (object->inherits(JSTextTrack::info()))
- return &jsCast<JSTextTrack*>(object)->impl();
+ return &jsCast<JSTextTrack*>(object)->wrapped();
if (object->inherits(JSAudioTrack::info()))
- return &jsCast<JSAudioTrack*>(object)->impl();
+ return &jsCast<JSAudioTrack*>(object)->wrapped();
if (object->inherits(JSVideoTrack::info()))
- return &jsCast<JSVideoTrack*>(object)->impl();
+ return &jsCast<JSVideoTrack*>(object)->wrapped();
return 0;
}
JSValue JSTrackEvent::track(ExecState& state) const
{
- TrackBase* track = impl().track();
+ TrackBase* track = wrapped().track();
if (!track)
return jsNull();
void JSTreeWalker::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- if (NodeFilter* filter = impl().filter())
+ if (NodeFilter* filter = wrapped().filter())
visitor.addOpaqueRoot(filter);
}
bool JSUserMessageHandlersNamespace::getOwnPropertySlotDelegate(ExecState* exec, PropertyName propertyName, PropertySlot& slot)
{
- if (UserMessageHandler* handler = impl().handler(propertyNameToAtomicString(propertyName), globalObject()->world())) {
+ if (UserMessageHandler* handler = wrapped().handler(propertyNameToAtomicString(propertyName), globalObject()->world())) {
slot.setValue(this, ReadOnly | DontDelete | DontEnum, toJS(exec, globalObject(), handler));
return true;
}
void JSVideoTrack::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(&impl()));
+ visitor.addOpaqueRoot(root(&wrapped()));
}
void JSVideoTrack::setKind(ExecState& state, JSValue value)
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setKind(string);
+ wrapped().setKind(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
auto& string = value.toString(&state)->value(&state);
if (state.hadException())
return;
- impl().setLanguage(string);
+ wrapped().setLanguage(string);
#else
UNUSED_PARAM(state);
UNUSED_PARAM(value);
void JSVideoTrackList::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(root(impl().element()));
+ visitor.addOpaqueRoot(root(wrapped().element()));
}
} // namespace WebCore
void JSWebGL2RenderingContext::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(&impl());
+ visitor.addOpaqueRoot(&wrapped());
}
JSValue JSWebGL2RenderingContext::getInternalformatParameter(ExecState* exec)
if (exec->argumentCount() != 2)
return exec->vm().throwException(exec, createNotEnoughArgumentsError(exec));
- WebGL2RenderingContext& context = impl();
+ WebGL2RenderingContext& context = wrapped();
unsigned pname = exec->uncheckedArgument(0).toInt32(exec);
if (exec->hadException())
return jsUndefined();
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = obj->impl();
+ WebGLRenderingContextBase& context = obj->wrapped();
unsigned target = state.uncheckedArgument(0).toInt32(&state);
if (state.hadException())
return jsUndefined();
void JSWebGLRenderingContextBase::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(&impl());
+ visitor.addOpaqueRoot(&wrapped());
}
JSValue JSWebGLRenderingContextBase::getAttachedShaders(ExecState& state)
if (state.argumentCount() < 1)
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
WebGLProgram* program = JSWebGLProgram::toWrapped(state.uncheckedArgument(0));
if (!program && !state.uncheckedArgument(0).isUndefinedOrNull())
return throwTypeError(&state);
if (state.argumentCount() < 1)
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
const String name = state.uncheckedArgument(0).toString(&state)->value(&state);
if (state.hadException())
return jsUndefined();
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
unsigned target = state.uncheckedArgument(0).toInt32(&state);
if (state.hadException())
return jsUndefined();
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
unsigned pname = state.uncheckedArgument(0).toInt32(&state);
if (state.hadException())
return jsUndefined();
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
WebGLProgram* program = JSWebGLProgram::toWrapped(state.uncheckedArgument(0));
if (!program && !state.uncheckedArgument(0).isUndefinedOrNull())
return throwTypeError(&state);
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
if (!state.uncheckedArgument(0).isUndefinedOrNull() && !state.uncheckedArgument(0).inherits(JSWebGLShader::info()))
return throwTypeError(&state);
WebGLShader* shader = JSWebGLShader::toWrapped(state.uncheckedArgument(0));
JSValue JSWebGLRenderingContextBase::getSupportedExtensions(ExecState& state)
{
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
if (context.isContextLost())
return jsNull();
Vector<String> value = context.getSupportedExtensions();
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
ExceptionCode ec = 0;
- WebGLRenderingContextBase& context = impl();
+ WebGLRenderingContextBase& context = wrapped();
WebGLProgram* program = JSWebGLProgram::toWrapped(state.uncheckedArgument(0));
if (!program && !state.uncheckedArgument(0).isUndefinedOrNull())
return throwTypeError(&state);
JSC::JSValue JSWebGLRenderingContextBase::uniform1fv(JSC::ExecState& state)
{
- return dataFunctionf(f_uniform1v, state, impl());
+ return dataFunctionf(f_uniform1v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform1iv(JSC::ExecState& state)
{
- return dataFunctioni(f_uniform1v, state, impl());
+ return dataFunctioni(f_uniform1v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform2fv(JSC::ExecState& state)
{
- return dataFunctionf(f_uniform2v, state, impl());
+ return dataFunctionf(f_uniform2v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform2iv(JSC::ExecState& state)
{
- return dataFunctioni(f_uniform2v, state, impl());
+ return dataFunctioni(f_uniform2v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform3fv(JSC::ExecState& state)
{
- return dataFunctionf(f_uniform3v, state, impl());
+ return dataFunctionf(f_uniform3v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform3iv(JSC::ExecState& state)
{
- return dataFunctioni(f_uniform3v, state, impl());
+ return dataFunctioni(f_uniform3v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform4fv(JSC::ExecState& state)
{
- return dataFunctionf(f_uniform4v, state, impl());
+ return dataFunctionf(f_uniform4v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniform4iv(JSC::ExecState& state)
{
- return dataFunctioni(f_uniform4v, state, impl());
+ return dataFunctioni(f_uniform4v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniformMatrix2fv(JSC::ExecState& state)
{
- return dataFunctionMatrix(f_uniformMatrix2fv, state, impl());
+ return dataFunctionMatrix(f_uniformMatrix2fv, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniformMatrix3fv(JSC::ExecState& state)
{
- return dataFunctionMatrix(f_uniformMatrix3fv, state, impl());
+ return dataFunctionMatrix(f_uniformMatrix3fv, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::uniformMatrix4fv(JSC::ExecState& state)
{
- return dataFunctionMatrix(f_uniformMatrix4fv, state, impl());
+ return dataFunctionMatrix(f_uniformMatrix4fv, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::vertexAttrib1fv(JSC::ExecState& state)
{
- return dataFunctionf(f_vertexAttrib1v, state, impl());
+ return dataFunctionf(f_vertexAttrib1v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::vertexAttrib2fv(JSC::ExecState& state)
{
- return dataFunctionf(f_vertexAttrib2v, state, impl());
+ return dataFunctionf(f_vertexAttrib2v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::vertexAttrib3fv(JSC::ExecState& state)
{
- return dataFunctionf(f_vertexAttrib3v, state, impl());
+ return dataFunctionf(f_vertexAttrib3v, state, wrapped());
}
JSC::JSValue JSWebGLRenderingContextBase::vertexAttrib4fv(JSC::ExecState& state)
{
- return dataFunctionf(f_vertexAttrib4v, state, impl());
+ return dataFunctionf(f_vertexAttrib4v, state, wrapped());
}
} // namespace WebCore
void JSWebGLRenderingContext::visitAdditionalChildren(SlotVisitor& visitor)
{
- visitor.addOpaqueRoot(&impl());
+ visitor.addOpaqueRoot(&wrapped());
}
} // namespace WebCore
JSC::JSValue JSWorker::postMessage(JSC::ExecState& state)
{
- return handlePostMessage(state, &impl());
+ return handlePostMessage(state, &wrapped());
}
EncodedJSValue JSC_HOST_CALL constructJSWorker(ExecState* exec)
return JSValue::encode(JSValue());
// See section 4.8.2 step 14 of WebWorkers for why this is the lexicalGlobalObject.
- DOMWindow& window = asJSDOMWindow(exec->lexicalGlobalObject())->impl();
+ DOMWindow& window = asJSDOMWindow(exec->lexicalGlobalObject())->wrapped();
ExceptionCode ec = 0;
ASSERT(window.document());
JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerGlobalScope> impl)
: JSDOMGlobalObject(vm, structure, &normalWorld(vm), &s_globalObjectMethodTable)
- , m_impl(impl)
+ , m_wrapped(impl)
{
}
ScriptExecutionContext* JSWorkerGlobalScopeBase::scriptExecutionContext() const
{
- return m_impl.get();
+ return m_wrapped.get();
}
bool JSWorkerGlobalScopeBase::allowsAccessFrom(const JSGlobalObject* object, ExecState* exec)
DECLARE_INFO;
- WorkerGlobalScope& impl() const { return *m_impl; }
+ WorkerGlobalScope& wrapped() const { return *m_wrapped; }
ScriptExecutionContext* scriptExecutionContext() const;
static JSC::Structure* createStructure(JSC::VM& vm, JSC::JSGlobalObject* globalObject, JSC::JSValue prototype)
void finishCreation(JSC::VM&);
private:
- RefPtr<WorkerGlobalScope> m_impl;
+ RefPtr<WorkerGlobalScope> m_wrapped;
};
// Returns a JSWorkerGlobalScope or jsNull()
void JSWorkerGlobalScope::visitAdditionalChildren(SlotVisitor& visitor)
{
- if (WorkerLocation* location = impl().optionalLocation())
+ if (WorkerLocation* location = wrapped().optionalLocation())
visitor.addOpaqueRoot(location);
- if (WorkerNavigator* navigator = impl().optionalNavigator())
+ if (WorkerNavigator* navigator = wrapped().optionalNavigator())
visitor.addOpaqueRoot(navigator);
}
}
ExceptionCode ec = 0;
- impl().importScripts(urls, ec);
+ wrapped().importScripts(urls, ec);
setDOMException(&state, ec);
return jsUndefined();
}
JSValue JSWorkerGlobalScope::setTimeout(ExecState& state)
{
- std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), impl().contentSecurityPolicy());
+ std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), wrapped().contentSecurityPolicy());
if (state.hadException())
return jsUndefined();
if (!action)
return jsNumber(0);
int delay = state.argument(1).toInt32(&state);
- return jsNumber(impl().setTimeout(WTF::move(action), delay));
+ return jsNumber(wrapped().setTimeout(WTF::move(action), delay));
}
JSValue JSWorkerGlobalScope::setInterval(ExecState& state)
{
- std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), impl().contentSecurityPolicy());
+ std::unique_ptr<ScheduledAction> action = ScheduledAction::create(&state, globalObject()->world(), wrapped().contentSecurityPolicy());
if (state.hadException())
return jsUndefined();
if (!action)
return jsNumber(0);
int delay = state.argument(1).toInt32(&state);
- return jsNumber(impl().setInterval(WTF::move(action), delay));
+ return jsNumber(wrapped().setInterval(WTF::move(action), delay));
}
} // namespace WebCore
void JSXMLHttpRequest::visitAdditionalChildren(SlotVisitor& visitor)
{
- if (XMLHttpRequestUpload* upload = impl().optionalUpload())
+ if (XMLHttpRequestUpload* upload = wrapped().optionalUpload())
visitor.addOpaqueRoot(upload);
- if (Document* responseDocument = impl().optionalResponseXML())
+ if (Document* responseDocument = wrapped().optionalResponseXML())
visitor.addOpaqueRoot(responseDocument);
- if (ArrayBuffer* responseArrayBuffer = impl().optionalResponseArrayBuffer())
+ if (ArrayBuffer* responseArrayBuffer = wrapped().optionalResponseArrayBuffer())
visitor.addOpaqueRoot(responseArrayBuffer);
- if (Blob* responseBlob = impl().optionalResponseBlob())
+ if (Blob* responseBlob = wrapped().optionalResponseBlob())
visitor.addOpaqueRoot(responseBlob);
}
if (state.argumentCount() < 2)
return state.vm().throwException(&state, createNotEnoughArgumentsError(&state));
- const URL& url = impl().scriptExecutionContext()->completeURL(state.uncheckedArgument(1).toString(&state)->value(&state));
+ const URL& url = wrapped().scriptExecutionContext()->completeURL(state.uncheckedArgument(1).toString(&state)->value(&state));
String method = state.uncheckedArgument(0).toString(&state)->value(&state);
ExceptionCode ec = 0;
if (!state.argument(4).isUndefined()) {
String password = valueToStringWithNullCheck(&state, state.uncheckedArgument(4));
- impl().open(method, url, async, user, password, ec);
+ wrapped().open(method, url, async, user, password, ec);
} else
- impl().open(method, url, async, user, ec);
+ wrapped().open(method, url, async, user, ec);
} else
- impl().open(method, url, async, ec);
+ wrapped().open(method, url, async, ec);
} else
- impl().open(method, url, ec);
+ wrapped().open(method, url, ec);
setDOMException(&state, ec);
return jsUndefined();
JSValue JSXMLHttpRequest::send(ExecState& state)
{
- InspectorInstrumentation::willSendXMLHttpRequest(impl().scriptExecutionContext(), impl().url());
+ InspectorInstrumentation::willSendXMLHttpRequest(wrapped().scriptExecutionContext(), wrapped().url());
ExceptionCode ec = 0;
JSValue val = state.argument(0);
if (val.isUndefinedOrNull())
- impl().send(ec);
+ wrapped().send(ec);
else if (val.inherits(JSDocument::info()))
- impl().send(JSDocument::toWrapped(val), ec);
+ wrapped().send(JSDocument::toWrapped(val), ec);
else if (val.inherits(JSBlob::info()))
- impl().send(JSBlob::toWrapped(val), ec);
+ wrapped().send(JSBlob::toWrapped(val), ec);
else if (val.inherits(JSDOMFormData::info()))
- impl().send(JSDOMFormData::toWrapped(val), ec);
+ wrapped().send(JSDOMFormData::toWrapped(val), ec);
else if (val.inherits(JSArrayBuffer::info()))
- impl().send(toArrayBuffer(val), ec);
+ wrapped().send(toArrayBuffer(val), ec);
else if (val.inherits(JSArrayBufferView::info())) {
RefPtr<ArrayBufferView> view = toArrayBufferView(val);
- impl().send(view.get(), ec);
+ wrapped().send(view.get(), ec);
} else
- impl().send(val.toString(&state)->value(&state), ec);
+ wrapped().send(val.toString(&state)->value(&state), ec);
SendFunctor functor;
state.iterate(functor);
- impl().setLastSendLineAndColumnNumber(functor.line(), functor.column());
- impl().setLastSendURL(functor.url());
+ wrapped().setLastSendLineAndColumnNumber(functor.line(), functor.column());
+ wrapped().setLastSendURL(functor.url());
setDOMException(&state, ec);
return jsUndefined();
}
JSValue JSXMLHttpRequest::responseText(ExecState& state) const
{
ExceptionCode ec = 0;
- String text = impl().responseText(ec);
+ String text = wrapped().responseText(ec);
if (ec) {
setDOMException(&state, ec);
return jsUndefined();
JSValue JSXMLHttpRequest::response(ExecState& state) const
{
// FIXME: Use CachedAttribute for other types than JSON as well.
- if (m_response && impl().responseCacheIsValid())
+ if (m_response && wrapped().responseCacheIsValid())
return m_response.get();
- if (!impl().doneWithoutErrors() && impl().responseTypeCode() > XMLHttpRequest::ResponseTypeText)
+ if (!wrapped().doneWithoutErrors() && wrapped().responseTypeCode() > XMLHttpRequest::ResponseTypeText)
return jsNull();
- switch (impl().responseTypeCode()) {
+ switch (wrapped().responseTypeCode()) {
case XMLHttpRequest::ResponseTypeDefault:
case XMLHttpRequest::ResponseTypeText:
return responseText(state);
case XMLHttpRequest::ResponseTypeJSON:
{
- JSValue value = JSONParse(&state, impl().responseTextIgnoringResponseType());
+ JSValue value = JSONParse(&state, wrapped().responseTextIgnoringResponseType());
if (!value)
value = jsNull();
m_response.set(state.vm(), this, value);
- impl().didCacheResponseJSON();
+ wrapped().didCacheResponseJSON();
return value;
}
case XMLHttpRequest::ResponseTypeDocument:
{
ExceptionCode ec = 0;
- Document* document = impl().responseXML(ec);
+ Document* document = wrapped().responseXML(ec);
if (ec) {
setDOMException(&state, ec);
return jsUndefined();
}
case XMLHttpRequest::ResponseTypeBlob:
- return toJS(&state, globalObject(), impl().responseBlob());
+ return toJS(&state, globalObject(), wrapped().responseBlob());
case XMLHttpRequest::ResponseTypeArrayBuffer:
- return toJS(&state, globalObject(), impl().responseArrayBuffer());
+ return toJS(&state, globalObject(), wrapped().responseArrayBuffer());
}
return jsUndefined();
void JSXPathResult::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- auto& value = impl().value();
+ auto& value = wrapped().value();
if (value.isNodeSet()) {
for (auto& node : value.toNodeSet())
visitor.addOpaqueRoot(root(node.get()));
String namespaceURI = state.uncheckedArgument(0).toString(&state)->value(&state);
String localName = state.uncheckedArgument(1).toString(&state)->value(&state);
String value = state.uncheckedArgument(2).toString(&state)->value(&state);
- impl().setParameter(namespaceURI, localName, value);
+ wrapped().setParameter(namespaceURI, localName, value);
return jsUndefined();
}
return jsUndefined();
String namespaceURI = state.uncheckedArgument(0).toString(&state)->value(&state);
String localName = state.uncheckedArgument(1).toString(&state)->value(&state);
- String value = impl().getParameter(namespaceURI, localName);
+ String value = wrapped().getParameter(namespaceURI, localName);
return jsStringOrUndefined(&state, value);
}
return jsUndefined();
String namespaceURI = state.uncheckedArgument(0).toString(&state)->value(&state);
String localName = state.uncheckedArgument(1).toString(&state)->value(&state);
- impl().removeParameter(namespaceURI, localName);
+ wrapped().removeParameter(namespaceURI, localName);
return jsUndefined();
}
if (!window)
return;
- RefPtr<Frame> frame = window->impl().frame();
+ RefPtr<Frame> frame = window->wrapped().frame();
if (!frame || !frame->script().canExecuteScripts(AboutToExecuteScript))
return;
windowShell->setWindow(window->vm(), window);
else {
DOMWindow* domWindow = frame.document()->domWindow();
- if (&windowShell->window()->impl() == domWindow)
+ if (&windowShell->window()->wrapped() == domWindow)
continue;
windowShell->setWindow(domWindow);
for (size_t i = 0; i < windowShells.size(); ++i) {
JSDOMWindowShell* windowShell = windowShells[i].get();
- if (&windowShell->window()->impl() == newDOMWindow)
+ if (&windowShell->window()->wrapped() == newDOMWindow)
continue;
// Clear the debugger and console from the current window before setting the new window.
{
for (ShellMap::iterator iter = m_windowShells.begin(); iter != m_windowShells.end(); ++iter) {
JSC::ExecState* exec = iter->value->window()->globalExec();
- SecurityOrigin* origin = iter->value->window()->impl().document()->securityOrigin();
+ SecurityOrigin* origin = iter->value->window()->wrapped().document()->securityOrigin();
result.append(std::pair<JSC::ExecState*, SecurityOrigin*>(exec, origin));
}
}
JSC::JSGlobalObject* globalObject = scriptState->lexicalGlobalObject();
if (!globalObject->inherits(JSDOMWindowBase::info()))
return nullptr;
- return &JSC::jsCast<JSDOMWindowBase*>(globalObject)->impl();
+ return &JSC::jsCast<JSDOMWindowBase*>(globalObject)->wrapped();
}
Frame* frameFromExecState(JSC::ExecState* scriptState)
if (!object->inherits(JSNode::info()))
return nil;
- WebCore::Node& node = jsCast<JSNode*>(object)->impl();
+ WebCore::Node& node = jsCast<JSNode*>(object)->wrapped();
return kit(&node);
}
{
#define WRAP(className) \
if (object->inherits(WebCore::JS##className::info())) \
- return kit(&static_cast<WebCore::JS##className*>(object)->impl());
+ return kit(&static_cast<WebCore::JS##className*>(object)->wrapped());
WRAP(CSSRule)
WRAP(CSSRuleList)
#undef WRAP
if (object->inherits(WebCore::JSDOMWindowShell::info()))
- return kit(&static_cast<WebCore::JSDOMWindowShell*>(object)->impl());
+ return kit(&static_cast<WebCore::JSDOMWindowShell*>(object)->wrapped());
if (object->inherits(WebCore::JSDOMImplementation::info()))
- return kit(&static_cast<WebCore::JSDOMImplementation*>(object)->impl());
+ return kit(&static_cast<WebCore::JSDOMImplementation*>(object)->wrapped());
return nil;
}
// JSDOMWindowBase* isn't the right object to represent the currently executing
// JavaScript. Instead, we should use ExecState, like we do elsewhere.
JSDOMWindowBase* target = jsCast<JSDOMWindowBase*>(root->globalObject());
- return BindingSecurity::shouldAllowAccessToDOMWindow(_private->originRootObject->globalObject()->globalExec(), target->impl());
+ return BindingSecurity::shouldAllowAccessToDOMWindow(_private->originRootObject->globalObject()->globalExec(), target->wrapped());
}
- (JSGlobalContextRef)_globalContextRef
if (object->inherits(JSHTMLElement::info())) {
// Plugin elements cache the instance internally.
- if (ObjcInstance* instance = static_cast<ObjcInstance*>(pluginInstance(jsCast<JSHTMLElement*>(object)->impl())))
+ if (ObjcInstance* instance = static_cast<ObjcInstance*>(pluginInstance(jsCast<JSHTMLElement*>(object)->wrapped())))
return instance->getObject();
} else if (object->inherits(ObjCRuntimeObject::info())) {
ObjCRuntimeObject* runtimeObject = static_cast<ObjCRuntimeObject*>(object);
if ($indexedGetterFunction->signature->type eq "DOMString") {
push(@getOwnPropertySlotImpl, " if (optionalIndex) {\n");
} else {
- push(@getOwnPropertySlotImpl, " if (optionalIndex && optionalIndex.value() < thisObject->impl().length()) {\n");
+ push(@getOwnPropertySlotImpl, " if (optionalIndex && optionalIndex.value() < thisObject->wrapped().length()) {\n");
}
push(@getOwnPropertySlotImpl, " unsigned index = optionalIndex.value();\n");
# Assume that if there's a setter, the index will be writable
if (NeedsImplementationClass($interface)) {
if ($hasParent) {
- push(@headerContent, " $interfaceName& impl() const\n");
+ push(@headerContent, " $interfaceName& wrapped() const\n");
push(@headerContent, " {\n");
- push(@headerContent, " return static_cast<$interfaceName&>(Base::impl());\n");
+ push(@headerContent, " return static_cast<$interfaceName&>(Base::wrapped());\n");
push(@headerContent, " }\n");
}
}
{
my $indexedGetterFunction = shift;
if ($indexedGetterFunction->signature->type eq "DOMString") {
- return "jsStringOrUndefined(state, thisObject->impl().item(index))";
+ return "jsStringOrUndefined(state, thisObject->wrapped().item(index))";
}
- return "toJS(state, thisObject->globalObject(), thisObject->impl().item(index))";
+ return "toJS(state, thisObject->globalObject(), thisObject->wrapped().item(index))";
}
sub GenerateImplementation
if ($indexedGetterFunction->signature->type eq "DOMString") {
push(@implContent, " if (index <= MAX_ARRAY_INDEX) {\n");
} else {
- push(@implContent, " if (index < thisObject->impl().length()) {\n");
+ push(@implContent, " if (index < thisObject->wrapped().length()) {\n");
}
# Assume that if there's a setter, the index will be writable
if ($interface->extendedAttributes->{"CustomIndexedSetter"}) {
AddToImplIncludes("Frame.h");
AddToImplIncludes("Settings.h");
my $enable_function = ToMethodName($attribute->signature->extendedAttributes->{"EnabledBySetting"}) . "Enabled";
- push(@implContent, " if (!castedThis->impl().frame())\n");
+ push(@implContent, " if (!castedThis->wrapped().frame())\n");
push(@implContent, " return JSValue::encode(jsUndefined());\n");
- push(@implContent, " Settings& settings = castedThis->impl().frame()->settings();\n");
+ push(@implContent, " Settings& settings = castedThis->wrapped().frame()->settings();\n");
push(@implContent, " if (!settings.$enable_function())\n");
push(@implContent, " return JSValue::encode(jsUndefined());\n");
}
if ($interface->extendedAttributes->{"CheckSecurity"} &&
!$attribute->signature->extendedAttributes->{"DoNotCheckSecurity"} &&
!$attribute->signature->extendedAttributes->{"DoNotCheckSecurityOnGetter"}) {
- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))\n");
push(@implContent, " return JSValue::encode(jsUndefined());\n");
}
my $exceptionCode = $getterExceptions ? "ec" : "0";
push(@implContent, " static NeverDestroyed<const AtomicString> bindingName(\"$interfaceName.$name\", AtomicString::ConstructFromLiteral);\n");
push(@implContent, " if (cursor.isCapturing()) {\n");
- push(@implContent, " $memoizedType memoizedResult = castedThis->impl().$implGetterFunctionName(" . join(", ", @arguments) . ");\n");
+ push(@implContent, " $memoizedType memoizedResult = castedThis->wrapped().$implGetterFunctionName(" . join(", ", @arguments) . ");\n");
push(@implContent, " cursor.appendInput<MemoizedDOMResult<$memoizedType>>(bindingName.get().string(), memoizedResult, $exceptionCode);\n");
push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "memoizedResult", "castedThis") . ";\n");
push(@implContent, " setDOMException(state, ec);\n") if $getterExceptions;
push(@implContent, " return JSValue::encode(castedThis->$implGetterFunctionName(*state));\n");
} elsif ($attribute->signature->extendedAttributes->{"CheckSecurityForNode"}) {
$implIncludes{"JSDOMBinding.h"} = 1;
- push(@implContent, " auto& impl = castedThis->impl();\n");
+ push(@implContent, " auto& impl = castedThis->wrapped();\n");
push(@implContent, " return JSValue::encode(shouldAllowAccessToNode(state, impl." . $attribute->signature->name . "()) ? " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName()", "castedThis") . " : jsNull());\n");
} elsif ($type eq "EventHandler") {
my $getter = $attribute->signature->extendedAttributes->{"WindowEventHandler"} ? "windowEventHandlerAttribute"
: "eventHandlerAttribute";
my $eventName = EventHandlerAttributeEventName($attribute);
push(@implContent, " UNUSED_PARAM(state);\n");
- push(@implContent, " return JSValue::encode($getter(castedThis->impl(), $eventName));\n");
+ push(@implContent, " return JSValue::encode($getter(castedThis->wrapped(), $eventName));\n");
} elsif ($attribute->signature->type =~ /Constructor$/) {
my $constructorType = $attribute->signature->type;
$constructorType =~ s/Constructor$//;
my @callWithArgs = GenerateCallWith($attribute->signature->extendedAttributes->{"CallWith"}, \@implContent, "JSValue::encode(jsUndefined())");
if ($svgListPropertyType) {
- push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "castedThis->impl().$implGetterFunctionName(" . (join ", ", @callWithArgs) . ")", "castedThis") . ";\n");
+ push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "castedThis->wrapped().$implGetterFunctionName(" . (join ", ", @callWithArgs) . ")", "castedThis") . ";\n");
} elsif ($svgPropertyOrListPropertyType) {
- push(@implContent, " $svgPropertyOrListPropertyType& impl = castedThis->impl().propertyReference();\n");
+ push(@implContent, " $svgPropertyOrListPropertyType& impl = castedThis->wrapped().propertyReference();\n");
if ($svgPropertyOrListPropertyType eq "float") { # Special case for JSSVGNumber
push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl", "castedThis") . ";\n");
} else {
unshift(@arguments, @callWithArgs);
my $jsType = NativeToJSValue($attribute->signature, 0, $interfaceName, "${functionName}(" . join(", ", @arguments) . ")", "castedThis");
- push(@implContent, " auto& impl = castedThis->impl();\n") if !$attribute->isStatic;
+ push(@implContent, " auto& impl = castedThis->wrapped();\n") if !$attribute->isStatic;
if ($codeGenerator->IsSVGAnimatedType($type)) {
push(@implContent, " RefPtr<$type> obj = $jsType;\n");
push(@implContent, " JSValue result = toJS(state, castedThis->globalObject(), obj.get());\n");
unshift(@arguments, GenerateCallWith($attribute->signature->extendedAttributes->{"CallWith"}, \@implContent, "JSValue::encode(jsUndefined())"));
if ($svgPropertyOrListPropertyType) {
- push(@implContent, " $svgPropertyOrListPropertyType impl(*castedThis->impl());\n");
+ push(@implContent, " $svgPropertyOrListPropertyType impl(*castedThis->wrapped());\n");
push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName(" . join(", ", @arguments) . ")", "castedThis") . ";\n");
} else {
- push(@implContent, " auto& impl = castedThis->impl();\n");
+ push(@implContent, " auto& impl = castedThis->wrapped();\n");
push(@implContent, " JSValue result = " . NativeToJSValue($attribute->signature, 0, $interfaceName, "impl.$implGetterFunctionName(" . join(", ", @arguments) . ")", "castedThis") . ";\n");
}
if ($interface->extendedAttributes->{"CheckSecurity"}) {
die if !ConstructorShouldBeOnInstance($interface);
- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->impl()))\n");
+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->wrapped()))\n");
push(@implContent, " return JSValue::encode(jsUndefined());\n");
}
push(@implContent, " }\n");
if ($interface->extendedAttributes->{"CheckSecurity"}) {
if ($interfaceName eq "DOMWindow") {
- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))\n");
} else {
- push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->impl().frame()))\n");
+ push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->wrapped().frame()))\n");
}
push(@implContent, " return;\n");
}
}
if ($interface->extendedAttributes->{"CheckSecurity"} && !$attribute->signature->extendedAttributes->{"DoNotCheckSecurity"}) {
if ($interfaceName eq "DOMWindow") {
- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))\n");
} else {
- push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->impl().frame()))\n");
+ push(@implContent, " if (!shouldAllowAccessToFrame(state, castedThis->wrapped().frame()))\n");
}
push(@implContent, " return;\n");
}
# FIXME: Find a way to do this special case without hardcoding the class and attribute names here.
if ((($interfaceName eq "DOMWindow") or ($interfaceName eq "WorkerGlobalScope")) and $name eq "onerror") {
$implIncludes{"JSErrorHandler.h"} = 1;
- push(@implContent, " castedThis->impl().setAttributeEventListener($eventName, createJSErrorHandler(state, value, castedThis));\n");
+ push(@implContent, " castedThis->wrapped().setAttributeEventListener($eventName, createJSErrorHandler(state, value, castedThis));\n");
} else {
$implIncludes{"JSEventListener.h"} = 1;
my $setter = $attribute->signature->extendedAttributes->{"WindowEventHandler"} ? "setWindowEventHandlerAttribute"
: $attribute->signature->extendedAttributes->{"DocumentEventHandler"} ? "setDocumentEventHandlerAttribute"
: "setEventHandlerAttribute";
- push(@implContent, " $setter(*state, *castedThis, castedThis->impl(), $eventName, value);\n");
+ push(@implContent, " $setter(*state, *castedThis, castedThis->wrapped(), $eventName, value);\n");
}
} elsif ($attribute->signature->type =~ /Constructor$/) {
my $constructorType = $attribute->signature->type;
my $implGetterFunctionName = $codeGenerator->WK_lcfirst($attribute->signature->extendedAttributes->{"ImplementedAs"} || $name);
my $attributeType = $attribute->signature->type;
if ($attribute->signature->isNullable) {
- push(@implContent, " RefPtr<${attributeType}> forwardedImpl = castedThis->impl().${implGetterFunctionName}();\n");
+ push(@implContent, " RefPtr<${attributeType}> forwardedImpl = castedThis->wrapped().${implGetterFunctionName}();\n");
push(@implContent, " if (!forwardedImpl)\n");
push(@implContent, " return;\n");
push(@implContent, " auto& impl = *forwardedImpl;\n");
} else {
# Attribute is not nullable, the implementation is expected to return a reference.
- push(@implContent, " Ref<${attributeType}> forwardedImpl = castedThis->impl().${implGetterFunctionName}();\n");
+ push(@implContent, " Ref<${attributeType}> forwardedImpl = castedThis->wrapped().${implGetterFunctionName}();\n");
push(@implContent, " auto& impl = forwardedImpl.get();\n");
}
$attribute = $codeGenerator->GetAttributeFromInterface($interface, $attribute->signature->type, $putForwards);
} else {
- push(@implContent, " auto& impl = castedThis->impl();\n");
+ push(@implContent, " auto& impl = castedThis->wrapped();\n");
}
}
push(@implContent, " ExceptionCode ec = 0;\n") if $setterRaisesException;
push(@implContent, " auto* thisObject = jsCast<${className}*>(object);\n");
push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
if ($indexedGetterFunction) {
- push(@implContent, " for (unsigned i = 0, count = thisObject->impl().length(); i < count; ++i)\n");
+ push(@implContent, " for (unsigned i = 0, count = thisObject->wrapped().length(); i < count; ++i)\n");
push(@implContent, " propertyNames.add(Identifier::from(state, i));\n");
}
if ($namedGetterFunction) {
# FIXME: We may need to add an IDL extended attribute at some point if an interface needs enumerable named properties.
push(@implContent, " if (mode.includeDontEnumProperties()) {\n");
- push(@implContent, " for (auto& propertyName : thisObject->impl().supportedPropertyNames())\n");
+ push(@implContent, " for (auto& propertyName : thisObject->wrapped().supportedPropertyNames())\n");
push(@implContent, " propertyNames.add(Identifier::fromString(state, propertyName));\n");
push(@implContent, " }\n");
}
if ($interface->extendedAttributes->{"CheckSecurity"} and
!$function->signature->extendedAttributes->{"DoNotCheckSecurity"}) {
- push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))\n");
+ push(@implContent, " if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))\n");
push(@implContent, " return JSValue::encode(jsUndefined());\n");
}
if ($isCustom) {
push(@implContent, " return JSValue::encode(castedThis->" . $functionImplementationName . "(*state));\n");
} else {
- push(@implContent, " auto& impl = castedThis->impl();\n");
+ push(@implContent, " auto& impl = castedThis->wrapped();\n");
if ($svgPropertyType) {
push(@implContent, " if (impl.isReadOnly()) {\n");
push(@implContent, " setDOMException(state, NO_MODIFICATION_ALLOWED_ERR);\n");
push(@implContent, " ASSERT_GC_OBJECT_INHERITS(thisObject, info());\n");
push(@implContent, " Base::visitChildren(thisObject, visitor);\n");
if ($interface->extendedAttributes->{"EventTarget"} || $interface->name eq "EventTarget") {
- push(@implContent, " thisObject->impl().visitJSEventListeners(visitor);\n");
+ push(@implContent, " thisObject->wrapped().visitJSEventListeners(visitor);\n");
}
push(@implContent, " thisObject->visitAdditionalChildren(visitor);\n") if $interface->extendedAttributes->{"JSCustomMarkFunction"};
if ($interface->extendedAttributes->{"ReportExtraMemoryCost"}) {
- push(@implContent, " visitor.reportExtraMemoryVisited(thisObject->impl().memoryCost());\n");
+ push(@implContent, " visitor.reportExtraMemoryVisited(thisObject->wrapped().memoryCost());\n");
}
if ($numCachedAttributes > 0) {
foreach (@{$interface->attributes}) {
if ($codeGenerator->InheritsExtendedAttribute($interface, "ActiveDOMObject")) {
push(@implContent, " auto* js${interfaceName} = jsCast<JS${interfaceName}*>(handle.slot()->asCell());\n");
$emittedJSCast = 1;
- push(@implContent, " if (js${interfaceName}->impl().hasPendingActivity())\n");
+ push(@implContent, " if (js${interfaceName}->wrapped().hasPendingActivity())\n");
push(@implContent, " return true;\n");
}
if ($codeGenerator->InheritsExtendedAttribute($interface, "EventTarget")) {
push(@implContent, " auto* js${interfaceName} = jsCast<JS${interfaceName}*>(handle.slot()->asCell());\n");
$emittedJSCast = 1;
}
- push(@implContent, " if (js${interfaceName}->impl().isFiringEventListeners())\n");
+ push(@implContent, " if (js${interfaceName}->wrapped().isFiringEventListeners())\n");
push(@implContent, " return true;\n");
}
if ($codeGenerator->InheritsInterface($interface, "Node")) {
my $rootString;
if (GetGenerateIsReachable($interface) eq "Impl") {
- $rootString = " ${implType}* root = &js${interfaceName}->impl();\n";
+ $rootString = " ${implType}* root = &js${interfaceName}->wrapped();\n";
} elsif (GetGenerateIsReachable($interface) eq "ImplWebGLRenderingContext") {
- $rootString = " WebGLRenderingContextBase* root = WTF::getPtr(js${interfaceName}->impl().context());\n";
+ $rootString = " WebGLRenderingContextBase* root = WTF::getPtr(js${interfaceName}->wrapped().context());\n";
} elsif (GetGenerateIsReachable($interface) eq "ImplFrame") {
- $rootString = " Frame* root = WTF::getPtr(js${interfaceName}->impl().frame());\n";
+ $rootString = " Frame* root = WTF::getPtr(js${interfaceName}->wrapped().frame());\n";
$rootString .= " if (!root)\n";
$rootString .= " return false;\n";
} elsif (GetGenerateIsReachable($interface) eq "ImplDocument") {
- $rootString = " Document* root = WTF::getPtr(js${interfaceName}->impl().document());\n";
+ $rootString = " Document* root = WTF::getPtr(js${interfaceName}->wrapped().document());\n";
$rootString .= " if (!root)\n";
$rootString .= " return false;\n";
} elsif (GetGenerateIsReachable($interface) eq "ImplElementRoot") {
$implIncludes{"Element.h"} = 1;
$implIncludes{"JSNodeCustom.h"} = 1;
- $rootString = " Element* element = WTF::getPtr(js${interfaceName}->impl().element());\n";
+ $rootString = " Element* element = WTF::getPtr(js${interfaceName}->wrapped().element());\n";
$rootString .= " if (!element)\n";
$rootString .= " return false;\n";
$rootString .= " void* root = WebCore::root(element);\n";
} elsif ($interfaceName eq "CanvasRenderingContext") {
$implIncludes{"Element.h"} = 1;
$implIncludes{"JSNodeCustom.h"} = 1;
- $rootString = " void* root = WebCore::root(js${interfaceName}->impl().canvas());\n";
+ $rootString = " void* root = WebCore::root(js${interfaceName}->wrapped().canvas());\n";
} elsif (GetGenerateIsReachable($interface) eq "ImplOwnerNodeRoot") {
$implIncludes{"Element.h"} = 1;
$implIncludes{"JSNodeCustom.h"} = 1;
- $rootString = " void* root = WebCore::root(js${interfaceName}->impl().ownerNode());\n";
+ $rootString = " void* root = WebCore::root(js${interfaceName}->wrapped().ownerNode());\n";
} else {
- $rootString = " void* root = WebCore::root(&js${interfaceName}->impl());\n";
+ $rootString = " void* root = WebCore::root(&js${interfaceName}->wrapped());\n";
}
push(@implContent, $rootString);
push(@implContent, "{\n");
push(@implContent, " auto* js${interfaceName} = jsCast<JS${interfaceName}*>(handle.slot()->asCell());\n");
push(@implContent, " auto& world = *static_cast<DOMWrapperWorld*>(context);\n");
- push(@implContent, " uncacheWrapper(world, &js${interfaceName}->impl(), js${interfaceName});\n");
+ push(@implContent, " uncacheWrapper(world, &js${interfaceName}->wrapped(), js${interfaceName});\n");
push(@implContent, "}\n\n");
}
push(@implContent, "$implType* ${className}::toWrapped(JSC::JSValue value)\n");
push(@implContent, "{\n");
push(@implContent, " if (auto* wrapper = " . GetCastingHelperForThisObject($interface) . "(value))\n");
- push(@implContent, " return &wrapper->impl();\n");
+ push(@implContent, " return &wrapper->wrapped();\n");
push(@implContent, " return nullptr;\n");
push(@implContent, "}\n");
}
if ($selfIsTearOffType) {
AddToImplIncludes("SVGMatrixTearOff.h", $conditional);
# FIXME: Blink: Don't create a new one everytime we access the matrix property. This means, e.g, === won't work.
- $value = "SVGMatrixTearOff::create(castedThis->impl(), $value)";
+ $value = "SVGMatrixTearOff::create(castedThis->wrapped(), $value)";
} else {
AddToImplIncludes("SVGStaticPropertyTearOff.h", $conditional);
$tearOffType =~ s/SVGPropertyTearOff</SVGStaticPropertyTearOff<$interfaceName, /;
UNUSED_PARAM(slotBase);
UNUSED_PARAM(thisValue);
auto* castedThis = jsCast<JSTestActiveDOMObject*>(slotBase);
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))
return JSValue::encode(jsUndefined());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = jsNumber(impl.excitingAttr());
return JSValue::encode(result);
}
JSTestActiveDOMObject* domObject = jsDynamicCast<JSTestActiveDOMObject*>(JSValue::decode(thisValue));
if (!domObject)
return throwVMTypeError(state);
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, domObject->wrapped()))
return JSValue::encode(jsUndefined());
return JSValue::encode(JSTestActiveDOMObject::getConstructor(state->vm(), domObject->globalObject()));
}
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestActiveDOMObject", "excitingFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestActiveDOMObject::info());
- if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->impl()))
+ if (!BindingSecurity::shouldAllowAccessToDOMWindow(state, castedThis->wrapped()))
return JSValue::encode(jsUndefined());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
if (UNLIKELY(state->argumentCount() < 1))
return throwVMError(state, createNotEnoughArgumentsError(state));
Node* nextChild = JSNode::toWrapped(state->argument(0));
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestActiveDOMObject", "postMessage");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestActiveDOMObject::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
if (UNLIKELY(state->argumentCount() < 1))
return throwVMError(state, createNotEnoughArgumentsError(state));
String message = state->argument(0).toString(state)->value(state);
{
auto* jsTestActiveDOMObject = jsCast<JSTestActiveDOMObject*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestActiveDOMObject->impl(), jsTestActiveDOMObject);
+ uncacheWrapper(world, &jsTestActiveDOMObject->wrapped(), jsTestActiveDOMObject);
}
#if ENABLE(BINDING_INTEGRITY)
TestActiveDOMObject* JSTestActiveDOMObject::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestActiveDOMObject*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
{
auto* jsTestCustomConstructorWithNoInterfaceObject = jsCast<JSTestCustomConstructorWithNoInterfaceObject*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestCustomConstructorWithNoInterfaceObject->impl(), jsTestCustomConstructorWithNoInterfaceObject);
+ uncacheWrapper(world, &jsTestCustomConstructorWithNoInterfaceObject->wrapped(), jsTestCustomConstructorWithNoInterfaceObject);
}
#if ENABLE(BINDING_INTEGRITY)
TestCustomConstructorWithNoInterfaceObject* JSTestCustomConstructorWithNoInterfaceObject::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestCustomConstructorWithNoInterfaceObject*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestCustomNamedGetter", "anotherFunction");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestCustomNamedGetter::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
if (UNLIKELY(state->argumentCount() < 1))
return throwVMError(state, createNotEnoughArgumentsError(state));
String str = state->argument(0).toString(state)->value(state);
{
auto* jsTestCustomNamedGetter = jsCast<JSTestCustomNamedGetter*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestCustomNamedGetter->impl(), jsTestCustomNamedGetter);
+ uncacheWrapper(world, &jsTestCustomNamedGetter->wrapped(), jsTestCustomNamedGetter);
}
#if ENABLE(BINDING_INTEGRITY)
TestCustomNamedGetter* JSTestCustomNamedGetter::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestCustomNamedGetter*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr1");
return throwGetterTypeError(*state, "TestEventConstructor", "attr1");
}
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = jsStringWithCache(state, impl.attr1());
return JSValue::encode(result);
}
return reportDeprecatedGetterError(*state, "TestEventConstructor", "attr2");
return throwGetterTypeError(*state, "TestEventConstructor", "attr2");
}
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = jsStringWithCache(state, impl.attr2());
return JSValue::encode(result);
}
{
auto* jsTestEventConstructor = jsCast<JSTestEventConstructor*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestEventConstructor->impl(), jsTestEventConstructor);
+ uncacheWrapper(world, &jsTestEventConstructor->wrapped(), jsTestEventConstructor);
}
#if ENABLE(BINDING_INTEGRITY)
TestEventConstructor* JSTestEventConstructor::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestEventConstructor*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
auto* thisObject = jsCast<JSTestEventTarget*>(object);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Optional<uint32_t> optionalIndex = parseIndex(propertyName);
- if (optionalIndex && optionalIndex.value() < thisObject->impl().length()) {
+ if (optionalIndex && optionalIndex.value() < thisObject->wrapped().length()) {
unsigned index = optionalIndex.value();
unsigned attributes = DontDelete | ReadOnly;
- slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->impl().item(index)));
+ slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->wrapped().item(index)));
return true;
}
if (getStaticValueSlot<JSTestEventTarget, Base>(state, JSTestEventTargetTable, thisObject, propertyName, slot))
{
auto* thisObject = jsCast<JSTestEventTarget*>(object);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
- if (index < thisObject->impl().length()) {
+ if (index < thisObject->wrapped().length()) {
unsigned attributes = DontDelete | ReadOnly;
- slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->impl().item(index)));
+ slot.setValue(thisObject, attributes, toJS(state, thisObject->globalObject(), thisObject->wrapped().item(index)));
return true;
}
return Base::getOwnPropertySlotByIndex(thisObject, state, index, slot);
{
auto* thisObject = jsCast<JSTestEventTarget*>(object);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
- for (unsigned i = 0, count = thisObject->impl().length(); i < count; ++i)
+ for (unsigned i = 0, count = thisObject->wrapped().length(); i < count; ++i)
propertyNames.add(Identifier::from(state, i));
if (mode.includeDontEnumProperties()) {
- for (auto& propertyName : thisObject->impl().supportedPropertyNames())
+ for (auto& propertyName : thisObject->wrapped().supportedPropertyNames())
propertyNames.add(Identifier::fromString(state, propertyName));
}
Base::getOwnPropertyNames(thisObject, state, propertyNames, mode);
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestEventTarget", "item");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
if (UNLIKELY(state->argumentCount() < 1))
return throwVMError(state, createNotEnoughArgumentsError(state));
unsigned index = toUInt32(state, state->argument(0), NormalConversion);
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestEventTarget", "addEventListener");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue listener = state->argument(1);
if (UNLIKELY(!listener.isObject()))
return JSValue::encode(jsUndefined());
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestEventTarget", "removeEventListener");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue listener = state->argument(1);
if (UNLIKELY(!listener.isObject()))
return JSValue::encode(jsUndefined());
if (UNLIKELY(!castedThis))
return throwThisTypeError(*state, "TestEventTarget", "dispatchEvent");
ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
if (UNLIKELY(state->argumentCount() < 1))
return throwVMError(state, createNotEnoughArgumentsError(state));
ExceptionCode ec = 0;
auto* thisObject = jsCast<JSTestEventTarget*>(cell);
ASSERT_GC_OBJECT_INHERITS(thisObject, info());
Base::visitChildren(thisObject, visitor);
- thisObject->impl().visitJSEventListeners(visitor);
+ thisObject->wrapped().visitJSEventListeners(visitor);
}
bool JSTestEventTargetOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
auto* jsTestEventTarget = jsCast<JSTestEventTarget*>(handle.slot()->asCell());
- if (jsTestEventTarget->impl().isFiringEventListeners())
+ if (jsTestEventTarget->wrapped().isFiringEventListeners())
return true;
UNUSED_PARAM(visitor);
return false;
{
auto* jsTestEventTarget = jsCast<JSTestEventTarget*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestEventTarget->impl(), jsTestEventTarget);
+ uncacheWrapper(world, &jsTestEventTarget->wrapped(), jsTestEventTarget);
}
#if ENABLE(BINDING_INTEGRITY)
TestEventTarget* JSTestEventTarget::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestEventTarget*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
UNUSED_PARAM(slotBase);
UNUSED_PARAM(thisValue);
auto* castedThis = jsCast<JSTestException*>(slotBase);
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = jsStringWithCache(state, impl.name());
return JSValue::encode(result);
}
{
auto* jsTestException = jsCast<JSTestException*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestException->impl(), jsTestException);
+ uncacheWrapper(world, &jsTestException->wrapped(), jsTestException);
}
#if ENABLE(BINDING_INTEGRITY)
TestException* JSTestException::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestException*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
bool JSTestGenerateIsReachableOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, void*, SlotVisitor& visitor)
{
auto* jsTestGenerateIsReachable = jsCast<JSTestGenerateIsReachable*>(handle.slot()->asCell());
- TestGenerateIsReachable* root = &jsTestGenerateIsReachable->impl();
+ TestGenerateIsReachable* root = &jsTestGenerateIsReachable->wrapped();
return visitor.containsOpaqueRoot(root);
}
{
auto* jsTestGenerateIsReachable = jsCast<JSTestGenerateIsReachable*>(handle.slot()->asCell());
auto& world = *static_cast<DOMWrapperWorld*>(context);
- uncacheWrapper(world, &jsTestGenerateIsReachable->impl(), jsTestGenerateIsReachable);
+ uncacheWrapper(world, &jsTestGenerateIsReachable->wrapped(), jsTestGenerateIsReachable);
}
#if ENABLE(BINDING_INTEGRITY)
TestGenerateIsReachable* JSTestGenerateIsReachable::toWrapped(JSC::JSValue value)
{
if (auto* wrapper = jsDynamicCast<JSTestGenerateIsReachable*>(value))
- return &wrapper->impl();
+ return &wrapper->wrapped();
return nullptr;
}
return reportDeprecatedGetterError(*state, "TestInterface", "implementsStr1");
return throwGetterTypeError(*state, "TestInterface", "implementsStr1");
}
- auto& impl = castedThis->impl();
+ auto& impl = castedThis->wrapped();
JSValue result = jsStringWithCache(state, impl.implementsStr1());
return JSValue::encode(result);
}