Rename JSDOMWrapper.impl to JSDOMWrapper.wrapped
authoryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 11:44:18 +0000 (11:44 +0000)
committeryouenn.fablet@crf.canon.fr <youenn.fablet@crf.canon.fr@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Nov 2015 11:44:18 +0000 (11:44 +0000)
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: http://svn.webkit.org/repository/webkit/trunk@191887 268f45cc-cd09-0410-ab3c-d52691b4dbfc

148 files changed:
Source/WebCore/ChangeLog
Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm
Source/WebCore/bindings/js/JSAttrCustom.cpp
Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp
Source/WebCore/bindings/js/JSAudioTrackCustom.cpp
Source/WebCore/bindings/js/JSAudioTrackListCustom.cpp
Source/WebCore/bindings/js/JSBiquadFilterNodeCustom.cpp
Source/WebCore/bindings/js/JSCSSRuleCustom.cpp
Source/WebCore/bindings/js/JSCSSRuleListCustom.cpp
Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp
Source/WebCore/bindings/js/JSCSSValueCustom.cpp
Source/WebCore/bindings/js/JSCanvasRenderingContext2DCustom.cpp
Source/WebCore/bindings/js/JSCanvasRenderingContextCustom.cpp
Source/WebCore/bindings/js/JSCharacterDataCustom.cpp
Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp
Source/WebCore/bindings/js/JSCryptoCustom.cpp
Source/WebCore/bindings/js/JSCryptoKeyCustom.cpp
Source/WebCore/bindings/js/JSCryptoKeyPairCustom.cpp
Source/WebCore/bindings/js/JSCustomEventCustom.cpp
Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp
Source/WebCore/bindings/js/JSDOMBinding.cpp
Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp
Source/WebCore/bindings/js/JSDOMMimeTypeArrayCustom.cpp
Source/WebCore/bindings/js/JSDOMNamedFlowCollectionCustom.cpp
Source/WebCore/bindings/js/JSDOMPluginArrayCustom.cpp
Source/WebCore/bindings/js/JSDOMPluginCustom.cpp
Source/WebCore/bindings/js/JSDOMStringListCustom.cpp
Source/WebCore/bindings/js/JSDOMStringMapCustom.cpp
Source/WebCore/bindings/js/JSDOMTokenListCustom.cpp
Source/WebCore/bindings/js/JSDOMWindowBase.cpp
Source/WebCore/bindings/js/JSDOMWindowBase.h
Source/WebCore/bindings/js/JSDOMWindowCustom.cpp
Source/WebCore/bindings/js/JSDOMWindowShell.cpp
Source/WebCore/bindings/js/JSDOMWindowShell.h
Source/WebCore/bindings/js/JSDOMWrapper.h
Source/WebCore/bindings/js/JSDataCueCustom.cpp
Source/WebCore/bindings/js/JSDataTransferCustom.cpp
Source/WebCore/bindings/js/JSDedicatedWorkerGlobalScopeCustom.cpp
Source/WebCore/bindings/js/JSDeviceMotionEventCustom.cpp
Source/WebCore/bindings/js/JSDeviceOrientationEventCustom.cpp
Source/WebCore/bindings/js/JSDocumentCustom.cpp
Source/WebCore/bindings/js/JSDocumentFragmentCustom.cpp
Source/WebCore/bindings/js/JSDocumentTypeCustom.cpp
Source/WebCore/bindings/js/JSElementCustom.cpp
Source/WebCore/bindings/js/JSEventCustom.cpp
Source/WebCore/bindings/js/JSEventListener.cpp
Source/WebCore/bindings/js/JSEventTargetCustom.cpp
Source/WebCore/bindings/js/JSFileReaderCustom.cpp
Source/WebCore/bindings/js/JSGeolocationCustom.cpp
Source/WebCore/bindings/js/JSHTMLAllCollectionCustom.cpp
Source/WebCore/bindings/js/JSHTMLCanvasElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLCollectionCustom.cpp
Source/WebCore/bindings/js/JSHTMLDocumentCustom.cpp
Source/WebCore/bindings/js/JSHTMLElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLFormControlsCollectionCustom.cpp
Source/WebCore/bindings/js/JSHTMLFormElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLFrameElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLFrameSetElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLInputElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLMediaElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp
Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp
Source/WebCore/bindings/js/JSHTMLTemplateElementCustom.cpp
Source/WebCore/bindings/js/JSHistoryCustom.cpp
Source/WebCore/bindings/js/JSIDBDatabaseCustom.cpp
Source/WebCore/bindings/js/JSIDBObjectStoreCustom.cpp
Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp
Source/WebCore/bindings/js/JSLocationCustom.cpp
Source/WebCore/bindings/js/JSMediaSourceStatesCustom.cpp
Source/WebCore/bindings/js/JSMessageChannelCustom.cpp
Source/WebCore/bindings/js/JSMessageEventCustom.cpp
Source/WebCore/bindings/js/JSMessagePortCustom.cpp
Source/WebCore/bindings/js/JSMockContentFilterSettingsCustom.cpp
Source/WebCore/bindings/js/JSMutationObserverCustom.cpp
Source/WebCore/bindings/js/JSNamedNodeMapCustom.cpp
Source/WebCore/bindings/js/JSNavigatorCustom.cpp
Source/WebCore/bindings/js/JSNodeCustom.cpp
Source/WebCore/bindings/js/JSNodeIteratorCustom.cpp
Source/WebCore/bindings/js/JSNodeListCustom.cpp
Source/WebCore/bindings/js/JSNodeOrString.cpp
Source/WebCore/bindings/js/JSOscillatorNodeCustom.cpp
Source/WebCore/bindings/js/JSPannerNodeCustom.cpp
Source/WebCore/bindings/js/JSPluginElementFunctions.cpp
Source/WebCore/bindings/js/JSPopStateEventCustom.cpp
Source/WebCore/bindings/js/JSRTCStatsResponseCustom.cpp
Source/WebCore/bindings/js/JSSQLResultSetRowListCustom.cpp
Source/WebCore/bindings/js/JSSQLTransactionCustom.cpp
Source/WebCore/bindings/js/JSSVGLengthCustom.cpp
Source/WebCore/bindings/js/JSStorageCustom.cpp
Source/WebCore/bindings/js/JSStyleSheetCustom.cpp
Source/WebCore/bindings/js/JSStyleSheetListCustom.cpp
Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp
Source/WebCore/bindings/js/JSTextTrackCueCustom.cpp
Source/WebCore/bindings/js/JSTextTrackCustom.cpp
Source/WebCore/bindings/js/JSTextTrackListCustom.cpp
Source/WebCore/bindings/js/JSTrackCustom.cpp
Source/WebCore/bindings/js/JSTrackEventCustom.cpp
Source/WebCore/bindings/js/JSTreeWalkerCustom.cpp
Source/WebCore/bindings/js/JSUserMessageHandlersNamespaceCustom.cpp
Source/WebCore/bindings/js/JSVideoTrackCustom.cpp
Source/WebCore/bindings/js/JSVideoTrackListCustom.cpp
Source/WebCore/bindings/js/JSWebGL2RenderingContextCustom.cpp
Source/WebCore/bindings/js/JSWebGLRenderingContextBaseCustom.cpp
Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp
Source/WebCore/bindings/js/JSWorkerCustom.cpp
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.h
Source/WebCore/bindings/js/JSWorkerGlobalScopeCustom.cpp
Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp
Source/WebCore/bindings/js/JSXPathResultCustom.cpp
Source/WebCore/bindings/js/JSXSLTProcessorCustom.cpp
Source/WebCore/bindings/js/ScheduledAction.cpp
Source/WebCore/bindings/js/ScriptCachedFrameData.cpp
Source/WebCore/bindings/js/ScriptController.cpp
Source/WebCore/bindings/js/ScriptState.cpp
Source/WebCore/bindings/objc/DOM.mm
Source/WebCore/bindings/objc/DOMUtility.mm
Source/WebCore/bindings/objc/WebScriptObject.mm
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/test/JS/JSTestActiveDOMObject.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestCustomConstructorWithNoInterfaceObject.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestCustomNamedGetter.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestEventConstructor.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestEventTarget.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestException.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestGenerateIsReachable.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestInterface.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestMediaQueryListListener.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestNamedConstructor.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestNode.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestNode.h
Source/WebCore/bindings/scripts/test/JS/JSTestNondeterministic.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestOverloadedConstructors.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestOverrideBuiltins.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestSerializedScriptValueInterface.cpp
Source/WebCore/bindings/scripts/test/JS/JSTestTypedefs.cpp
Source/WebCore/bindings/scripts/test/JS/JSattribute.cpp
Source/WebCore/bindings/scripts/test/JS/JSreadonly.cpp
Source/WebCore/bridge/runtime_method.cpp
Source/WebCore/inspector/InspectorController.cpp
Source/WebKit/mac/ChangeLog
Source/WebKit/mac/WebView/WebFrame.mm
Source/WebKit/mac/WebView/WebScriptDebugger.mm
Source/WebKit/win/ChangeLog
Source/WebKit/win/WebFrame.cpp
Source/WebKit2/ChangeLog
Source/WebKit2/WebProcess/WebPage/WebFrame.cpp

index 961a359..f802f9a 100644 (file)
@@ -1,5 +1,785 @@
 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
         https://bugs.webkit.org/show_bug.cgi?id=150438
 
index 16bb18b..e4532c8 100644 (file)
@@ -369,7 +369,7 @@ static JSValue *jsValueWithAVMetadataItemInContext(AVMetadataItemType *item, JSC
 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();
 
@@ -394,7 +394,7 @@ JSC::JSValue JSQuickTimePluginReplacement::timedMetaData(JSC::ExecState& state)
 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();
 
@@ -416,7 +416,7 @@ JSC::JSValue JSQuickTimePluginReplacement::accessLog(JSC::ExecState& state) cons
 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();
 
index 42f12f0..d45cf6d 100644 (file)
@@ -35,7 +35,7 @@ namespace WebCore {
 
 void JSAttr::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    if (Element* element = impl().ownerElement())
+    if (Element* element = wrapped().ownerElement())
         visitor.addOpaqueRoot(root(element));
 }
 
index 1c9c328..33f768e 100644 (file)
@@ -47,7 +47,7 @@ void JSAudioBufferSourceNode::setBuffer(ExecState& state, JSValue value)
         return;
     }
     
-    if (!impl().setBuffer(buffer))
+    if (!wrapped().setBuffer(buffer))
         state.vm().throwException(&state, createTypeError(&state, "AudioBuffer unsupported number of channels"));
 }
 
index 36f31d9..1531815 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 void JSAudioTrack::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 void JSAudioTrack::setKind(ExecState& state, JSValue value)
@@ -46,7 +46,7 @@ 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);
@@ -59,7 +59,7 @@ void JSAudioTrack::setLanguage(ExecState& state, JSValue 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);
index 831e425..6fd1a50 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 void JSAudioTrackList::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(impl().element()));
+    visitor.addOpaqueRoot(root(wrapped().element()));
 }
 
 } // namespace WebCore
index f6fa86f..921baef 100644 (file)
@@ -42,7 +42,7 @@ void JSBiquadFilterNode::setType(ExecState& state, JSValue value)
 #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;
     }
@@ -51,7 +51,7 @@ void JSBiquadFilterNode::setType(ExecState& state, JSValue value)
     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;
         }
     }
index ff26307..0d33777 100644 (file)
@@ -57,7 +57,7 @@ namespace WebCore {
 
 void JSCSSRule::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 JSValue toJS(ExecState*, JSDOMGlobalObject* globalObject, CSSRule* rule)
index 89e9921..028444f 100644 (file)
@@ -41,9 +41,9 @@ bool JSCSSRuleListOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> ha
     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;
 }
index de2f907..91ba312 100644 (file)
@@ -51,7 +51,7 @@ namespace WebCore {
 
 void JSCSSStyleDeclaration::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 class CSSPropertyInfo {
@@ -278,7 +278,7 @@ static inline JSValue getPropertyValueFallback(ExecState* exec, JSCSSStyleDeclar
 {
     // 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)
@@ -288,7 +288,7 @@ static inline JSValue cssPropertyGetterPixelOrPosPrefix(ExecState* exec, JSCSSSt
     // 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));
@@ -300,7 +300,7 @@ static inline JSValue cssPropertyGetterPixelOrPosPrefix(ExecState* exec, JSCSSSt
 
 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());
 
@@ -341,7 +341,7 @@ bool JSCSSStyleDeclaration::putDelegate(ExecState* exec, PropertyName propertyNa
 
     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;
@@ -353,11 +353,11 @@ JSValue JSCSSStyleDeclaration::getPropertyCSSValue(ExecState& state)
     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));
 }
 
@@ -366,7 +366,7 @@ void JSCSSStyleDeclaration::getOwnPropertyNames(JSObject* object, ExecState* exe
     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));
 
index ed51253..d8f4705 100644 (file)
@@ -50,7 +50,7 @@ bool JSCSSValueOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handl
     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);
@@ -60,8 +60,8 @@ void JSCSSValueOwner::finalize(JSC::Handle<JSC::Unknown> handle, void* context)
 {
     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)
index b993bdc..da75802 100644 (file)
@@ -53,9 +53,9 @@ static CanvasStyle toHTMLCanvasStyle(ExecState*, JSValue 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();
 }
 
@@ -67,12 +67,12 @@ JSValue JSCanvasRenderingContext2D::commit(ExecState&)
 
 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;
@@ -82,12 +82,12 @@ void JSCanvasRenderingContext2D::setStrokeStyle(ExecState& state, JSValue value)
 
 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;
@@ -97,7 +97,7 @@ void JSCanvasRenderingContext2D::setFillStyle(ExecState& state, JSValue value)
 
 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();
@@ -121,7 +121,7 @@ void JSCanvasRenderingContext2D::setWebkitLineDash(ExecState& state, JSValue val
         dash.append(elem);
     }
 
-    impl().setWebkitLineDash(dash);
+    wrapped().setWebkitLineDash(dash);
 }
 
 } // namespace WebCore
index e5dd6e8..7f50435 100644 (file)
@@ -44,7 +44,7 @@ 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)
index cb831d0..6017f1f 100644 (file)
@@ -36,7 +36,7 @@ namespace WebCore {
 JSValue JSCharacterData::before(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().before(toNodeOrStringVector(state), ec);
+    wrapped().before(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -45,7 +45,7 @@ JSValue JSCharacterData::before(ExecState& state)
 JSValue JSCharacterData::after(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().after(toNodeOrStringVector(state), ec);
+    wrapped().after(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -54,7 +54,7 @@ JSValue JSCharacterData::after(ExecState& state)
 JSValue JSCharacterData::replaceWith(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().replaceWith(toNodeOrStringVector(state), ec);
+    wrapped().replaceWith(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
index b065d5c..55c7921 100644 (file)
@@ -57,7 +57,7 @@ namespace WebCore {
 
 JSValue JSCommandLineAPIHost::inspectedObject(ExecState& state)
 {
-    CommandLineAPIHost::InspectableObject* object = impl().inspectedObject();
+    CommandLineAPIHost::InspectableObject* object = wrapped().inspectedObject();
     if (!object)
         return jsUndefined();
 
@@ -110,7 +110,7 @@ JSValue JSCommandLineAPIHost::getEventListeners(ExecState& state)
         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) {
@@ -129,7 +129,7 @@ JSValue JSCommandLineAPIHost::inspect(ExecState& state)
     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();
@@ -142,7 +142,7 @@ JSValue JSCommandLineAPIHost::databaseId(ExecState& state)
 
     Database* database = JSDatabase::toWrapped(state.uncheckedArgument(0));
     if (database)
-        return jsStringWithCache(&state, impl().databaseIdImpl(database));
+        return jsStringWithCache(&state, wrapped().databaseIdImpl(database));
 
     return jsUndefined();
 }
@@ -154,7 +154,7 @@ JSValue JSCommandLineAPIHost::storageId(ExecState& state)
 
     Storage* storage = JSStorage::toWrapped(state.uncheckedArgument(0));
     if (storage)
-        return jsStringWithCache(&state, impl().storageIdImpl(storage));
+        return jsStringWithCache(&state, wrapped().storageIdImpl(storage));
 
     return jsUndefined();
 }
index d07beac..687ecd1 100644 (file)
@@ -46,7 +46,7 @@ JSValue JSCrypto::getRandomValues(ExecState& state)
         return throwTypeError(&state);
 
     ExceptionCode ec = 0;
-    impl().getRandomValues(arrayBufferView.get(), ec);
+    wrapped().getRandomValues(arrayBufferView.get(), ec);
 
     if (ec) {
         setDOMException(&state, ec);
index ad81e4d..58594be 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 JSValue JSCryptoKey::algorithm(JSC::ExecState& state) const
 {
     JSCryptoAlgorithmBuilder builder(&state);
-    impl().buildAlgorithmDescription(builder);
+    wrapped().buildAlgorithmDescription(builder);
     return builder.result();
 }
 
index 9fdb89b..b4ad046 100644 (file)
@@ -34,8 +34,8 @@ namespace WebCore {
 
 void JSCryptoKeyPair::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(impl().publicKey());
-    visitor.addOpaqueRoot(impl().privateKey());
+    visitor.addOpaqueRoot(wrapped().publicKey());
+    visitor.addOpaqueRoot(wrapped().privateKey());
 }
 
 } // namespace WebCore
index af149da..c556c9e 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
     
 JSValue JSCustomEvent::detail(ExecState& state) const
 {
-    CustomEvent& event = impl();
+    CustomEvent& event = wrapped();
     
     if (event.detail().hasNoValue())
         return jsNull();
index b287c6b..60c57f8 100644 (file)
@@ -81,7 +81,7 @@ String JSCustomXPathNSResolver::lookupNamespaceURI(const String& prefix)
         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();
         }
index 302c7a9..20ef609 100644 (file)
@@ -173,7 +173,7 @@ void reportException(ExecState* exec, Exception* exception, CachedScript* cached
 
     JSDOMGlobalObject* globalObject = jsCast<JSDOMGlobalObject*>(exec->lexicalGlobalObject());
     if (JSDOMWindow* window = jsDynamicCast<JSDOMWindow*>(globalObject)) {
-        if (!window->impl().isCurrentlyDisplayedInFrame())
+        if (!window->wrapped().isCurrentlyDisplayedInFrame())
             return;
     }
 
@@ -515,12 +515,12 @@ uint64_t toUInt64(ExecState* exec, JSValue value, IntegerConversionConfiguration
 
 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)
index 13fdb52..b048af9 100644 (file)
@@ -43,7 +43,7 @@ namespace WebCore {
 
 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)
@@ -64,9 +64,9 @@ JSValue JSDOMFormData::append(ExecState& state)
             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();
index 4312ae2..758cb58 100644 (file)
@@ -31,7 +31,7 @@ using namespace JSC;
 
 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;
 
index 0dd5451..4ff1262 100644 (file)
@@ -38,7 +38,7 @@ using namespace JSC;
 
 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;
 
index 2669d83..53b4b45 100644 (file)
@@ -31,7 +31,7 @@ using namespace JSC;
 
 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;
 
index 1a7586d..ccfca34 100644 (file)
@@ -29,7 +29,7 @@ using namespace JSC;
 
 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;
 
index fd401b2..5bd33cb 100644 (file)
@@ -29,7 +29,7 @@ namespace WebCore {
 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;
index 9af845c..2271fd9 100644 (file)
@@ -40,7 +40,7 @@ bool JSDOMStringMap::getOwnPropertySlotDelegate(ExecState* exec, PropertyName pr
     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;
@@ -52,7 +52,7 @@ void JSDOMStringMap::getOwnPropertyNames(JSObject* object, ExecState* exec, Prop
 {
     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]));
@@ -65,7 +65,7 @@ bool JSDOMStringMap::deleteProperty(JSCell* cell, ExecState* exec, PropertyName
     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)
@@ -83,7 +83,7 @@ bool JSDOMStringMap::putDelegate(ExecState* exec, PropertyName propertyName, JSV
         return false;
 
     ExceptionCode ec = 0;
-    impl().setItem(propertyNameToString(propertyName), stringValue, ec);
+    wrapped().setItem(propertyNameToString(propertyName), stringValue, ec);
     setDOMException(exec, ec);
     return !ec;
 }
index bdd4877..54f75d0 100644 (file)
@@ -48,7 +48,7 @@ JSValue JSDOMTokenList::toggle(ExecState& state)
     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;
index 64aab6e..f803dbe 100644 (file)
@@ -60,7 +60,7 @@ namespace WebCore {
 
 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) };
@@ -70,7 +70,7 @@ const GlobalObjectMethodTable JSDOMWindowBase::s_globalObjectMethodTable = { &sh
 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)
 {
@@ -134,25 +134,25 @@ void JSDOMWindowBase::destroy(JSCell* cell)
 
 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;
 
@@ -166,7 +166,7 @@ bool JSDOMWindowBase::supportsProfiling(const JSGlobalObject* object)
 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;
 
@@ -195,16 +195,16 @@ static inline bool shouldInterruptScriptToPreventInfiniteRecursionWhenClosingPag
 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;
@@ -220,7 +220,7 @@ bool JSDOMWindowBase::shouldInterruptScriptBeforeTimeout(const JSGlobalObject* o
 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();
@@ -328,7 +328,7 @@ void JSDOMWindowBase::fireFrameClearedWatchpointsForWindow(DOMWindow* window)
 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());
@@ -337,7 +337,7 @@ JSC::JSInternalPromise* JSDOMWindowBase::moduleLoaderResolve(JSC::JSGlobalObject
 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());
@@ -346,7 +346,7 @@ JSC::JSInternalPromise* JSDOMWindowBase::moduleLoaderFetch(JSC::JSGlobalObject*
 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();
 }
index 107640c..d699a5a 100644 (file)
@@ -46,7 +46,7 @@ namespace WebCore {
     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.
@@ -84,7 +84,7 @@ namespace WebCore {
         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;
index 0bc3375..00e62a4 100644 (file)
@@ -62,21 +62,21 @@ namespace WebCore {
 
 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();
@@ -96,9 +96,9 @@ static EncodedJSValue namedItemGetter(ExecState* exec, JSObject* slotBase, Encod
 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
 
@@ -111,9 +111,9 @@ static EncodedJSValue jsDOMWindowIndexedDB(ExecState* exec, JSObject* slotBase,
     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);
 }
@@ -129,7 +129,7 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
     // 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) {
@@ -145,14 +145,15 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
         // 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.
@@ -176,7 +177,7 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
         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;
         }
@@ -207,7 +208,7 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
     }
 
 #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;
     }
@@ -237,7 +238,7 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
     // 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;
     }
@@ -247,9 +248,9 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
 
     // 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;
     }
 
@@ -260,7 +261,7 @@ bool JSDOMWindow::getOwnPropertySlot(JSObject* object, ExecState* exec, Property
     }
 
     // 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)) {
@@ -276,7 +277,7 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
 {
     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();
@@ -287,7 +288,7 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
     // 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.
@@ -301,7 +302,7 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
     // 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;
     }
@@ -323,9 +324,9 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
     // 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;
     }
 
@@ -336,7 +337,7 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
     }
 
     // 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.
@@ -354,12 +355,12 @@ bool JSDOMWindow::getOwnPropertySlotByIndex(JSObject* object, ExecState* exec, u
 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;
     }
@@ -367,26 +368,26 @@ void JSDOMWindow::put(JSCell* cell, ExecState* exec, PropertyName propertyName,
     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);
 }
 
@@ -394,7 +395,7 @@ bool JSDOMWindow::deleteProperty(JSCell* cell, ExecState* exec, PropertyName pro
 {
     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);
 }
@@ -403,7 +404,7 @@ bool JSDOMWindow::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned
 {
     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);
 }
@@ -412,7 +413,7 @@ uint32_t JSDOMWindow::getEnumerableLength(ExecState* exec, JSObject* object)
 {
     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);
 }
@@ -421,7 +422,7 @@ void JSDOMWindow::getStructurePropertyNames(JSObject* object, ExecState* exec, P
 {
     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);
 }
@@ -430,7 +431,7 @@ void JSDOMWindow::getGenericPropertyNames(JSObject* object, ExecState* exec, Pro
 {
     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);
 }
@@ -439,7 +440,7 @@ void JSDOMWindow::getPropertyNames(JSObject* object, ExecState* exec, PropertyNa
 {
     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);
 }
@@ -448,7 +449,7 @@ void JSDOMWindow::getOwnPropertyNames(JSObject* object, ExecState* exec, Propert
 {
     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);
 }
@@ -457,7 +458,7 @@ bool JSDOMWindow::defineOwnProperty(JSC::JSObject* object, JSC::ExecState* exec,
 {
     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.
@@ -476,7 +477,7 @@ void JSDOMWindow::setLocation(ExecState& state, JSValue value)
     // 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;
         }
@@ -487,7 +488,7 @@ void JSDOMWindow::setLocation(ExecState& state, JSValue value)
     if (state.hadException())
         return;
 
-    if (Location* location = impl().location())
+    if (Location* location = wrapped().location())
         location->setHref(activeDOMWindow(&state), firstDOMWindow(&state), locationString);
 }
 
@@ -530,7 +531,7 @@ JSValue JSDOMWindow::open(ExecState& state)
     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());
@@ -585,7 +586,7 @@ JSValue JSDOMWindow::showModalDialog(ExecState& state)
 
     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);
     });
 
@@ -635,12 +636,12 @@ static JSValue handlePostMessage(DOMWindow& impl, ExecState& state)
 
 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();
@@ -651,7 +652,7 @@ JSValue JSDOMWindow::setTimeout(ExecState& state)
     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);
@@ -659,7 +660,7 @@ JSValue JSDOMWindow::setTimeout(ExecState& state)
 
 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();
@@ -669,7 +670,7 @@ JSValue JSDOMWindow::setInterval(ExecState& state)
         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);
@@ -677,7 +678,7 @@ JSValue JSDOMWindow::setInterval(ExecState& state)
 
 JSValue JSDOMWindow::addEventListener(ExecState& state)
 {
-    Frame* frame = impl().frame();
+    Frame* frame = wrapped().frame();
     if (!frame)
         return jsUndefined();
 
@@ -685,13 +686,13 @@ JSValue JSDOMWindow::addEventListener(ExecState& state)
     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();
 
@@ -699,7 +700,7 @@ JSValue JSDOMWindow::removeEventListener(ExecState& state)
     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();
 }
 
@@ -709,9 +710,9 @@ DOMWindow* JSDOMWindow::toWrapped(JSValue value)
         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;
 }
 
index 54cb5e5..1120668 100644 (file)
@@ -73,7 +73,7 @@ void JSDOMWindowShell::setWindow(PassRefPtr<DOMWindow> domWindow)
 {
     // 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.)
@@ -94,9 +94,9 @@ void JSDOMWindowShell::setWindow(PassRefPtr<DOMWindow> domWindow)
 // JSDOMWindow methods
 // ----
 
-DOMWindow& JSDOMWindowShell::impl() const
+DOMWindow& JSDOMWindowShell::wrapped() const
 {
-    return window()->impl();
+    return window()->wrapped();
 }
 
 // ----
index cedb59c..01f048d 100644 (file)
@@ -48,7 +48,7 @@ namespace WebCore {
 
         DECLARE_INFO;
 
-        DOMWindow& impl() const;
+        DOMWindow& wrapped() const;
 
         static JSDOMWindowShell* create(JSC::VM& vm, PassRefPtr<DOMWindow> window, JSC::Structure* structure, DOMWrapperWorld& world)
         {
index e49415e..2626f58 100644 (file)
@@ -52,16 +52,15 @@ template<typename ImplementationClass> class JSDOMWrapper : public JSDOMObject {
 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
index 7ab3245..be53ebe 100644 (file)
@@ -38,12 +38,12 @@ 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
 
index 0b0fa90..dfc8d44 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 JSValue JSDataTransfer::types(ExecState& state) const
 {
-    Vector<String> types = impl().types();
+    Vector<String> types = wrapped().types();
     return types.isEmpty() ? jsNull() : jsArray(&state, globalObject(), types);
 }
 
index 8389d61..0e9b976 100644 (file)
@@ -41,7 +41,7 @@ namespace WebCore {
 
 JSC::JSValue JSDedicatedWorkerGlobalScope::postMessage(JSC::ExecState& state)
 {
-    return handlePostMessage(state, &impl());
+    return handlePostMessage(state, &wrapped());
 }
 
 } // namespace WebCore
index 7d80f6f..73762ca 100644 (file)
@@ -136,7 +136,7 @@ static JSObject* createRotationRateObject(const DeviceMotionData::RotationRate*
 
 JSValue JSDeviceMotionEvent::acceleration(ExecState& state) const
 {
-    DeviceMotionEvent& imp = impl();
+    DeviceMotionEvent& imp = wrapped();
     if (!imp.deviceMotionData()->acceleration())
         return jsNull();
     return createAccelerationObject(imp.deviceMotionData()->acceleration(), state);
@@ -144,7 +144,7 @@ JSValue JSDeviceMotionEvent::acceleration(ExecState& state) const
 
 JSValue JSDeviceMotionEvent::accelerationIncludingGravity(ExecState& state) const
 {
-    DeviceMotionEvent& imp = impl();
+    DeviceMotionEvent& imp = wrapped();
     if (!imp.deviceMotionData()->accelerationIncludingGravity())
         return jsNull();
     return createAccelerationObject(imp.deviceMotionData()->accelerationIncludingGravity(), state);
@@ -152,7 +152,7 @@ JSValue JSDeviceMotionEvent::accelerationIncludingGravity(ExecState& state) cons
 
 JSValue JSDeviceMotionEvent::rotationRate(ExecState& state) const
 {
-    DeviceMotionEvent& imp = impl();
+    DeviceMotionEvent& imp = wrapped();
     if (!imp.deviceMotionData()->rotationRate())
         return jsNull();
     return createRotationRateObject(imp.deviceMotionData()->rotationRate(), state);
@@ -160,7 +160,7 @@ JSValue JSDeviceMotionEvent::rotationRate(ExecState& state) const
 
 JSValue JSDeviceMotionEvent::interval(ExecState&) const
 {
-    DeviceMotionEvent& imp = impl();
+    DeviceMotionEvent& imp = wrapped();
     if (!imp.deviceMotionData()->canProvideInterval())
         return jsNull();
     return jsNumber(imp.deviceMotionData()->interval());
@@ -189,7 +189,7 @@ JSValue JSDeviceMotionEvent::initDeviceMotionEvent(ExecState& state)
     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();
 }
 
index 1127052..56abd9b 100644 (file)
@@ -40,7 +40,7 @@ namespace WebCore {
 
 JSValue JSDeviceOrientationEvent::alpha(ExecState&) const
 {
-    DeviceOrientationEvent& imp = impl();
+    DeviceOrientationEvent& imp = wrapped();
     if (!imp.orientation()->canProvideAlpha())
         return jsNull();
     return jsNumber(imp.orientation()->alpha());
@@ -48,7 +48,7 @@ JSValue JSDeviceOrientationEvent::alpha(ExecState&) const
 
 JSValue JSDeviceOrientationEvent::beta(ExecState&) const
 {
-    DeviceOrientationEvent& imp = impl();
+    DeviceOrientationEvent& imp = wrapped();
     if (!imp.orientation()->canProvideBeta())
         return jsNull();
     return jsNumber(imp.orientation()->beta());
@@ -56,7 +56,7 @@ JSValue JSDeviceOrientationEvent::beta(ExecState&) const
 
 JSValue JSDeviceOrientationEvent::gamma(ExecState&) const
 {
-    DeviceOrientationEvent& imp = impl();
+    DeviceOrientationEvent& imp = wrapped();
     if (!imp.orientation()->canProvideGamma())
         return jsNull();
     return jsNumber(imp.orientation()->gamma());
@@ -65,7 +65,7 @@ JSValue JSDeviceOrientationEvent::gamma(ExecState&) const
 #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());
@@ -73,7 +73,7 @@ JSValue JSDeviceOrientationEvent::webkitCompassHeading(ExecState&) const
 
 JSValue JSDeviceOrientationEvent::webkitCompassAccuracy(ExecState&) const
 {
-    DeviceOrientationEvent& imp = impl();
+    DeviceOrientationEvent& imp = wrapped();
     if (!imp.orientation()->canProvideCompassAccuracy())
         return jsNull();
     return jsNumber(imp.orientation()->compassAccuracy());
@@ -83,7 +83,7 @@ JSValue JSDeviceOrientationEvent::webkitCompassAccuracy(ExecState&) const
 #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());
@@ -114,7 +114,7 @@ JSValue JSDeviceOrientationEvent::initDeviceOrientationEvent(ExecState& state)
     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();
 }
 
index ec0b9c2..094ce3e 100644 (file)
@@ -103,7 +103,7 @@ JSValue toJSNewlyCreated(ExecState* state, JSDOMGlobalObject* globalObject, Docu
 JSValue JSDocument::prepend(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().prepend(toNodeOrStringVector(state), ec);
+    wrapped().prepend(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -112,7 +112,7 @@ JSValue JSDocument::prepend(ExecState& state)
 JSValue JSDocument::append(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().append(toNodeOrStringVector(state), ec);
+    wrapped().append(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
index c352d5d..7da3847 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 JSValue JSDocumentFragment::prepend(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().prepend(toNodeOrStringVector(state), ec);
+    wrapped().prepend(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -46,7 +46,7 @@ JSValue JSDocumentFragment::prepend(ExecState& state)
 JSValue JSDocumentFragment::append(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().append(toNodeOrStringVector(state), ec);
+    wrapped().append(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
index 8333872..a93d671 100644 (file)
@@ -36,7 +36,7 @@ namespace WebCore {
 JSValue JSDocumentType::before(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().before(toNodeOrStringVector(state), ec);
+    wrapped().before(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -45,7 +45,7 @@ JSValue JSDocumentType::before(ExecState& state)
 JSValue JSDocumentType::after(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().after(toNodeOrStringVector(state), ec);
+    wrapped().after(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -54,7 +54,7 @@ JSValue JSDocumentType::after(ExecState& state)
 JSValue JSDocumentType::replaceWith(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().replaceWith(toNodeOrStringVector(state), ec);
+    wrapped().replaceWith(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
index fefde35..1d65242 100644 (file)
@@ -70,7 +70,7 @@ JSValue toJSNewlyCreated(ExecState*, JSDOMGlobalObject* globalObject, Element* e
 JSValue JSElement::before(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().before(toNodeOrStringVector(state), ec);
+    wrapped().before(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -79,7 +79,7 @@ JSValue JSElement::before(ExecState& state)
 JSValue JSElement::after(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().after(toNodeOrStringVector(state), ec);
+    wrapped().after(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -88,7 +88,7 @@ JSValue JSElement::after(ExecState& state)
 JSValue JSElement::replaceWith(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().replaceWith(toNodeOrStringVector(state), ec);
+    wrapped().replaceWith(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -97,7 +97,7 @@ JSValue JSElement::replaceWith(ExecState& state)
 JSValue JSElement::prepend(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().prepend(toNodeOrStringVector(state), ec);
+    wrapped().prepend(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
@@ -106,7 +106,7 @@ JSValue JSElement::prepend(ExecState& state)
 JSValue JSElement::append(ExecState& state)
 {
     ExceptionCode ec = 0;
-    impl().append(toNodeOrStringVector(state), ec);
+    wrapped().append(toNodeOrStringVector(state), ec);
     setDOMException(&state, ec);
 
     return jsUndefined();
index 51e9f0d..6099541 100644 (file)
@@ -46,7 +46,7 @@ namespace WebCore {
 
 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) \
index 280ca12..83eca94 100644 (file)
@@ -91,10 +91,10 @@ void JSEventListener::handleEvent(ScriptExecutionContext* scriptExecutionContext
 
     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;
     }
index c7c7450..e8ead1c 100644 (file)
@@ -56,7 +56,7 @@ JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, EventTarget* targ
 
 #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)
 {
index 51fbf4f..a3c09b1 100644 (file)
@@ -43,7 +43,7 @@ namespace WebCore {
 
 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());
index ebc5ba7..b01be7d 100644 (file)
@@ -114,7 +114,7 @@ JSValue JSGeolocation::getCurrentPosition(ExecState& state)
         return jsUndefined();
     ASSERT(positionOptions);
 
-    impl().getCurrentPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
+    wrapped().getCurrentPosition(positionCallback.release(), positionErrorCallback.release(), positionOptions.release());
     return jsUndefined();
 }
 
@@ -136,7 +136,7 @@ JSValue JSGeolocation::watchPosition(ExecState& state)
         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);
 }
 
index 2592f46..94bc324 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 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();
@@ -58,7 +58,7 @@ static EncodedJSValue JSC_HOST_CALL callHTMLAllCollection(ExecState* exec)
 
     // 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 ?
 
@@ -101,7 +101,7 @@ bool JSHTMLAllCollection::nameGetter(ExecState* state, PropertyName propertyName
 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)));
 }
 
index e6ec8dc..14ad95b 100644 (file)
@@ -68,7 +68,7 @@ static void get3DContextAttributes(ExecState& state, RefPtr<CanvasContextAttribu
 
 JSValue JSHTMLCanvasElement::getContext(ExecState& state)
 {
-    HTMLCanvasElement& canvas = impl();
+    HTMLCanvasElement& canvas = wrapped();
     const String& contextId = state.argument(0).toString(&state)->value(&state);
     
     RefPtr<CanvasContextAttributes> attrs;
@@ -88,7 +88,7 @@ JSValue JSHTMLCanvasElement::getContext(ExecState& state)
 
 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);
@@ -109,7 +109,7 @@ JSValue JSHTMLCanvasElement::probablySupportsContext(ExecState& state)
 
 JSValue JSHTMLCanvasElement::toDataURL(ExecState& state)
 {
-    HTMLCanvasElement& canvas = impl();
+    HTMLCanvasElement& canvas = wrapped();
     ExceptionCode ec = 0;
 
     const String& type = valueToStringWithUndefinedOrNullCheck(&state, state.argument(0));
index 7279a94..889705a 100644 (file)
@@ -42,10 +42,10 @@ namespace WebCore {
 
 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;
 
index 4317428..1912c0b 100644 (file)
@@ -81,7 +81,7 @@ bool JSHTMLDocument::getOwnPropertySlot(JSObject* object, ExecState* exec, Prope
 
 bool JSHTMLDocument::nameGetter(ExecState* exec, PropertyName propertyName, JSValue& value)
 {
-    auto& document = impl();
+    auto& document = wrapped();
 
     AtomicStringImpl* atomicPropertyName = propertyName.publicName();
     if (!atomicPropertyName || !document.hasDocumentNamedItem(*atomicPropertyName))
@@ -115,7 +115,7 @@ JSValue JSHTMLDocument::all(ExecState& state) const
     if (v)
         return v;
 
-    return toJS(&state, globalObject(), impl().all());
+    return toJS(&state, globalObject(), wrapped().all());
 }
 
 void JSHTMLDocument::setAll(ExecState& state, JSValue value)
@@ -132,7 +132,7 @@ static Document* findCallingDocument(ExecState& state)
     if (!callerFrame)
         return nullptr;
 
-    return asJSDOMWindow(functor.callerFrame()->lexicalGlobalObject())->impl().document();
+    return asJSDOMWindow(functor.callerFrame()->lexicalGlobalObject())->wrapped().document();
 }
 
 // Custom functions
@@ -141,7 +141,7 @@ JSValue JSHTMLDocument::open(ExecState& state)
 {
     // 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"));
@@ -157,10 +157,10 @@ JSValue JSHTMLDocument::open(ExecState& state)
 
     // 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;
 }
 
@@ -168,7 +168,7 @@ enum NewlineRequirement { DoNotAddNewline, DoAddNewline };
 
 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();
index 3d48df0..5836a10 100644 (file)
@@ -36,7 +36,7 @@ using namespace JSC;
 
 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);
index 8b55fa7..3afb326 100644 (file)
@@ -33,15 +33,15 @@ namespace WebCore {
 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)
index e34c035..3aed705 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 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;
index ab000f7..6fd5a97 100644 (file)
@@ -53,7 +53,7 @@ static inline bool allowSettingJavascriptURL(ExecState& state, HTMLFrameElement*
 
 void JSHTMLFrameElement::setLocation(ExecState& state, JSValue value)
 {
-    HTMLFrameElement& imp = impl();
+    HTMLFrameElement& imp = wrapped();
     String locationValue = valueToStringWithNullCheck(&state, value);
 
     if (!allowSettingJavascriptURL(state, &imp, locationValue))
index 70856e5..125aef7 100644 (file)
@@ -40,7 +40,7 @@ namespace WebCore {
 
 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;
 
index 8f42dbe..372f342 100644 (file)
@@ -35,7 +35,7 @@ namespace WebCore {
 
 JSValue JSHTMLInputElement::selectionStart(ExecState& state) const
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         return throwTypeError(&state);
 
@@ -44,7 +44,7 @@ JSValue JSHTMLInputElement::selectionStart(ExecState& state) const
 
 void JSHTMLInputElement::setSelectionStart(ExecState& state, JSValue value)
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         throwTypeError(&state);
 
@@ -53,7 +53,7 @@ void JSHTMLInputElement::setSelectionStart(ExecState& state, JSValue value)
 
 JSValue JSHTMLInputElement::selectionEnd(ExecState& state) const
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         return throwTypeError(&state);
 
@@ -62,7 +62,7 @@ JSValue JSHTMLInputElement::selectionEnd(ExecState& state) const
 
 void JSHTMLInputElement::setSelectionEnd(ExecState& state, JSValue value)
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         throwTypeError(&state);
 
@@ -71,7 +71,7 @@ void JSHTMLInputElement::setSelectionEnd(ExecState& state, JSValue value)
 
 JSValue JSHTMLInputElement::selectionDirection(ExecState& state) const
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         return throwTypeError(&state);
 
@@ -80,7 +80,7 @@ JSValue JSHTMLInputElement::selectionDirection(ExecState& state) const
 
 void JSHTMLInputElement::setSelectionDirection(ExecState& state, JSValue value)
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection()) {
         throwTypeError(&state);
         return;
@@ -91,7 +91,7 @@ void JSHTMLInputElement::setSelectionDirection(ExecState& state, JSValue value)
 
 JSValue JSHTMLInputElement::setSelectionRange(ExecState& state)
 {
-    HTMLInputElement& input = impl();
+    HTMLInputElement& input = wrapped();
     if (!input.canHaveSelection())
         return throwTypeError(&state);
 
index 4400976..2f41cfe 100644 (file)
@@ -38,9 +38,9 @@ void JSHTMLMediaElement::setController(ExecState&, JSValue value)
 {
     // 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));
 }
 
 }
index 915e028..92345e6 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 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;
 
@@ -61,13 +61,13 @@ void JSHTMLOptionsCollection::setLength(ExecState& state, JSValue value)
             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)
@@ -75,9 +75,9 @@ 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();
 }
 
index b3df13f..30e3ebb 100644 (file)
@@ -34,7 +34,7 @@ using namespace HTMLNames;
 
 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.
@@ -69,7 +69,7 @@ void selectIndexSetter(HTMLSelectElement* select, JSC::ExecState* exec, unsigned
 
 void JSHTMLSelectElement::indexSetter(JSC::ExecState* exec, unsigned index, JSC::JSValue value)
 {
-    selectIndexSetter(&impl(), exec, index, value);
+    selectIndexSetter(&wrapped(), exec, index, value);
 }
 
 }
index 1bb86df..97abe77 100644 (file)
@@ -47,7 +47,7 @@ JSValue JSHTMLTemplateElement::content(ExecState& state) const
 {
     JSLockHolder lock(&state);
 
-    DocumentFragment* content = impl().content();
+    DocumentFragment* content = wrapped().content();
 
     JSObject* wrapper = getCachedWrapper(globalObject()->world(), content);
     if (wrapper)
index a2c69eb..2bd2f6d 100644 (file)
@@ -46,7 +46,7 @@ bool JSHistory::getOwnPropertySlotDelegate(ExecState* exec, PropertyName propert
     // 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.
@@ -69,14 +69,14 @@ bool JSHistory::getOwnPropertySlotDelegate(ExecState* exec, PropertyName propert
         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;
 }
@@ -84,7 +84,7 @@ bool JSHistory::putDelegate(ExecState* exec, PropertyName, JSValue, PutPropertyS
 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);
 }
@@ -92,7 +92,7 @@ bool JSHistory::deleteProperty(JSCell* cell, ExecState* exec, PropertyName prope
 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);
 }
@@ -100,14 +100,14 @@ bool JSHistory::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned pr
 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())
@@ -121,7 +121,7 @@ JSValue JSHistory::state(ExecState& state) const
 
 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);
@@ -140,7 +140,7 @@ JSValue JSHistory::pushState(ExecState& state)
     }
 
     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();
@@ -150,7 +150,7 @@ JSValue JSHistory::pushState(ExecState& state)
 
 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);
@@ -169,7 +169,7 @@ JSValue JSHistory::replaceState(ExecState& state)
     }
 
     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();
index 9dd401d..a8cba03 100644 (file)
@@ -76,7 +76,7 @@ JSValue JSIDBDatabase::createObjectStore(ExecState& state)
     }
 
     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;
 }
@@ -113,7 +113,7 @@ JSValue JSIDBDatabase::transaction(ExecState& exec)
     }
 
     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;
 }
index 29c5ee4..6ed7845 100644 (file)
@@ -52,7 +52,7 @@ static JSValue putOrAdd(JSC::ExecState& state, bool overwrite)
         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))
@@ -64,9 +64,9 @@ static JSValue putOrAdd(JSC::ExecState& state, bool overwrite)
     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;
@@ -75,9 +75,9 @@ static JSValue putOrAdd(JSC::ExecState& state, bool overwrite)
     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;
@@ -127,7 +127,7 @@ JSValue JSIDBObjectStore::createIndex(ExecState& state)
     }
 
     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;
 }
index e26bbe7..9e69e1b 100644 (file)
@@ -107,7 +107,7 @@ JSValue JSInspectorFrontendHost::showContextMenu(ExecState& state)
 #else
     Vector<ContextMenuItem> items = menu.items();
 #endif
-    impl().showContextMenu(event, items);
+    wrapped().showContextMenu(event, items);
 #else
     UNUSED_PARAM(state);
 #endif
index 131e287..0083e0c 100644 (file)
@@ -32,7 +32,7 @@ namespace WebCore {
 
 bool JSLocation::getOwnPropertySlotDelegate(ExecState* exec, PropertyName propertyName, PropertySlot& slot)
 {
-    Frame* frame = impl().frame();
+    Frame* frame = wrapped().frame();
     if (!frame) {
         slot.setUndefined();
         return true;
@@ -73,7 +73,7 @@ bool JSLocation::getOwnPropertySlotDelegate(ExecState* exec, PropertyName proper
 
 bool JSLocation::putDelegate(ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
 {
-    Frame* frame = impl().frame();
+    Frame* frame = wrapped().frame();
     if (!frame)
         return true;
 
@@ -102,7 +102,7 @@ bool JSLocation::deleteProperty(JSCell* cell, ExecState* exec, PropertyName prop
 {
     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);
 }
@@ -111,7 +111,7 @@ bool JSLocation::deletePropertyByIndex(JSCell* cell, ExecState* exec, unsigned p
 {
     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);
 }
@@ -120,7 +120,7 @@ void JSLocation::getOwnPropertyNames(JSObject* object, ExecState* exec, Property
 {
     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);
 }
@@ -134,11 +134,11 @@ bool JSLocation::defineOwnProperty(JSObject* object, ExecState* exec, PropertyNa
 
 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&)
index 8018b26..75e9cab 100644 (file)
@@ -37,54 +37,54 @@ namespace WebCore {
 
 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
index 01965e4..375dd4b 100644 (file)
@@ -35,10 +35,10 @@ 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);
 }
 
index 44d9547..b55dc4e 100644 (file)
@@ -53,7 +53,7 @@ JSValue JSMessageEvent::data(ExecState& state) const
         ASSERT_NOT_REACHED();
     }
 
-    MessageEvent& event = impl();
+    MessageEvent& event = wrapped();
     JSValue result;
     switch (event.dataType()) {
     case MessageEvent::DataTypeScriptValue: {
@@ -78,7 +78,7 @@ JSValue JSMessageEvent::data(ExecState& state) const
 
     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
@@ -124,7 +124,7 @@ static JSC::JSValue handleInitMessageEvent(JSMessageEvent* jsEvent, JSC::ExecSta
     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();
index 239f47a..6b21244 100644 (file)
@@ -48,13 +48,13 @@ namespace WebCore {
 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)
index c468aad..deabc54 100644 (file)
@@ -40,7 +40,7 @@ using DecisionPoint = MockContentFilterSettings::DecisionPoint;
 
 JSValue JSMockContentFilterSettings::decisionPoint(ExecState&) const
 {
-    DecisionPoint decisionPoint = impl().decisionPoint();
+    DecisionPoint decisionPoint = wrapped().decisionPoint();
     switch (decisionPoint) {
     case DecisionPoint::AfterWillSendRequest:
     case DecisionPoint::AfterRedirect:
@@ -69,7 +69,7 @@ void JSMockContentFilterSettings::setDecisionPoint(ExecState& state, JSValue val
     case DecisionPoint::AfterAddData:
     case DecisionPoint::AfterFinishedAddingData:
     case DecisionPoint::Never:
-        impl().setDecisionPoint(decisionPoint);
+        wrapped().setDecisionPoint(decisionPoint);
         return;
     }
 
@@ -107,7 +107,7 @@ static inline Decision toDecision(ExecState& state, JSValue value)
 
 JSValue JSMockContentFilterSettings::decision(ExecState&) const
 {
-    return toJSValue(impl().decision());
+    return toJSValue(wrapped().decision());
 }
 
 void JSMockContentFilterSettings::setDecision(ExecState& state, JSValue value)
@@ -116,12 +116,12 @@ 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)
@@ -130,7 +130,7 @@ void JSMockContentFilterSettings::setUnblockRequestDecision(ExecState& state, JS
     if (state.hadException())
         return;
 
-    impl().setUnblockRequestDecision(unblockRequestDecision);
+    wrapped().setUnblockRequestDecision(unblockRequestDecision);
 }
 
 }; // namespace WebCore
index 3805572..c6c5724 100644 (file)
@@ -63,7 +63,7 @@ EncodedJSValue JSC_HOST_CALL constructJSMutationObserver(ExecState* exec)
 
 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)))
index 846cf8f..a31e46a 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 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;
 
index 3d5fe12..f24c055 100644 (file)
@@ -68,13 +68,13 @@ JSValue JSNavigator::webkitGetUserMedia(ExecState& state)
         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 {
index 2c1a9f8..3123c94 100644 (file)
@@ -108,13 +108,13 @@ static inline bool isReachableFromDOM(Node* node, SlotVisitor& visitor)
 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);
@@ -124,7 +124,7 @@ JSValue JSNode::insertBefore(ExecState& state)
 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);
@@ -134,7 +134,7 @@ JSValue JSNode::replaceChild(ExecState& state)
 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);
@@ -144,7 +144,7 @@ JSValue JSNode::removeChild(ExecState& state)
 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);
@@ -160,7 +160,7 @@ JSScope* JSNode::pushEventHandlerScope(ExecState* exec, JSScope* node) const
 
 void JSNode::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(impl()));
+    visitor.addOpaqueRoot(root(wrapped()));
 }
 
 static ALWAYS_INLINE JSValue createWrapperInline(ExecState* exec, JSDOMGlobalObject* globalObject, Node* node)
index 2b4040e..b3f0361 100644 (file)
@@ -27,7 +27,7 @@ namespace WebCore {
 
 void JSNodeIterator::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    if (NodeFilter* filter = impl().filter())
+    if (NodeFilter* filter = wrapped().filter())
         visitor.addOpaqueRoot(filter);
 }
 
index f7d863b..ba062be 100644 (file)
@@ -42,12 +42,12 @@ bool JSNodeListOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handl
     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;
 }
 
index 34361af..447c5d7 100644 (file)
@@ -43,7 +43,7 @@ Vector<NodeOrString> toNodeOrStringVector(ExecState& state)
     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())
index 98c8814..3adf802 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 void JSOscillatorNode::setType(ExecState& state, JSValue value)
 {
-    OscillatorNode& imp = impl();
+    OscillatorNode& imp = wrapped();
 
 #if ENABLE(LEGACY_WEB_AUDIO)
     if (value.isNumber()) {
index 86c03ed..6790f84 100644 (file)
@@ -39,7 +39,7 @@ namespace WebCore {
 
 void JSPannerNode::setPanningModel(ExecState& state, JSValue value)
 {
-    PannerNode& imp = impl();
+    PannerNode& imp = wrapped();
 
 #if ENABLE(LEGACY_WEB_AUDIO)
     if (value.isNumber()) {
@@ -63,7 +63,7 @@ void JSPannerNode::setPanningModel(ExecState& state, JSValue value)
 
 void JSPannerNode::setDistanceModel(ExecState& state, JSValue value)
 {
-    PannerNode& imp = impl();
+    PannerNode& imp = wrapped();
 
 #if ENABLE(LEGACY_WEB_AUDIO)
     if (value.isNumber()) {
index c6f61eb..830c305 100644 (file)
@@ -57,7 +57,7 @@ static JSObject* pluginScriptObjectFromPluginViewBase(HTMLPlugInElement& pluginE
 
 static JSObject* pluginScriptObjectFromPluginViewBase(JSHTMLElement* jsHTMLElement)
 {
-    HTMLElement& element = jsHTMLElement->impl();
+    HTMLElement& element = jsHTMLElement->wrapped();
     if (!is<HTMLPlugInElement>(element))
         return nullptr;
 
@@ -67,7 +67,7 @@ static JSObject* pluginScriptObjectFromPluginViewBase(JSHTMLElement* jsHTMLEleme
 
 JSObject* pluginScriptObject(ExecState* exec, JSHTMLElement* jsHTMLElement)
 {
-    HTMLElement& element = jsHTMLElement->impl();
+    HTMLElement& element = jsHTMLElement->wrapped();
     if (!is<HTMLPlugInElement>(element))
         return nullptr;
 
@@ -165,7 +165,7 @@ CallType pluginElementGetCallData(JSHTMLElement* element, CallData& callData)
         return CallTypeHost;
     }
     
-    Instance* instance = pluginInstance(element->impl());
+    Instance* instance = pluginInstance(element->wrapped());
     if (!instance || !instance->supportsInvokeDefaultMethod())
         return CallTypeNone;
     callData.native.function = callPlugin;
index 5f869a9..95a0fb7 100644 (file)
@@ -56,7 +56,7 @@ JSValue JSPopStateEvent::state(ExecState& state) const
         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.
index 9ef5e93..40e5b90 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 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;
 
index b3364d2..3eaef26 100644 (file)
@@ -47,17 +47,17 @@ JSValue JSSQLResultSetRowList::item(ExecState& state)
         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()) {
@@ -74,7 +74,7 @@ JSValue JSSQLResultSetRowList::item(ExecState& state)
             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;
index 95a8dfc..7421256 100644 (file)
@@ -109,7 +109,7 @@ JSValue JSSQLTransaction::executeSql(ExecState& state)
     }
 
     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();
index b6f0cf8..64e1128 100644 (file)
@@ -33,9 +33,9 @@ namespace WebCore {
 
 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);
@@ -47,7 +47,7 @@ JSValue JSSVGLength::value(ExecState& state) const
 
 void JSSVGLength::setValue(ExecState& state, JSValue value)
 {
-    if (impl().isReadOnly()) {
+    if (wrapped().isReadOnly()) {
         setDOMException(&state, NO_MODIFICATION_ALLOWED_ERR);
         return;
     }
@@ -57,27 +57,27 @@ void JSSVGLength::setValue(ExecState& state, JSValue value)
         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));
@@ -87,14 +87,14 @@ JSValue JSSVGLength::convertToSpecifiedUnits(ExecState& 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();
 }
 
index 585d724..b84234b 100644 (file)
@@ -41,7 +41,7 @@ bool JSStorage::nameGetter(ExecState* exec, PropertyName propertyName, JSValue&
         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())
@@ -69,7 +69,7 @@ bool JSStorage::deleteProperty(JSCell* cell, ExecState* exec, PropertyName prope
         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;
 }
@@ -83,12 +83,12 @@ void JSStorage::getOwnPropertyNames(JSObject* object, ExecState* exec, PropertyN
 {
     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;
@@ -118,7 +118,7 @@ bool JSStorage::putDelegate(ExecState* exec, PropertyName propertyName, JSValue
         return true;
 
     ExceptionCode ec = 0;
-    impl().setItem(propertyNameToString(propertyName), stringValue, ec);
+    wrapped().setItem(propertyNameToString(propertyName), stringValue, ec);
     setDOMException(exec, ec);
 
     return true;
index 0a69a2e..cb9397e 100644 (file)
@@ -32,7 +32,7 @@ namespace WebCore {
 
 void JSStyleSheet::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, StyleSheet* styleSheet)
index d1c6065..c4222a9 100644 (file)
@@ -40,7 +40,7 @@ bool JSStyleSheetList::nameGetter(ExecState* exec, PropertyName propertyName, JS
     if (propertyName.isSymbol())
         return false;
 
-    auto* item = impl().getNamedItem(propertyNameToString(propertyName));
+    auto* item = wrapped().getNamedItem(propertyNameToString(propertyName));
     if (!item)
         return false;
 
index f5ba4d3..a50f839 100644 (file)
@@ -152,7 +152,7 @@ JSValue JSSubtleCrypto::encrypt(ExecState& state)
         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();
     }
@@ -205,7 +205,7 @@ JSValue JSSubtleCrypto::decrypt(ExecState& state)
         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();
     }
@@ -257,7 +257,7 @@ JSValue JSSubtleCrypto::sign(ExecState& state)
         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();
     }
@@ -309,7 +309,7 @@ JSValue JSSubtleCrypto::verify(ExecState& state)
         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();
     }
@@ -646,7 +646,7 @@ JSValue JSSubtleCrypto::wrapKey(ExecState& state)
         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();
     }
@@ -728,7 +728,7 @@ JSValue JSSubtleCrypto::unwrapKey(ExecState& state)
         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();
     }
index 57f88b9..deb440b 100644 (file)
@@ -41,7 +41,7 @@ namespace WebCore {
 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.
@@ -84,7 +84,7 @@ JSValue toJS(ExecState*, JSDOMGlobalObject* globalObject, TextTrackCue* cue)
 
 void JSTextTrackCue::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    if (TextTrack* textTrack = impl().track())
+    if (TextTrack* textTrack = wrapped().track())
         visitor.addOpaqueRoot(root(textTrack));
 }
 
index eb19f25..7fce6ad 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 void JSTextTrack::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 void JSTextTrack::setKind(ExecState& state, JSValue value)
@@ -47,7 +47,7 @@ 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);
@@ -60,7 +60,7 @@ void JSTextTrack::setLanguage(ExecState& state, JSValue 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);
index e1b8c63..3f46f43 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 void JSTextTrackList::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(impl().element()));
+    visitor.addOpaqueRoot(root(wrapped().element()));
 }
     
 } // namespace WebCore
index 9751467..9a9436a 100644 (file)
@@ -44,11 +44,11 @@ TrackBase* toTrack(JSValue value)
 
     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;
 }
index f51d3b9..eab6ff2 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 JSValue JSTrackEvent::track(ExecState& state) const
 {
-    TrackBase* track = impl().track();
+    TrackBase* track = wrapped().track();
     if (!track)
         return jsNull();
 
index c1e681d..2be08a9 100644 (file)
@@ -27,7 +27,7 @@ namespace WebCore {
 
 void JSTreeWalker::visitAdditionalChildren(JSC::SlotVisitor& visitor)
 {
-    if (NodeFilter* filter = impl().filter())
+    if (NodeFilter* filter = wrapped().filter())
         visitor.addOpaqueRoot(filter);
 }
 
index 8fc6ef8..adf4936 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 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;
     }
index 6f0af5a..d828e12 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 void JSVideoTrack::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(&impl()));
+    visitor.addOpaqueRoot(root(&wrapped()));
 }
 
 void JSVideoTrack::setKind(ExecState& state, JSValue value)
@@ -46,7 +46,7 @@ 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);
@@ -59,7 +59,7 @@ void JSVideoTrack::setLanguage(ExecState& state, JSValue 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);
index 66d7bea..a2a3618 100644 (file)
@@ -37,7 +37,7 @@ namespace WebCore {
 
 void JSVideoTrackList::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(root(impl().element()));
+    visitor.addOpaqueRoot(root(wrapped().element()));
 }
 
 } // namespace WebCore
index 99ff703..7c4ec08 100644 (file)
@@ -67,7 +67,7 @@ static JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, const WebG
 
 void JSWebGL2RenderingContext::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(&impl());
+    visitor.addOpaqueRoot(&wrapped());
 }
 
 JSValue JSWebGL2RenderingContext::getInternalformatParameter(ExecState* exec)
@@ -99,7 +99,7 @@ JSValue JSWebGL2RenderingContext::getIndexedParameter(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();
index 4e4e5ca..831cf59 100644 (file)
@@ -174,7 +174,7 @@ static JSValue getObjectParameter(JSWebGLRenderingContextBase* obj, ExecState& s
         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();
@@ -265,7 +265,7 @@ static JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, WebGLExten
 
 void JSWebGLRenderingContextBase::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(&impl());
+    visitor.addOpaqueRoot(&wrapped());
 }
 
 JSValue JSWebGLRenderingContextBase::getAttachedShaders(ExecState& state)
@@ -273,7 +273,7 @@ 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);
@@ -296,7 +296,7 @@ JSValue JSWebGLRenderingContextBase::getExtension(ExecState& 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();
@@ -315,7 +315,7 @@ JSValue JSWebGLRenderingContextBase::getFramebufferAttachmentParameter(ExecState
         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();
@@ -339,7 +339,7 @@ JSValue JSWebGLRenderingContextBase::getParameter(ExecState& state)
         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();
@@ -357,7 +357,7 @@ JSValue JSWebGLRenderingContextBase::getProgramParameter(ExecState& state)
         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);
@@ -383,7 +383,7 @@ JSValue JSWebGLRenderingContextBase::getShaderParameter(ExecState& 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));
@@ -400,7 +400,7 @@ JSValue JSWebGLRenderingContextBase::getShaderParameter(ExecState& state)
 
 JSValue JSWebGLRenderingContextBase::getSupportedExtensions(ExecState& state)
 {
-    WebGLRenderingContextBase& context = impl();
+    WebGLRenderingContextBase& context = wrapped();
     if (context.isContextLost())
         return jsNull();
     Vector<String> value = context.getSupportedExtensions();
@@ -421,7 +421,7 @@ JSValue JSWebGLRenderingContextBase::getUniform(ExecState& state)
         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);
@@ -691,77 +691,77 @@ static JSC::JSValue dataFunctionMatrix(DataFunctionMatrixToCall f, JSC::ExecStat
 
 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
index b6d39ac..ede5bb9 100644 (file)
@@ -38,7 +38,7 @@ namespace WebCore {
 
 void JSWebGLRenderingContext::visitAdditionalChildren(SlotVisitor& visitor)
 {
-    visitor.addOpaqueRoot(&impl());
+    visitor.addOpaqueRoot(&wrapped());
 }
 
 } // namespace WebCore
index 05a9e70..0efbd12 100644 (file)
@@ -42,7 +42,7 @@ namespace WebCore {
 
 JSC::JSValue JSWorker::postMessage(JSC::ExecState& state)
 {
-    return handlePostMessage(state, &impl());
+    return handlePostMessage(state, &wrapped());
 }
 
 EncodedJSValue JSC_HOST_CALL constructJSWorker(ExecState* exec)
@@ -57,7 +57,7 @@ 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());
index acd617e..58da75e 100644 (file)
@@ -47,7 +47,7 @@ const GlobalObjectMethodTable JSWorkerGlobalScopeBase::s_globalObjectMethodTable
 
 JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerGlobalScope> impl)
     : JSDOMGlobalObject(vm, structure, &normalWorld(vm), &s_globalObjectMethodTable)
-    , m_impl(impl)
+    , m_wrapped(impl)
 {
 }
 
@@ -64,7 +64,7 @@ void JSWorkerGlobalScopeBase::destroy(JSCell* cell)
 
 ScriptExecutionContext* JSWorkerGlobalScopeBase::scriptExecutionContext() const
 {
-    return m_impl.get();
+    return m_wrapped.get();
 }
 
 bool JSWorkerGlobalScopeBase::allowsAccessFrom(const JSGlobalObject* object, ExecState* exec)
index 031530e..2de8cc4 100644 (file)
@@ -42,7 +42,7 @@ namespace WebCore {
 
         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)
@@ -65,7 +65,7 @@ namespace WebCore {
         void finishCreation(JSC::VM&);
 
     private:
-        RefPtr<WorkerGlobalScope> m_impl;
+        RefPtr<WorkerGlobalScope> m_wrapped;
     };
 
     // Returns a JSWorkerGlobalScope or jsNull()
index 12898cc..a945773 100644 (file)
@@ -53,9 +53,9 @@ namespace WebCore {
 
 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);
 }
 
@@ -80,31 +80,31 @@ JSValue JSWorkerGlobalScope::importScripts(ExecState& state)
     }
     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
index 915b062..89b3bcf 100644 (file)
@@ -58,16 +58,16 @@ 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);
 }
 
@@ -77,7 +77,7 @@ JSValue JSXMLHttpRequest::open(ExecState& state)
     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;
@@ -88,13 +88,13 @@ JSValue JSXMLHttpRequest::open(ExecState& state)
 
             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();
@@ -138,30 +138,30 @@ private:
 
 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();
 }
@@ -169,7 +169,7 @@ JSValue JSXMLHttpRequest::send(ExecState& state)
 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();
@@ -180,25 +180,25 @@ JSValue JSXMLHttpRequest::responseText(ExecState& state) const
 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;
         }
@@ -206,7 +206,7 @@ JSValue JSXMLHttpRequest::response(ExecState& state) const
     case XMLHttpRequest::ResponseTypeDocument:
         {
             ExceptionCode ec = 0;
-            Document* document = impl().responseXML(ec);
+            Document* document = wrapped().responseXML(ec);
             if (ec) {
                 setDOMException(&state, ec);
                 return jsUndefined();
@@ -215,10 +215,10 @@ JSValue JSXMLHttpRequest::response(ExecState& state) const
         }
 
     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();
index 2416d67..5d3486e 100644 (file)
@@ -33,7 +33,7 @@ namespace WebCore {
 
 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()));
index 331b9f1..152b873 100644 (file)
@@ -53,7 +53,7 @@ JSValue JSXSLTProcessor::setParameter(ExecState& state)
     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();
 }
 
@@ -63,7 +63,7 @@ JSValue JSXSLTProcessor::getParameter(ExecState& state)
         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);
 }
 
@@ -73,7 +73,7 @@ JSValue JSXSLTProcessor::removeParameter(ExecState& state)
         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();
 }
 
index 058c91c..febd290 100644 (file)
@@ -117,7 +117,7 @@ void ScheduledAction::execute(Document& document)
     if (!window)
         return;
 
-    RefPtr<Frame> frame = window->impl().frame();
+    RefPtr<Frame> frame = window->wrapped().frame();
     if (!frame || !frame->script().canExecuteScripts(AboutToExecuteScript))
         return;
 
index 0430ba7..1cccf8a 100644 (file)
@@ -86,7 +86,7 @@ void ScriptCachedFrameData::restore(Frame& frame)
             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);
index b161e66..629c421 100644 (file)
@@ -208,7 +208,7 @@ void ScriptController::clearWindowShell(DOMWindow* newDOMWindow, bool goingIntoP
     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.
@@ -391,7 +391,7 @@ void ScriptController::collectIsolatedContexts(Vector<std::pair<JSC::ExecState*,
 {
     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));
     }
 }
index ae3c729..26cab3c 100644 (file)
@@ -52,7 +52,7 @@ DOMWindow* domWindowFromExecState(JSC::ExecState* scriptState)
     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)
index 63f6b55..4352eb4 100644 (file)
@@ -571,7 +571,7 @@ id <DOMEventTarget> kit(WebCore::EventTarget* eventTarget)
     if (!object->inherits(JSNode::info()))
         return nil;
 
-    WebCore::Node& node = jsCast<JSNode*>(object)->impl();
+    WebCore::Node& node = jsCast<JSNode*>(object)->wrapped();
     return kit(&node);
 }
 
index fb17f0d..1c3c7cf 100644 (file)
@@ -91,7 +91,7 @@ static inline id createDOMWrapper(JSC::JSObject* object)
 {
     #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)
@@ -121,10 +121,10 @@ static inline id createDOMWrapper(JSC::JSObject* object)
     #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;
 }
index 57f3202..fb6df25 100644 (file)
@@ -252,7 +252,7 @@ static void addExceptionToConsole(ExecState* exec)
     // 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
@@ -541,7 +541,7 @@ static void getListFromNSArray(ExecState *exec, NSArray *array, RootObject* root
 
         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);
index 8861927..b6e8b2f 100644 (file)
@@ -421,7 +421,7 @@ sub GenerateGetOwnPropertySlotBody
         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
@@ -1188,9 +1188,9 @@ sub GenerateHeader
 
     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");
         }
     }
@@ -1759,9 +1759,9 @@ sub GetIndexedGetterExpression
 {
     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
@@ -2228,7 +2228,7 @@ 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"}) {
@@ -2328,9 +2328,9 @@ sub GenerateImplementation
                     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");
                 }
@@ -2343,7 +2343,7 @@ sub GenerateImplementation
             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");
             }
 
@@ -2361,7 +2361,7 @@ sub GenerateImplementation
                 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;
@@ -2385,7 +2385,7 @@ sub GenerateImplementation
                 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"
@@ -2393,7 +2393,7 @@ sub GenerateImplementation
                     : "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$//;
@@ -2421,9 +2421,9 @@ sub GenerateImplementation
                 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 {
@@ -2446,7 +2446,7 @@ sub GenerateImplementation
 
                     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");
@@ -2472,10 +2472,10 @@ sub GenerateImplementation
                 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");
                 }
 
@@ -2517,7 +2517,7 @@ sub GenerateImplementation
 
             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");
             }
 
@@ -2549,9 +2549,9 @@ sub GenerateImplementation
             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");
             }
@@ -2661,9 +2661,9 @@ sub GenerateImplementation
             }
             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");
             }
@@ -2676,13 +2676,13 @@ sub GenerateImplementation
                 # 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;
@@ -2705,18 +2705,18 @@ sub GenerateImplementation
                         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;
@@ -2823,13 +2823,13 @@ sub GenerateImplementation
         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");
         }
@@ -2930,14 +2930,14 @@ sub GenerateImplementation
 
                 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");
@@ -2991,11 +2991,11 @@ sub GenerateImplementation
         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}) {
@@ -3037,7 +3037,7 @@ sub GenerateImplementation
         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")) {
@@ -3045,7 +3045,7 @@ sub GenerateImplementation
                 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")) {
@@ -3064,34 +3064,34 @@ sub GenerateImplementation
 
             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);
@@ -3111,7 +3111,7 @@ sub GenerateImplementation
         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");
     }
 
@@ -3206,7 +3206,7 @@ END
         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");
     }
@@ -4255,7 +4255,7 @@ sub NativeToJSValue
             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, /;
index 99e122d..b0d12c3 100644 (file)
@@ -149,9 +149,9 @@ EncodedJSValue jsTestActiveDOMObjectExcitingAttr(ExecState* state, JSObject* slo
     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);
 }
@@ -162,7 +162,7 @@ EncodedJSValue jsTestActiveDOMObjectConstructor(ExecState* state, JSObject*, Enc
     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()));
 }
@@ -179,9 +179,9 @@ EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionExcitingFunct
     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));
@@ -198,7 +198,7 @@ EncodedJSValue JSC_HOST_CALL jsTestActiveDOMObjectPrototypeFunctionPostMessage(E
     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);
@@ -219,7 +219,7 @@ void JSTestActiveDOMObjectOwner::finalize(JSC::Handle<JSC::Unknown> handle, void
 {
     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)
@@ -269,7 +269,7 @@ JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, TestActiveDO
 TestActiveDOMObject* JSTestActiveDOMObject::toWrapped(JSC::JSValue value)
 {
     if (auto* wrapper = jsDynamicCast<JSTestActiveDOMObject*>(value))
-        return &wrapper->impl();
+        return &wrapper->wrapped();
     return nullptr;
 }
 
index 09d6aab..caadbc1 100644 (file)
@@ -134,7 +134,7 @@ void JSTestCustomConstructorWithNoInterfaceObjectOwner::finalize(JSC::Handle<JSC
 {
     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)
@@ -184,7 +184,7 @@ JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, TestCustomCo
 TestCustomConstructorWithNoInterfaceObject* JSTestCustomConstructorWithNoInterfaceObject::toWrapped(JSC::JSValue value)
 {
     if (auto* wrapper = jsDynamicCast<JSTestCustomConstructorWithNoInterfaceObject*>(value))
-        return &wrapper->impl();
+        return &wrapper->wrapped();
     return nullptr;
 }
 
index 37c1e58..994f366 100644 (file)
@@ -183,7 +183,7 @@ EncodedJSValue JSC_HOST_CALL jsTestCustomNamedGetterPrototypeFunctionAnotherFunc
     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);
@@ -204,7 +204,7 @@ void JSTestCustomNamedGetterOwner::finalize(JSC::Handle<JSC::Unknown> handle, vo
 {
     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)
@@ -254,7 +254,7 @@ JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, TestCustomNa
 TestCustomNamedGetter* JSTestCustomNamedGetter::toWrapped(JSC::JSValue value)
 {
     if (auto* wrapper = jsDynamicCast<JSTestCustomNamedGetter*>(value))
-        return &wrapper->impl();
+        return &wrapper->wrapped();
     return nullptr;
 }
 
index 1a9fea7..8df92d9 100644 (file)
@@ -167,7 +167,7 @@ EncodedJSValue jsTestEventConstructorAttr1(ExecState* state, JSObject* slotBase,
             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);
 }
@@ -184,7 +184,7 @@ EncodedJSValue jsTestEventConstructorAttr2(ExecState* state, JSObject* slotBase,
             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);
 }
@@ -214,7 +214,7 @@ void JSTestEventConstructorOwner::finalize(JSC::Handle<JSC::Unknown> handle, voi
 {
     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)
@@ -264,7 +264,7 @@ JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject* globalObject, TestEventCon
 TestEventConstructor* JSTestEventConstructor::toWrapped(JSC::JSValue value)
 {
     if (auto* wrapper = jsDynamicCast<JSTestEventConstructor*>(value))
-        return &wrapper->impl();
+        return &wrapper->wrapped();
     return nullptr;
 }
 
index 978d92a..4edeac8 100644 (file)
@@ -145,10 +145,10 @@ bool JSTestEventTarget::getOwnPropertySlot(JSObject* object, ExecState* state, P
     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))
@@ -171,9 +171,9 @@ bool JSTestEventTarget::getOwnPropertySlotByIndex(JSObject* object, ExecState* s
 {
     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);
@@ -191,10 +191,10 @@ void JSTestEventTarget::getOwnPropertyNames(JSObject* object, ExecState* state,
 {
     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);
@@ -212,7 +212,7 @@ EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionItem(ExecState* s
     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);
@@ -229,7 +229,7 @@ EncodedJSValue JSC_HOST_CALL jsTestEventTargetPrototypeFunctionAddEventListener(
     if (UNLIKELY(!castedThis))
         return throwThisTypeError(*state, "TestEventTarget", "addEventListener");
     ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestEventTarget::info());
-    auto& impl = castedThis->impl();