WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
WIP Patch
136839_generate_cast_helpers_wip1.patch (text/plain), 77.28 KB, created by
Chris Dumez
on 2014-09-16 16:46:48 PDT
(
hide
)
Description:
WIP Patch
Filename:
MIME Type:
Creator:
Chris Dumez
Created:
2014-09-16 16:46:48 PDT
Size:
77.28 KB
patch
obsolete
>diff --git a/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm b/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm >index 369abb1..3dbfde2 100644 >--- a/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm >+++ b/Source/WebCore/Modules/plugins/QuickTimePluginReplacement.mm >@@ -213,7 +213,7 @@ bool QuickTimePluginReplacement::installReplacement(ShadowRoot* root) > // Get the <video> created to replace the plug-in. > JSC::JSValue value = replacement.get(exec, JSC::Identifier(exec, "video")); > if (!exec->hadException() && !value.isUndefinedOrNull()) >- m_mediaElement = toHTMLVideoElement(value); >+ m_mediaElement = JSHTMLVideoElement::toImpl(value); > > if (!m_mediaElement) { > LOG(Plugins, "%p - Failed to find <video> element created by QuickTime plugin replacement script.", this); >diff --git a/Source/WebCore/WebCore.exp.in b/Source/WebCore/WebCore.exp.in >index 94d9b53..5e19f19 100644 >--- a/Source/WebCore/WebCore.exp.in >+++ b/Source/WebCore/WebCore.exp.in >@@ -77,6 +77,7 @@ __ZN7WebCore10FloatPointC1ERK7CGPoint > __ZN7WebCore10FloatPointC1ERKNS_8IntPointE > __ZN7WebCore10FontGlyphs15releaseFontDataEv > __ZN7WebCore10JSDocument6s_infoE >+__ZN7WebCore10JSDocument6toImplEN3JSC7JSValueE > __ZN7WebCore10LayoutRect5scaleEf > __ZN7WebCore10LayoutRect5uniteERKS0_ > __ZN7WebCore10LayoutRectC1ERKNS_9FloatRectE >@@ -124,7 +125,6 @@ __ZN7WebCore10TimeRangesC1Edd > __ZN7WebCore10deleteFileERKN3WTF6StringE > __ZN7WebCore10fileExistsERKN3WTF6StringE > __ZN7WebCore10setCookiesEPNS_8DocumentERKNS_3URLERKN3WTF6StringE >-__ZN7WebCore10toDocumentEN3JSC7JSValueE > __ZN7WebCore11BitmapImage13getCGImageRefEv > __ZN7WebCore11BitmapImageC1EP7CGImagePNS_13ImageObserverE > __ZN7WebCore11BitmapImageC1EPNS_13ImageObserverE >@@ -667,7 +667,6 @@ __ZN7WebCore15originalURLDataEP5NSURL > __ZN7WebCore15pathGetFileNameERKN3WTF6StringE > __ZN7WebCore15reportExceptionEPN3JSC9ExecStateENS0_7JSValueEPNS_12CachedScriptE > __ZN7WebCore15setDOMExceptionEPN3JSC9ExecStateEi >-__ZN7WebCore15toDOMStringListEPN3JSC9ExecStateENS0_7JSValueE > __ZN7WebCore15visitedLinkHashEPKtj > __ZN7WebCore15visitedLinkHashERKN3WTF6StringE > __ZN7WebCore16ApplicationCache18diskUsageForOriginEPNS_14SecurityOriginE >@@ -1242,6 +1241,7 @@ __ZN7WebCore6Editor7commandERKN3WTF6StringE > __ZN7WebCore6Editor7copyURLERKNS_3URLERKN3WTF6StringE > __ZN7WebCore6Editor7outdentEv > __ZN7WebCore6JSNode6s_infoE >+__ZN7WebCore6JSNode6toImplEN3JSC7JSValueE > __ZN7WebCore6LengthC1EN3WTF7PassRefINS_16CalculationValueEEE > __ZN7WebCore6Region21updateBoundsFromShapeEv > __ZN7WebCore6Region5uniteERKS0_ >@@ -1259,7 +1259,6 @@ __ZN7WebCore6Widget8setFocusEb > __ZN7WebCore6Widget9setParentEPNS_10ScrollViewE > __ZN7WebCore6WidgetD2Ev > __ZN7WebCore6toInt8EPN3JSC9ExecStateENS0_7JSValueENS_30IntegerConversionConfigurationE >-__ZN7WebCore6toNodeEN3JSC7JSValueE > __ZN7WebCore7Element12setAttributeERKN3WTF12AtomicStringES4_Ri > __ZN7WebCore7Element12setAttributeERKNS_13QualifiedNameERKN3WTF12AtomicStringE > __ZN7WebCore7Element16createShadowRootERi >@@ -1273,6 +1272,7 @@ __ZN7WebCore7IntRectC1ERKNS_10LayoutRectE > __ZN7WebCore7IntRectC1ERKNS_9FloatRectE > __ZN7WebCore7IntSizeC1ERK6CGSize > __ZN7WebCore7IntSizeC1ERKNS_9FloatSizeE >+__ZN7WebCore7JSRange6toImplEN3JSC7JSValueE > __ZN7WebCore7TextRun19allowsRoundingHacksEv > __ZN7WebCore7TextRun21s_allowsRoundingHacksE > __ZN7WebCore7TextRun22setAllowsRoundingHacksEb >@@ -1281,7 +1281,6 @@ __ZN7WebCore7jsArrayEPN3JSC9ExecStateEPNS_17JSDOMGlobalObjectEN3WTF10PassRefPtrI > __ZN7WebCore7makeRGBEiii > __ZN7WebCore7toInt16EPN3JSC9ExecStateENS0_7JSValueENS_30IntegerConversionConfigurationE > __ZN7WebCore7toInt64EPN3JSC9ExecStateENS0_7JSValueENS_30IntegerConversionConfigurationE >-__ZN7WebCore7toRangeEN3JSC7JSValueE > __ZN7WebCore7toUInt8EPN3JSC9ExecStateENS0_7JSValueENS_30IntegerConversionConfigurationE > __ZN7WebCore8BlobData14setContentTypeERKN3WTF6StringE > __ZN7WebCore8CSSValue7destroyEv >@@ -1495,6 +1494,7 @@ __ZN7WebCore9InlineBox14dirtyLineBoxesEv > __ZN7WebCore9InlineBox14selectionStateEv > __ZN7WebCore9InlineBox16placeEllipsisBoxEbfffRfRb > __ZN7WebCore9JSElement6s_infoE >+__ZN7WebCore9JSElement6toImplEN3JSC7JSValueE > __ZN7WebCore9LayerPoolC1Ev > __ZN7WebCore9LayerPoolD1Ev > __ZN7WebCore9PageCache11setCapacityEi >@@ -1535,7 +1535,6 @@ __ZN7WebCore9fontCacheEv > __ZN7WebCore9makeRangeERKNS_15VisiblePositionES2_ > __ZN7WebCore9pageCacheEv > __ZN7WebCore9plainTextEPKNS_5RangeEtb >-__ZN7WebCore9toElementEN3JSC7JSValueE > __ZN7WebCore9unionRectERKN3WTF6VectorINS_9FloatRectELm0ENS0_15CrashOnOverflowEEE > __ZNK3JSC8Bindings10RootObject12globalObjectEv > __ZNK3WTF6String14createCFStringEv >@@ -3258,7 +3257,7 @@ __ZN7WebCore12Notification18dispatchErrorEventEv > __ZN7WebCore12Notification8finalizeEv > __ZN7WebCore12NotificationC1Ev > __ZN7WebCore12NotificationD1Ev >-__ZN7WebCore14toNotificationEN3JSC7JSValueE >+__ZN7WebCore14JSNotification6toImplEN3JSC7JSValueE > __ZN7WebCore19provideNotificationEPNS_4PageEPNS_18NotificationClientE > __ZN7WebCore22NotificationController10clientFromEPNS_4PageE > #endif >@@ -3370,7 +3369,7 @@ __ZN7WebCore12EventHandler16handleTouchEventERKNS_18PlatformTouchEventE > #if ENABLE(VIDEO) > .objc_class_name_WebVideoFullscreenController > __ZN7WebCore10TimeRanges3addEdd >-__ZN7WebCore12toTimeRangesEN3JSC7JSValueE >+__ZN7WebCore12JSTimeRanges6toImplEN3JSC7JSValueE > __ZN7WebCore16HTMLMediaElement12endScrubbingEv > __ZN7WebCore16HTMLMediaElement14beginScrubbingEv > __ZN7WebCore16HTMLMediaElement14exitFullscreenEv >diff --git a/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp b/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp >index e6b5064..abb0080 100644 >--- a/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp >+++ b/Source/WebCore/bindings/js/JSAudioBufferSourceNodeCustom.cpp >@@ -41,7 +41,7 @@ namespace WebCore { > > void JSAudioBufferSourceNode::setBuffer(ExecState* exec, JSValue value) > { >- AudioBuffer* buffer = toAudioBuffer(value); >+ AudioBuffer* buffer = JSAudioBuffer::toImpl(value); > if (!buffer) { > exec->vm().throwException(exec, createTypeError(exec, "Value is not of type AudioBuffer")); > return; >diff --git a/Source/WebCore/bindings/js/JSBlobCustom.cpp b/Source/WebCore/bindings/js/JSBlobCustom.cpp >index 293afb3..06a9124 100644 >--- a/Source/WebCore/bindings/js/JSBlobCustom.cpp >+++ b/Source/WebCore/bindings/js/JSBlobCustom.cpp >@@ -121,7 +121,7 @@ EncodedJSValue JSC_HOST_CALL constructJSBlob(ExecState* exec) > blobBuilder.append(arrayBuffer); > else if (RefPtr<ArrayBufferView> arrayBufferView = toArrayBufferView(item)) > blobBuilder.append(arrayBufferView.release()); >- else if (Blob* blob = toBlob(item)) >+ else if (Blob* blob = JSBlob::toImpl(item)) > blobBuilder.append(blob); > else { > String string = item.toString(exec)->value(exec); >diff --git a/Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp b/Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp >index 79548e8..f2ffc17 100644 >--- a/Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp >+++ b/Source/WebCore/bindings/js/JSCommandLineAPIHostCustom.cpp >@@ -113,7 +113,7 @@ JSValue JSCommandLineAPIHost::getEventListeners(ExecState* exec) > if (!value.isObject() || value.isNull()) > return jsUndefined(); > >- Node* node = toNode(value); >+ Node* node = JSNode::toImpl(value); > if (!node) > return jsUndefined(); > >@@ -149,7 +149,7 @@ JSValue JSCommandLineAPIHost::databaseId(ExecState* exec) > return jsUndefined(); > > #if ENABLE(SQL_DATABASE) >- Database* database = toDatabase(exec->uncheckedArgument(0)); >+ Database* database = JSDatabase::toImpl(exec->uncheckedArgument(0)); > if (database) > return jsStringWithCache(exec, impl().databaseIdImpl(database)); > #endif >@@ -162,7 +162,7 @@ JSValue JSCommandLineAPIHost::storageId(ExecState* exec) > if (exec->argumentCount() < 1) > return jsUndefined(); > >- Storage* storage = toStorage(exec->uncheckedArgument(0)); >+ Storage* storage = JSStorage::toImpl(exec->uncheckedArgument(0)); > if (storage) > return jsStringWithCache(exec, impl().storageIdImpl(storage)); > >diff --git a/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp b/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp >index 31b180b..e9e0bb7 100644 >--- a/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp >+++ b/Source/WebCore/bindings/js/JSDOMFormDataCustom.cpp >@@ -41,9 +41,9 @@ using namespace JSC; > > namespace WebCore { > >-static HTMLFormElement* toHTMLFormElement(JSC::JSValue value) >+static HTMLFormElement* toHTMLFormElementOrNull(JSC::JSValue value) > { >- return value.inherits(JSHTMLFormElement::info()) ? &jsCast<JSHTMLFormElement*>(asObject(value))->impl() : 0; >+ return value.inherits(JSHTMLFormElement::info()) ? &jsCast<JSHTMLFormElement*>(asObject(value))->impl() : nullptr; > } > > EncodedJSValue JSC_HOST_CALL constructJSDOMFormData(ExecState* exec) >@@ -52,7 +52,7 @@ EncodedJSValue JSC_HOST_CALL constructJSDOMFormData(ExecState* exec) > > HTMLFormElement* form = 0; > if (exec->argumentCount() > 0) >- form = toHTMLFormElement(exec->argument(0)); >+ form = toHTMLFormElementOrNull(exec->argument(0)); > RefPtr<DOMFormData> domFormData = DOMFormData::create(form); > return JSValue::encode(asObject(toJS(exec, jsConstructor->globalObject(), domFormData.get()))); > } >@@ -66,7 +66,7 @@ JSValue JSDOMFormData::append(ExecState* exec) > String filename; > if (exec->argumentCount() >= 3 && !exec->argument(2).isUndefinedOrNull()) > filename = exec->argument(2).toString(exec)->value(exec); >- impl().append(name, toBlob(value), filename); >+ impl().append(name, JSBlob::toImpl(value), filename); > } else > impl().append(name, value.toString(exec)->value(exec)); > } >diff --git a/Source/WebCore/bindings/js/JSDOMStringListCustom.cpp b/Source/WebCore/bindings/js/JSDOMStringListCustom.cpp >index 23337b2..ad3ac44 100644 >--- a/Source/WebCore/bindings/js/JSDOMStringListCustom.cpp >+++ b/Source/WebCore/bindings/js/JSDOMStringListCustom.cpp >@@ -25,7 +25,7 @@ using namespace JSC; > > namespace WebCore { > >-PassRefPtr<DOMStringList> toDOMStringList(ExecState* exec, JSValue value) >+PassRefPtr<DOMStringList> JSDOMStringList::toImpl(ExecState* exec, JSValue value) > { > if (value.inherits(JSDOMStringList::info())) > return &jsCast<JSDOMStringList*>(asObject(value))->impl(); >diff --git a/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp b/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp >index 5f3b517..e84d3ed 100644 >--- a/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp >+++ b/Source/WebCore/bindings/js/JSDOMWindowCustom.cpp >@@ -684,7 +684,7 @@ JSValue JSDOMWindow::removeEventListener(ExecState* exec) > return jsUndefined(); > } > >-DOMWindow* toDOMWindow(JSValue value) >+DOMWindow* JSDOMWindow::toImpl(JSValue value) > { > if (!value.isObject()) > return 0; >diff --git a/Source/WebCore/bindings/js/JSDictionary.cpp b/Source/WebCore/bindings/js/JSDictionary.cpp >index 1af026d..42da729 100644 >--- a/Source/WebCore/bindings/js/JSDictionary.cpp >+++ b/Source/WebCore/bindings/js/JSDictionary.cpp >@@ -155,22 +155,22 @@ void JSDictionary::convertValue(ExecState* exec, JSValue value, RefPtr<Serialize > > void JSDictionary::convertValue(ExecState*, JSValue value, RefPtr<DOMWindow>& result) > { >- result = toDOMWindow(value); >+ result = JSDOMWindow::toImpl(value); > } > > void JSDictionary::convertValue(ExecState*, JSValue value, RefPtr<EventTarget>& result) > { >- result = toEventTarget(value); >+ result = JSEventTarget::toImpl(value); > } > > void JSDictionary::convertValue(ExecState*, JSValue value, RefPtr<Node>& result) > { >- result = toNode(value); >+ result = JSNode::toImpl(value); > } > > void JSDictionary::convertValue(ExecState*, JSValue value, RefPtr<Storage>& result) > { >- result = toStorage(value); >+ result = JSStorage::toImpl(value); > } > > void JSDictionary::convertValue(ExecState* exec, JSValue value, MessagePortArray& result) >@@ -222,7 +222,7 @@ void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<Uint > #if ENABLE(ENCRYPTED_MEDIA) > void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<MediaKeyError>& result) > { >- result = toMediaKeyError(value); >+ result = JSMediaKeyError::toImpl(value); > } > #endif > >@@ -241,12 +241,12 @@ void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<Medi > #if ENABLE(FONT_LOAD_EVENTS) > void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<CSSFontFaceRule>& result) > { >- result = toCSSFontFaceRule(value); >+ result = JSCSSFontFaceRule::toImpl(value); > } > > void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<DOMError>& result) > { >- result = toDOMError(value); >+ result = JSDOMError::toImpl(value); > } > > void JSDictionary::convertValue(JSC::ExecState* exec, JSC::JSValue value, RefPtr<VoidCallback>& result) >@@ -261,7 +261,7 @@ void JSDictionary::convertValue(JSC::ExecState* exec, JSC::JSValue value, RefPtr > #if ENABLE(GAMEPAD) > void JSDictionary::convertValue(JSC::ExecState*, JSC::JSValue value, RefPtr<Gamepad>& result) > { >- result = toGamepad(value); >+ result = JSGamepad::toImpl(value); > } > #endif > >diff --git a/Source/WebCore/bindings/js/JSEventTargetCustom.cpp b/Source/WebCore/bindings/js/JSEventTargetCustom.cpp >index 5210f12..f54a596 100644 >--- a/Source/WebCore/bindings/js/JSEventTargetCustom.cpp >+++ b/Source/WebCore/bindings/js/JSEventTargetCustom.cpp >@@ -58,7 +58,7 @@ JSValue toJS(ExecState* exec, JSDOMGlobalObject* globalObject, EventTarget* targ > if (value.inherits(JS##interfaceName::info())) \ > return &jsCast<JS##interfaceName*>(asObject(value))->impl(); > >-EventTarget* toEventTarget(JSC::JSValue value) >+EventTarget* JSEventTarget::toImpl(JSC::JSValue value) > { > TRY_TO_UNWRAP_WITH_INTERFACE(DOMWindowShell) > TRY_TO_UNWRAP_WITH_INTERFACE(EventTarget) >diff --git a/Source/WebCore/bindings/js/JSExceptionBase.cpp b/Source/WebCore/bindings/js/JSExceptionBase.cpp >index bde25b0..f6262d1 100644 >--- a/Source/WebCore/bindings/js/JSExceptionBase.cpp >+++ b/Source/WebCore/bindings/js/JSExceptionBase.cpp >@@ -41,20 +41,20 @@ namespace WebCore { > > ExceptionBase* toExceptionBase(JSC::JSValue value) > { >- if (DOMCoreException* domException = toDOMCoreException(value)) >+ if (DOMCoreException* domException = JSDOMCoreException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(domException); >- if (RangeException* rangeException = toRangeException(value)) >+ if (RangeException* rangeException = JSRangeException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(rangeException); >- if (EventException* eventException = toEventException(value)) >+ if (EventException* eventException = JSEventException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(eventException); >- if (XMLHttpRequestException* xmlHttpException = toXMLHttpRequestException(value)) >+ if (XMLHttpRequestException* xmlHttpException = JSXMLHttpRequestException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(xmlHttpException); >- if (SVGException* svgException = toSVGException(value)) >+ if (SVGException* svgException = JSSVGException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(svgException); >- if (XPathException* pathException = toXPathException(value)) >+ if (XPathException* pathException = JSXPathException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(pathException); > #if ENABLE(SQL_DATABASE) >- if (SQLException* pathException = toSQLException(value)) >+ if (SQLException* pathException = JSSQLException::toImpl(value)) > return reinterpret_cast<ExceptionBase*>(pathException); > #endif > >diff --git a/Source/WebCore/bindings/js/JSHTMLMediaElementCustom.cpp b/Source/WebCore/bindings/js/JSHTMLMediaElementCustom.cpp >index 1d40c60..bfc1dd5 100644 >--- a/Source/WebCore/bindings/js/JSHTMLMediaElementCustom.cpp >+++ b/Source/WebCore/bindings/js/JSHTMLMediaElementCustom.cpp >@@ -40,7 +40,7 @@ void JSHTMLMediaElement::setController(ExecState*, JSValue value) > // On setting, it must first remove the element's mediagroup attribute, if any, > impl().setMediaGroup(String()); > // and then set the current media controller to the given value. >- impl().setController(toMediaController(value)); >+ impl().setController(JSMediaController::toImpl(value)); > } > > } >diff --git a/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp b/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp >index 74a5867..71f3ddb 100644 >--- a/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp >+++ b/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp >@@ -63,7 +63,7 @@ void JSHTMLOptionsCollection::indexSetter(ExecState* exec, unsigned index, JSVal > JSValue JSHTMLOptionsCollection::add(ExecState* exec) > { > HTMLOptionsCollection& imp = impl(); >- HTMLOptionElement* option = toHTMLOptionElement(exec->argument(0)); >+ HTMLOptionElement* option = JSHTMLOptionElement::toImpl(exec->argument(0)); > ExceptionCode ec = 0; > if (exec->argumentCount() < 2) > imp.add(option, ec); >@@ -81,7 +81,7 @@ JSValue JSHTMLOptionsCollection::remove(ExecState* exec) > { > // The argument can be an HTMLOptionElement or an index. > JSValue argument = exec->argument(0); >- if (HTMLOptionElement* option = toHTMLOptionElement(argument)) >+ if (HTMLOptionElement* option = JSHTMLOptionElement::toImpl(argument)) > impl().remove(option); > else > impl().remove(argument.toInt32(exec)); >diff --git a/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp b/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp >index 43f694b..ddd0929 100644 >--- a/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp >+++ b/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp >@@ -43,7 +43,7 @@ JSValue JSHTMLSelectElement::remove(ExecState* exec) > setDOMException(exec, ec); > } else { > // The HTMLSelectElement::remove() function can take either an option object or the index of an option. >- if (HTMLOptionElement* option = toHTMLOptionElement(exec->argument(0))) >+ if (HTMLOptionElement* option = JSHTMLOptionElement::toImpl(exec->argument(0))) > select.remove(option); > else > select.removeByIndex(exec->argument(0).toInt32(exec)); >@@ -58,7 +58,7 @@ void selectIndexSetter(HTMLSelectElement* select, JSC::ExecState* exec, unsigned > select->removeByIndex(index); > else { > ExceptionCode ec = 0; >- HTMLOptionElement* option = toHTMLOptionElement(value); >+ HTMLOptionElement* option = JSHTMLOptionElement::toImpl(value); > if (!option) > ec = TYPE_MISMATCH_ERR; > else >diff --git a/Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp b/Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp >index f4b555f..f574100 100644 >--- a/Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp >+++ b/Source/WebCore/bindings/js/JSInspectorFrontendHostCustom.cpp >@@ -131,7 +131,7 @@ JSValue JSInspectorFrontendHost::showContextMenu(ExecState* exec) > #if ENABLE(CONTEXT_MENUS) > if (exec->argumentCount() < 2) > return jsUndefined(); >- Event* event = toEvent(exec->argument(0)); >+ Event* event = JSEvent::toImpl(exec->argument(0)); > > JSArray* array = asArray(exec->argument(1)); > ContextMenu menu; >diff --git a/Source/WebCore/bindings/js/JSMessageEventCustom.cpp b/Source/WebCore/bindings/js/JSMessageEventCustom.cpp >index ba9e3cc..9bb3fda 100644 >--- a/Source/WebCore/bindings/js/JSMessageEventCustom.cpp >+++ b/Source/WebCore/bindings/js/JSMessageEventCustom.cpp >@@ -95,7 +95,7 @@ static JSC::JSValue handleInitMessageEvent(JSMessageEvent* jsEvent, JSC::ExecSta > bool cancelableArg = exec->argument(2).toBoolean(exec); > const String originArg = exec->argument(4).toString(exec)->value(exec); > const String lastEventIdArg = exec->argument(5).toString(exec)->value(exec); >- DOMWindow* sourceArg = toDOMWindow(exec->argument(6)); >+ DOMWindow* sourceArg = JSDOMWindow::toImpl(exec->argument(6)); > std::unique_ptr<MessagePortArray> messagePorts; > OwnPtr<ArrayBufferArray> arrayBuffers; > if (!exec->argument(7).isUndefinedOrNull()) { >diff --git a/Source/WebCore/bindings/js/JSMessagePortCustom.cpp b/Source/WebCore/bindings/js/JSMessagePortCustom.cpp >index 75abe18..946fe2a 100644 >--- a/Source/WebCore/bindings/js/JSMessagePortCustom.cpp >+++ b/Source/WebCore/bindings/js/JSMessagePortCustom.cpp >@@ -84,7 +84,7 @@ void fillMessagePortArray(JSC::ExecState* exec, JSC::JSValue value, MessagePortA > } > > // Validation of Objects implementing an interface, per WebIDL spec 4.1.15. >- RefPtr<MessagePort> port = toMessagePort(value); >+ RefPtr<MessagePort> port = JSMessagePort::toImpl(value); > if (port) { > // Check for duplicate ports. > if (portArray.contains(port)) { >diff --git a/Source/WebCore/bindings/js/JSNodeCustom.cpp b/Source/WebCore/bindings/js/JSNodeCustom.cpp >index d3624e1..dd7b235 100644 >--- a/Source/WebCore/bindings/js/JSNodeCustom.cpp >+++ b/Source/WebCore/bindings/js/JSNodeCustom.cpp >@@ -135,7 +135,7 @@ bool JSNodeOwner::isReachableFromOpaqueRoots(JSC::Handle<JSC::Unknown> handle, v > JSValue JSNode::insertBefore(ExecState* exec) > { > ExceptionCode ec = 0; >- bool ok = impl().insertBefore(toNode(exec->argument(0)), toNode(exec->argument(1)), ec); >+ bool ok = impl().insertBefore(JSNode::toImpl(exec->argument(0)), JSNode::toImpl(exec->argument(1)), ec); > setDOMException(exec, ec); > if (ok) > return exec->argument(0); >@@ -145,7 +145,7 @@ JSValue JSNode::insertBefore(ExecState* exec) > JSValue JSNode::replaceChild(ExecState* exec) > { > ExceptionCode ec = 0; >- bool ok = impl().replaceChild(toNode(exec->argument(0)), toNode(exec->argument(1)), ec); >+ bool ok = impl().replaceChild(JSNode::toImpl(exec->argument(0)), JSNode::toImpl(exec->argument(1)), ec); > setDOMException(exec, ec); > if (ok) > return exec->argument(1); >@@ -155,7 +155,7 @@ JSValue JSNode::replaceChild(ExecState* exec) > JSValue JSNode::removeChild(ExecState* exec) > { > ExceptionCode ec = 0; >- bool ok = impl().removeChild(toNode(exec->argument(0)), ec); >+ bool ok = impl().removeChild(JSNode::toImpl(exec->argument(0)), ec); > setDOMException(exec, ec); > if (ok) > return exec->argument(0); >@@ -165,7 +165,7 @@ JSValue JSNode::removeChild(ExecState* exec) > JSValue JSNode::appendChild(ExecState* exec) > { > ExceptionCode ec = 0; >- bool ok = impl().appendChild(toNode(exec->argument(0)), ec); >+ bool ok = impl().appendChild(JSNode::toImpl(exec->argument(0)), ec); > setDOMException(exec, ec); > if (ok) > return exec->argument(0); >diff --git a/Source/WebCore/bindings/js/JSNodeFilterCustom.cpp b/Source/WebCore/bindings/js/JSNodeFilterCustom.cpp >index 28c16c1..4e147d7 100644 >--- a/Source/WebCore/bindings/js/JSNodeFilterCustom.cpp >+++ b/Source/WebCore/bindings/js/JSNodeFilterCustom.cpp >@@ -35,7 +35,7 @@ void JSNodeFilter::visitAdditionalChildren(JSC::SlotVisitor& visitor) > visitor.addOpaqueRoot(&impl()); > } > >-PassRefPtr<NodeFilter> toNodeFilter(JSC::VM& vm, JSC::JSValue value) >+PassRefPtr<NodeFilter> JSNodeFilter::toImpl(JSC::VM& vm, JSC::JSValue value) > { > if (value.inherits(JSNodeFilter::info())) > return &JSC::jsCast<JSNodeFilter*>(asObject(value))->impl(); >diff --git a/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp b/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp >index f405a03..6880a0c 100644 >--- a/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp >+++ b/Source/WebCore/bindings/js/JSSubtleCryptoCustom.cpp >@@ -145,7 +145,7 @@ JSValue JSSubtleCrypto::encrypt(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >@@ -197,7 +197,7 @@ JSValue JSSubtleCrypto::decrypt(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >@@ -248,7 +248,7 @@ JSValue JSSubtleCrypto::sign(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >@@ -299,7 +299,7 @@ JSValue JSSubtleCrypto::verify(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >@@ -600,7 +600,7 @@ JSValue JSSubtleCrypto::exportKey(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >@@ -630,11 +630,11 @@ JSValue JSSubtleCrypto::wrapKey(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> key = toCryptoKey(exec->uncheckedArgument(1)); >+ RefPtr<CryptoKey> key = JSCryptoKey::toImpl(exec->uncheckedArgument(1)); > if (!key) > return throwTypeError(exec); > >- RefPtr<CryptoKey> wrappingKey = toCryptoKey(exec->uncheckedArgument(2)); >+ RefPtr<CryptoKey> wrappingKey = JSCryptoKey::toImpl(exec->uncheckedArgument(2)); > if (!key) > return throwTypeError(exec); > >@@ -713,7 +713,7 @@ JSValue JSSubtleCrypto::unwrapKey(ExecState* exec) > return jsUndefined(); > } > >- RefPtr<CryptoKey> unwrappingKey = toCryptoKey(exec->uncheckedArgument(2)); >+ RefPtr<CryptoKey> unwrappingKey = JSCryptoKey::toImpl(exec->uncheckedArgument(2)); > if (!unwrappingKey) > return throwTypeError(exec); > >diff --git a/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp b/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp >index c5f2161..fe51fc9 100644 >--- a/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp >+++ b/Source/WebCore/bindings/js/JSWebGLRenderingContextCustom.cpp >@@ -257,7 +257,7 @@ JSValue JSWebGLRenderingContext::getAttachedShaders(ExecState* exec) > return exec->vm().throwException(exec, createNotEnoughArgumentsError(exec)); > ExceptionCode ec = 0; > WebGLRenderingContext& context = impl(); >- WebGLProgram* program = toWebGLProgram(exec->uncheckedArgument(0)); >+ WebGLProgram* program = JSWebGLProgram::toImpl(exec->uncheckedArgument(0)); > if (!program && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); > Vector<RefPtr<WebGLShader>> shaders; >@@ -341,7 +341,7 @@ JSValue JSWebGLRenderingContext::getProgramParameter(ExecState* exec) > > ExceptionCode ec = 0; > WebGLRenderingContext& context = impl(); >- WebGLProgram* program = toWebGLProgram(exec->uncheckedArgument(0)); >+ WebGLProgram* program = JSWebGLProgram::toImpl(exec->uncheckedArgument(0)); > if (!program && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); > unsigned pname = exec->uncheckedArgument(1).toInt32(exec); >@@ -369,7 +369,7 @@ JSValue JSWebGLRenderingContext::getShaderParameter(ExecState* exec) > WebGLRenderingContext& context = impl(); > if (!exec->uncheckedArgument(0).isUndefinedOrNull() && !exec->uncheckedArgument(0).inherits(JSWebGLShader::info())) > return throwTypeError(exec); >- WebGLShader* shader = toWebGLShader(exec->uncheckedArgument(0)); >+ WebGLShader* shader = JSWebGLShader::toImpl(exec->uncheckedArgument(0)); > unsigned pname = exec->uncheckedArgument(1).toInt32(exec); > if (exec->hadException()) > return jsUndefined(); >@@ -405,10 +405,10 @@ JSValue JSWebGLRenderingContext::getUniform(ExecState* exec) > > ExceptionCode ec = 0; > WebGLRenderingContext& context = impl(); >- WebGLProgram* program = toWebGLProgram(exec->uncheckedArgument(0)); >+ WebGLProgram* program = JSWebGLProgram::toImpl(exec->uncheckedArgument(0)); > if (!program && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); >- WebGLUniformLocation* location = toWebGLUniformLocation(exec->uncheckedArgument(1)); >+ WebGLUniformLocation* location = JSWebGLUniformLocation::toImpl(exec->uncheckedArgument(1)); > if (!location && !exec->uncheckedArgument(1).isUndefinedOrNull()) > return throwTypeError(exec); > WebGLGetInfo info = context.getUniform(program, location, ec); >@@ -478,7 +478,7 @@ static JSC::JSValue dataFunctionf(DataFunctionToCall f, JSC::ExecState* exec, We > long index = -1; > > if (functionForUniform(f)) { >- location = toWebGLUniformLocation(exec->uncheckedArgument(0)); >+ location = JSWebGLUniformLocation::toImpl(exec->uncheckedArgument(0)); > if (!location && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); > } else >@@ -564,7 +564,7 @@ static JSC::JSValue dataFunctioni(DataFunctionToCall f, JSC::ExecState* exec, We > if (exec->argumentCount() != 2) > return exec->vm().throwException(exec, createNotEnoughArgumentsError(exec)); > >- WebGLUniformLocation* location = toWebGLUniformLocation(exec->uncheckedArgument(0)); >+ WebGLUniformLocation* location = JSWebGLUniformLocation::toImpl(exec->uncheckedArgument(0)); > if (!location && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); > >@@ -624,7 +624,7 @@ static JSC::JSValue dataFunctionMatrix(DataFunctionMatrixToCall f, JSC::ExecStat > if (exec->argumentCount() != 3) > return exec->vm().throwException(exec, createNotEnoughArgumentsError(exec)); > >- WebGLUniformLocation* location = toWebGLUniformLocation(exec->uncheckedArgument(0)); >+ WebGLUniformLocation* location = JSWebGLUniformLocation::toImpl(exec->uncheckedArgument(0)); > if (!location && !exec->uncheckedArgument(0).isUndefinedOrNull()) > return throwTypeError(exec); > >diff --git a/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp b/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp >index c9edcfa..f9ae164 100644 >--- a/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp >+++ b/Source/WebCore/bindings/js/JSXMLHttpRequestCustom.cpp >@@ -148,11 +148,11 @@ JSValue JSXMLHttpRequest::send(ExecState* exec) > if (val.isUndefinedOrNull()) > impl().send(ec); > else if (val.inherits(JSDocument::info())) >- impl().send(toDocument(val), ec); >+ impl().send(JSDocument::toImpl(val), ec); > else if (val.inherits(JSBlob::info())) >- impl().send(toBlob(val), ec); >+ impl().send(JSBlob::toImpl(val), ec); > else if (val.inherits(JSDOMFormData::info())) >- impl().send(toDOMFormData(val), ec); >+ impl().send(JSDOMFormData::toImpl(val), ec); > else if (val.inherits(JSArrayBuffer::info())) > impl().send(toArrayBuffer(val), ec); > else if (val.inherits(JSArrayBufferView::info())) { >diff --git a/Source/WebCore/bindings/js/SerializedScriptValue.cpp b/Source/WebCore/bindings/js/SerializedScriptValue.cpp >index 28f22da..70e921a 100644 >--- a/Source/WebCore/bindings/js/SerializedScriptValue.cpp >+++ b/Source/WebCore/bindings/js/SerializedScriptValue.cpp >@@ -784,12 +784,12 @@ private: > write(obj->internalValue().asNumber()); > return true; > } >- if (File* file = toFile(obj)) { >+ if (File* file = JSFile::toImpl(obj)) { > write(FileTag); > write(file); > return true; > } >- if (FileList* list = toFileList(obj)) { >+ if (FileList* list = JSFileList::toImpl(obj)) { > write(FileListTag); > unsigned length = list->length(); > write(length); >@@ -797,7 +797,7 @@ private: > write(list->item(i)); > return true; > } >- if (Blob* blob = toBlob(obj)) { >+ if (Blob* blob = JSBlob::toImpl(obj)) { > write(BlobTag); > m_blobURLs.append(blob->url()); > write(blob->url()); >@@ -805,7 +805,7 @@ private: > write(blob->size()); > return true; > } >- if (ImageData* data = toImageData(obj)) { >+ if (ImageData* data = JSImageData::toImpl(obj)) { > write(ImageDataTag); > write(data->width()); > write(data->height()); >@@ -865,7 +865,7 @@ private: > return success; > } > #if ENABLE(SUBTLE_CRYPTO) >- if (CryptoKey* key = toCryptoKey(obj)) { >+ if (CryptoKey* key = JSCryptoKey::toImpl(obj)) { > write(CryptoKeyTag); > Vector<uint8_t> serializedKey; > Vector<String> dummyBlobURLs; >diff --git a/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm b/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm >index 8d54da1..f3444fe 100644 >--- a/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm >+++ b/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm >@@ -874,6 +874,17 @@ sub GenerateHeader > push(@headerContent, " static JSC::JSObject* getPrototype(JSC::VM&, JSC::JSGlobalObject*);\n"); > } > >+ # JSValue to implementation type >+ if (!$hasParent || $interface->extendedAttributes->{"JSGenerateToNativeObject"}) { >+ if ($interfaceName eq "NodeFilter") { >+ push(@headerContent, "static PassRefPtr<NodeFilter> toImpl(JSC::VM&, JSC::JSValue);\n"); >+ } elsif ($interfaceName eq "DOMStringList") { >+ push(@headerContent, "static PassRefPtr<DOMStringList> toImpl(JSC::ExecState*, JSC::JSValue);\n"); >+ } else { >+ push(@headerContent, "WEBCORE_EXPORT static $implType* toImpl(JSC::JSValue);\n"); >+ } >+ } >+ > $headerTrailingIncludes{"${className}Custom.h"} = 1 if $interface->extendedAttributes->{"JSCustomHeader"}; > > my $namedGetterFunction = GetNamedGetterFunction($interface); >@@ -1166,15 +1177,6 @@ sub GenerateHeader > if (ShouldGenerateToJSDeclaration($hasParent, $interface)) { > push(@headerContent, "WEBCORE_EXPORT JSC::JSValue toJS(JSC::ExecState*, JSDOMGlobalObject*, $implType*);\n"); > } >- if (!$hasParent || $interface->extendedAttributes->{"JSGenerateToNativeObject"}) { >- if ($interfaceName eq "NodeFilter") { >- push(@headerContent, "PassRefPtr<NodeFilter> toNodeFilter(JSC::VM&, JSC::JSValue);\n"); >- } elsif ($interfaceName eq "DOMStringList") { >- push(@headerContent, "PassRefPtr<DOMStringList> toDOMStringList(JSC::ExecState*, JSC::JSValue);\n"); >- } else { >- push(@headerContent, "WEBCORE_EXPORT $implType* to${interfaceName}(JSC::JSValue);\n"); >- } >- } > if ($usesToJSNewlyCreated{$interfaceName}) { > push(@headerContent, "JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject*, $interfaceName*);\n"); > } >@@ -3112,7 +3114,7 @@ END > } > > if ((!$hasParent or $interface->extendedAttributes->{"JSGenerateToNativeObject"}) and !$interface->extendedAttributes->{"JSCustomToNativeObject"}) { >- push(@implContent, "$implType* to${interfaceName}(JSC::JSValue value)\n"); >+ push(@implContent, "$implType* ${className}::toImpl(JSC::JSValue value)\n"); > push(@implContent, "{\n"); > push(@implContent, " if (auto* wrapper = " . GetCastingHelperForThisObject($interface) . "(value))\n"); > push(@implContent, " return &wrapper->impl();\n"); >@@ -3243,7 +3245,7 @@ sub GenerateParametersCheck > > if ($argType eq "XPathNSResolver") { > push(@$outputArray, " RefPtr<XPathNSResolver> customResolver;\n"); >- push(@$outputArray, " XPathNSResolver* resolver = toXPathNSResolver(exec->argument($argsIndex));\n"); >+ push(@$outputArray, " XPathNSResolver* resolver = JSXPathNSResolver::toImpl(exec->argument($argsIndex));\n"); > push(@$outputArray, " if (!resolver) {\n"); > push(@$outputArray, " customResolver = JSCustomXPathNSResolver::create(exec, exec->argument($argsIndex));\n"); > push(@$outputArray, " if (UNLIKELY(exec->hadException()))\n"); >@@ -3296,7 +3298,7 @@ sub GenerateParametersCheck > push(@$outputArray, " for (unsigned i = $argsIndex, count = exec->argumentCount(); i < count; ++i) {\n"); > push(@$outputArray, " if (!exec->uncheckedArgument(i).inherits(JS${argType}::info()))\n"); > push(@$outputArray, " return throwArgumentTypeError(*exec, i, \"$name\", \"$interfaceName\", $quotedFunctionName, \"$argType\");\n"); >- push(@$outputArray, " $name.append(to$argType(exec->uncheckedArgument(i)));\n"); >+ push(@$outputArray, " $name.append(JS${argType}::toImpl(exec->uncheckedArgument(i)));\n"); > push(@$outputArray, " }\n") > } else { > push(@$outputArray, " Vector<$nativeElementType> $name = toNativeArguments<$nativeElementType>(exec, $argsIndex);\n"); >@@ -3849,7 +3851,7 @@ sub JSValueToNative > > if ($type eq "NodeFilter") { > AddToImplIncludes("JS$type.h", $conditional); >- return "to$type(exec->vm(), $value)"; >+ return "JS${type}::toImpl(exec->vm(), $value)"; > } > > if ($type eq "SerializedScriptValue") { >@@ -3892,7 +3894,7 @@ sub JSValueToNative > > # Default, assume autogenerated type conversion routines > AddToImplIncludes("JS$type.h", $conditional); >- return "to$type($value)"; >+ return "JS${type}::toImpl($value)"; > } > > sub NativeToJSValue >diff --git a/Source/WebCore/dom/Element.h b/Source/WebCore/dom/Element.h >index 1e37eec..b428914 100644 >--- a/Source/WebCore/dom/Element.h >+++ b/Source/WebCore/dom/Element.h >@@ -689,6 +689,29 @@ struct ElementTypeCastTraits<ExpectedType, ExpectedType> { > static bool is(ExpectedType&) { return true; } > }; > >+// These functions are called by toXXXElement() casting helpers. >+// Do not call these directly. >+template<typename T> inline T& toElement(Node& node) >+{ >+ ASSERT_WITH_SECURITY_IMPLICATION(isElementOfType<const T>(node)); >+ return static_cast<T&>(node); >+} >+template<typename T> inline T* toElement(Node* node) >+{ >+ ASSERT_WITH_SECURITY_IMPLICATION(!node || isElementOfType<const T>(*node)); >+ return static_cast<T*>(node); >+} >+template<typename T> inline const T& toElement(const Node& node) >+{ >+ ASSERT_WITH_SECURITY_IMPLICATION(isElementOfType<const T>(node)); >+ return static_cast<const T&>(node); >+} >+template<typename T> inline const T* toElement(const Node* node) >+{ >+ ASSERT_WITH_SECURITY_IMPLICATION(!node || isElementOfType<const T>(*node)); >+ return static_cast<const T*>(node); >+} >+ > inline bool Node::hasAttributes() const > { > return isElementNode() && toElement(this)->hasAttributes(); >diff --git a/Source/WebCore/dom/make_names.pl b/Source/WebCore/dom/make_names.pl >index 389c2b8..f086f79 100755 >--- a/Source/WebCore/dom/make_names.pl >+++ b/Source/WebCore/dom/make_names.pl >@@ -663,6 +663,8 @@ template <typename ArgType> > struct ElementTypeCastTraits<const $class, ArgType> { > static bool is(ArgType& node) { return $checkHelper(node); } > }; >+ >+#define to$class(x) WebCore::toElement<WebCore::$class>(x) > END > ; > >diff --git a/Source/WebCore/html/HTMLAnchorElement.h b/Source/WebCore/html/HTMLAnchorElement.h >index 4669163..232b025 100644 >--- a/Source/WebCore/html/HTMLAnchorElement.h >+++ b/Source/WebCore/html/HTMLAnchorElement.h >@@ -155,8 +155,6 @@ bool isEnterKeyKeydownEvent(Event*); > bool isLinkClick(Event*); > bool shouldProhibitLinks(Element*); > >-NODE_TYPE_CASTS(HTMLAnchorElement) >- > } // namespace WebCore > > #endif // HTMLAnchorElement_h >diff --git a/Source/WebCore/html/HTMLAreaElement.h b/Source/WebCore/html/HTMLAreaElement.h >index ac07e98..8db7589 100644 >--- a/Source/WebCore/html/HTMLAreaElement.h >+++ b/Source/WebCore/html/HTMLAreaElement.h >@@ -71,8 +71,6 @@ private: > Shape m_shape; > }; > >-NODE_TYPE_CASTS(HTMLAreaElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLAudioElement.h b/Source/WebCore/html/HTMLAudioElement.h >index 30d2a8f..7e8658c 100644 >--- a/Source/WebCore/html/HTMLAudioElement.h >+++ b/Source/WebCore/html/HTMLAudioElement.h >@@ -43,8 +43,6 @@ private: > HTMLAudioElement(const QualifiedName&, Document&, bool); > }; > >-NODE_TYPE_CASTS(HTMLAudioElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLBaseElement.h b/Source/WebCore/html/HTMLBaseElement.h >index 4054e17..b799f1f 100644 >--- a/Source/WebCore/html/HTMLBaseElement.h >+++ b/Source/WebCore/html/HTMLBaseElement.h >@@ -44,8 +44,6 @@ private: > virtual void removedFrom(ContainerNode&) override; > }; > >-NODE_TYPE_CASTS(HTMLBaseElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLBodyElement.h b/Source/WebCore/html/HTMLBodyElement.h >index 017efc2..0d4d60a 100644 >--- a/Source/WebCore/html/HTMLBodyElement.h >+++ b/Source/WebCore/html/HTMLBodyElement.h >@@ -81,8 +81,6 @@ private: > virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override; > }; > >-NODE_TYPE_CASTS(HTMLBodyElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLCanvasElement.h b/Source/WebCore/html/HTMLCanvasElement.h >index 8837d08..8abde77 100644 >--- a/Source/WebCore/html/HTMLCanvasElement.h >+++ b/Source/WebCore/html/HTMLCanvasElement.h >@@ -180,8 +180,6 @@ private: > mutable RefPtr<Image> m_copiedImage; // FIXME: This is temporary for platforms that have to copy the image buffer to render (and for CSSCanvasValue). > }; > >-NODE_TYPE_CASTS(HTMLCanvasElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLDetailsElement.h b/Source/WebCore/html/HTMLDetailsElement.h >index c41f6f4..073cd59 100644 >--- a/Source/WebCore/html/HTMLDetailsElement.h >+++ b/Source/WebCore/html/HTMLDetailsElement.h >@@ -44,8 +44,6 @@ private: > bool m_isOpen; > }; > >-NODE_TYPE_CASTS(HTMLDetailsElement) >- > } // namespace WebCore > > #endif // HTMLDetailsElement_h >diff --git a/Source/WebCore/html/HTMLDivElement.h b/Source/WebCore/html/HTMLDivElement.h >index 1b5d20a..ff81b9b 100644 >--- a/Source/WebCore/html/HTMLDivElement.h >+++ b/Source/WebCore/html/HTMLDivElement.h >@@ -40,8 +40,6 @@ private: > virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; > }; > >-NODE_TYPE_CASTS(HTMLDivElement) >- > } // namespace WebCore > > #endif // HTMLDivElement_h >diff --git a/Source/WebCore/html/HTMLEmbedElement.h b/Source/WebCore/html/HTMLEmbedElement.h >index d9fd452..cdd3bec 100644 >--- a/Source/WebCore/html/HTMLEmbedElement.h >+++ b/Source/WebCore/html/HTMLEmbedElement.h >@@ -52,8 +52,6 @@ private: > void parametersForPlugin(Vector<String>& paramNames, Vector<String>& paramValues); > }; > >-NODE_TYPE_CASTS(HTMLEmbedElement) >- > } > > #endif >diff --git a/Source/WebCore/html/HTMLFieldSetElement.h b/Source/WebCore/html/HTMLFieldSetElement.h >index 7c13ea0..3a02230 100644 >--- a/Source/WebCore/html/HTMLFieldSetElement.h >+++ b/Source/WebCore/html/HTMLFieldSetElement.h >@@ -64,8 +64,6 @@ private: > mutable uint64_t m_documentVersion; > }; > >-NODE_TYPE_CASTS(HTMLFieldSetElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLFormElement.h b/Source/WebCore/html/HTMLFormElement.h >index c469dce..fc3db9d 100644 >--- a/Source/WebCore/html/HTMLFormElement.h >+++ b/Source/WebCore/html/HTMLFormElement.h >@@ -201,8 +201,6 @@ private: > #endif > }; > >-NODE_TYPE_CASTS(HTMLFormElement) >- > } // namespace WebCore > > #endif // HTMLFormElement_h >diff --git a/Source/WebCore/html/HTMLFrameElement.h b/Source/WebCore/html/HTMLFrameElement.h >index 5579c98..6e4fb0f 100644 >--- a/Source/WebCore/html/HTMLFrameElement.h >+++ b/Source/WebCore/html/HTMLFrameElement.h >@@ -54,8 +54,6 @@ private: > bool m_frameBorderSet; > }; > >-NODE_TYPE_CASTS(HTMLFrameElement) >- > } // namespace WebCore > > #endif // HTMLFrameElement_h >diff --git a/Source/WebCore/html/HTMLFrameSetElement.h b/Source/WebCore/html/HTMLFrameSetElement.h >index 80e7f2a..272938c 100644 >--- a/Source/WebCore/html/HTMLFrameSetElement.h >+++ b/Source/WebCore/html/HTMLFrameSetElement.h >@@ -100,8 +100,6 @@ private: > bool m_noresize; > }; > >-NODE_TYPE_CASTS(HTMLFrameSetElement) >- > } // namespace WebCore > > #endif // HTMLFrameSetElement_h >diff --git a/Source/WebCore/html/HTMLHtmlElement.h b/Source/WebCore/html/HTMLHtmlElement.h >index b966c87..0f83b9a 100644 >--- a/Source/WebCore/html/HTMLHtmlElement.h >+++ b/Source/WebCore/html/HTMLHtmlElement.h >@@ -41,8 +41,6 @@ private: > virtual bool isURLAttribute(const Attribute&) const override; > }; > >-NODE_TYPE_CASTS(HTMLHtmlElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLIFrameElement.h b/Source/WebCore/html/HTMLIFrameElement.h >index 9ae1932..f0ebcec 100644 >--- a/Source/WebCore/html/HTMLIFrameElement.h >+++ b/Source/WebCore/html/HTMLIFrameElement.h >@@ -47,8 +47,6 @@ private: > virtual RenderPtr<RenderElement> createElementRenderer(PassRef<RenderStyle>) override; > }; > >-NODE_TYPE_CASTS(HTMLIFrameElement) >- > } // namespace WebCore > > #endif // HTMLIFrameElement_h >diff --git a/Source/WebCore/html/HTMLImageElement.h b/Source/WebCore/html/HTMLImageElement.h >index 324948b..6ad454d 100644 >--- a/Source/WebCore/html/HTMLImageElement.h >+++ b/Source/WebCore/html/HTMLImageElement.h >@@ -143,8 +143,6 @@ private: > #endif > }; > >-NODE_TYPE_CASTS(HTMLImageElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLInputElement.h b/Source/WebCore/html/HTMLInputElement.h >index e3885bcc..d7a65cd 100644 >--- a/Source/WebCore/html/HTMLInputElement.h >+++ b/Source/WebCore/html/HTMLInputElement.h >@@ -448,7 +448,5 @@ private: > #endif > }; > >-NODE_TYPE_CASTS(HTMLInputElement) >- > } //namespace > #endif >diff --git a/Source/WebCore/html/HTMLLabelElement.h b/Source/WebCore/html/HTMLLabelElement.h >index aea5237..ca8ee60 100644 >--- a/Source/WebCore/html/HTMLLabelElement.h >+++ b/Source/WebCore/html/HTMLLabelElement.h >@@ -55,8 +55,6 @@ private: > virtual void focus(bool restorePreviousSelection, FocusDirection) override; > }; > >-NODE_TYPE_CASTS(HTMLLabelElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLLegendElement.h b/Source/WebCore/html/HTMLLegendElement.h >index 24568bd..9104abd 100644 >--- a/Source/WebCore/html/HTMLLegendElement.h >+++ b/Source/WebCore/html/HTMLLegendElement.h >@@ -45,8 +45,6 @@ private: > virtual HTMLFormElement* virtualForm() const override; > }; > >-NODE_TYPE_CASTS(HTMLLegendElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLLinkElement.h b/Source/WebCore/html/HTMLLinkElement.h >index 65b3241..cbf5708 100644 >--- a/Source/WebCore/html/HTMLLinkElement.h >+++ b/Source/WebCore/html/HTMLLinkElement.h >@@ -137,8 +137,6 @@ private: > PendingSheetType m_pendingSheetType; > }; > >-NODE_TYPE_CASTS(HTMLLinkElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLMapElement.h b/Source/WebCore/html/HTMLMapElement.h >index 9ae4467..617aa13 100644 >--- a/Source/WebCore/html/HTMLMapElement.h >+++ b/Source/WebCore/html/HTMLMapElement.h >@@ -54,8 +54,6 @@ private: > AtomicString m_name; > }; > >-NODE_TYPE_CASTS(HTMLMapElement) >- > } // namespaces > > #endif >diff --git a/Source/WebCore/html/HTMLMarqueeElement.h b/Source/WebCore/html/HTMLMarqueeElement.h >index d10982b..9639e96 100644 >--- a/Source/WebCore/html/HTMLMarqueeElement.h >+++ b/Source/WebCore/html/HTMLMarqueeElement.h >@@ -64,8 +64,6 @@ private: > RenderMarquee* renderMarquee() const; > }; > >-NODE_TYPE_CASTS(HTMLMarqueeElement) >- > } // namespace WebCore > > #endif // HTMLMarqueeElement_h >diff --git a/Source/WebCore/html/HTMLMetaElement.h b/Source/WebCore/html/HTMLMetaElement.h >index 159c3aa..0457819 100644 >--- a/Source/WebCore/html/HTMLMetaElement.h >+++ b/Source/WebCore/html/HTMLMetaElement.h >@@ -44,8 +44,6 @@ private: > void process(); > }; > >-NODE_TYPE_CASTS(HTMLMetaElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/html/HTMLMeterElement.h b/Source/WebCore/html/HTMLMeterElement.h >index 9d82172..a28cb4496 100644 >--- a/Source/WebCore/html/HTMLMeterElement.h >+++ b/Source/WebCore/html/HTMLMeterElement.h >@@ -81,8 +81,6 @@ private: > RefPtr<MeterValueElement> m_value; > }; > >-NODE_TYPE_CASTS(HTMLMeterElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLOListElement.h b/Source/WebCore/html/HTMLOListElement.h >index 989d795..1f0aaf1 100644 >--- a/Source/WebCore/html/HTMLOListElement.h >+++ b/Source/WebCore/html/HTMLOListElement.h >@@ -65,8 +65,6 @@ private: > bool m_shouldRecalculateItemCount : 1; > }; > >-NODE_TYPE_CASTS(HTMLOListElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLObjectElement.h b/Source/WebCore/html/HTMLObjectElement.h >index 2c49193..f8e7a6e 100644 >--- a/Source/WebCore/html/HTMLObjectElement.h >+++ b/Source/WebCore/html/HTMLObjectElement.h >@@ -103,8 +103,6 @@ private: > bool m_useFallbackContent : 1; > }; > >-NODE_TYPE_CASTS(HTMLObjectElement) >- > } > > #endif >diff --git a/Source/WebCore/html/HTMLOptGroupElement.h b/Source/WebCore/html/HTMLOptGroupElement.h >index 689ce4b..57a3742 100644 >--- a/Source/WebCore/html/HTMLOptGroupElement.h >+++ b/Source/WebCore/html/HTMLOptGroupElement.h >@@ -54,8 +54,6 @@ private: > void recalcSelectOptions(); > }; > >-NODE_TYPE_CASTS(HTMLOptGroupElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLOptionElement.h b/Source/WebCore/html/HTMLOptionElement.h >index 647d01e..654ef11 100644 >--- a/Source/WebCore/html/HTMLOptionElement.h >+++ b/Source/WebCore/html/HTMLOptionElement.h >@@ -87,8 +87,6 @@ private: > bool m_isSelected; > }; > >-NODE_TYPE_CASTS(HTMLOptionElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLParamElement.h b/Source/WebCore/html/HTMLParamElement.h >index 4e81d2d..ed9b4eb 100644 >--- a/Source/WebCore/html/HTMLParamElement.h >+++ b/Source/WebCore/html/HTMLParamElement.h >@@ -43,8 +43,6 @@ private: > virtual void addSubresourceAttributeURLs(ListHashSet<URL>&) const override; > }; > >-NODE_TYPE_CASTS(HTMLParamElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/html/HTMLProgressElement.h b/Source/WebCore/html/HTMLProgressElement.h >index eedb880..c7fd955 100644 >--- a/Source/WebCore/html/HTMLProgressElement.h >+++ b/Source/WebCore/html/HTMLProgressElement.h >@@ -67,8 +67,6 @@ private: > ProgressValueElement* m_value; > }; > >-NODE_TYPE_CASTS(HTMLProgressElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLScriptElement.h b/Source/WebCore/html/HTMLScriptElement.h >index b8501b4..68d96a3 100644 >--- a/Source/WebCore/html/HTMLScriptElement.h >+++ b/Source/WebCore/html/HTMLScriptElement.h >@@ -67,8 +67,6 @@ private: > virtual PassRefPtr<Element> cloneElementWithoutAttributesAndChildren() override; > }; > >-NODE_TYPE_CASTS(HTMLScriptElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLSelectElement.h b/Source/WebCore/html/HTMLSelectElement.h >index fa9cbe47..27fefd6 100644 >--- a/Source/WebCore/html/HTMLSelectElement.h >+++ b/Source/WebCore/html/HTMLSelectElement.h >@@ -212,8 +212,6 @@ private: > mutable bool m_shouldRecalcListItems; > }; > >-NODE_TYPE_CASTS(HTMLSelectElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLSourceElement.h b/Source/WebCore/html/HTMLSourceElement.h >index 555875c..522d7436 100644 >--- a/Source/WebCore/html/HTMLSourceElement.h >+++ b/Source/WebCore/html/HTMLSourceElement.h >@@ -57,8 +57,6 @@ private: > Timer<HTMLSourceElement> m_errorEventTimer; > }; > >-NODE_TYPE_CASTS(HTMLSourceElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLStyleElement.h b/Source/WebCore/html/HTMLStyleElement.h >index 9957ba5..91f0b7c 100644 >--- a/Source/WebCore/html/HTMLStyleElement.h >+++ b/Source/WebCore/html/HTMLStyleElement.h >@@ -70,8 +70,6 @@ private: > bool m_loadedSheet; > }; > >-NODE_TYPE_CASTS(HTMLStyleElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLSummaryElement.h b/Source/WebCore/html/HTMLSummaryElement.h >index fbabcde..bc22842 100644 >--- a/Source/WebCore/html/HTMLSummaryElement.h >+++ b/Source/WebCore/html/HTMLSummaryElement.h >@@ -46,8 +46,6 @@ private: > bool supportsFocus() const override; > }; > >-NODE_TYPE_CASTS(HTMLSummaryElement) >- > } > > #endif // HTMLSummaryElement_h >diff --git a/Source/WebCore/html/HTMLTableCaptionElement.h b/Source/WebCore/html/HTMLTableCaptionElement.h >index f064e28..904c327 100644 >--- a/Source/WebCore/html/HTMLTableCaptionElement.h >+++ b/Source/WebCore/html/HTMLTableCaptionElement.h >@@ -41,8 +41,6 @@ private: > virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStyleProperties&) override; > }; > >-NODE_TYPE_CASTS(HTMLTableCaptionElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLTableElement.h b/Source/WebCore/html/HTMLTableElement.h >index c9768eb..3cce81c 100644 >--- a/Source/WebCore/html/HTMLTableElement.h >+++ b/Source/WebCore/html/HTMLTableElement.h >@@ -101,8 +101,6 @@ private: > RefPtr<StyleProperties> m_sharedCellStyle; > }; > >-NODE_TYPE_CASTS(HTMLTableElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLTableRowElement.h b/Source/WebCore/html/HTMLTableRowElement.h >index 338b879..c4b0f77 100644 >--- a/Source/WebCore/html/HTMLTableRowElement.h >+++ b/Source/WebCore/html/HTMLTableRowElement.h >@@ -52,8 +52,6 @@ private: > HTMLTableRowElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(HTMLTableRowElement) >- > } // namespace > > #endif >diff --git a/Source/WebCore/html/HTMLTemplateElement.h b/Source/WebCore/html/HTMLTemplateElement.h >index d7ff951..c81f7a6 100644 >--- a/Source/WebCore/html/HTMLTemplateElement.h >+++ b/Source/WebCore/html/HTMLTemplateElement.h >@@ -56,8 +56,6 @@ private: > mutable RefPtr<TemplateContentDocumentFragment> m_content; > }; > >-NODE_TYPE_CASTS(HTMLTemplateElement) >- > } // namespace WebCore > > #endif // ENABLE(TEMPLATE_ELEMENT) >diff --git a/Source/WebCore/html/HTMLTextAreaElement.h b/Source/WebCore/html/HTMLTextAreaElement.h >index a801f99..bedd0a1 100644 >--- a/Source/WebCore/html/HTMLTextAreaElement.h >+++ b/Source/WebCore/html/HTMLTextAreaElement.h >@@ -126,8 +126,6 @@ private: > mutable bool m_wasModifiedByUser; > }; > >-NODE_TYPE_CASTS(HTMLTextAreaElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLTitleElement.h b/Source/WebCore/html/HTMLTitleElement.h >index ebe1d3c..5de1eb5 100644 >--- a/Source/WebCore/html/HTMLTitleElement.h >+++ b/Source/WebCore/html/HTMLTitleElement.h >@@ -46,8 +46,6 @@ private: > StringWithDirection m_title; > }; > >-NODE_TYPE_CASTS(HTMLTitleElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/html/HTMLTrackElement.h b/Source/WebCore/html/HTMLTrackElement.h >index 831717b..526dc03 100644 >--- a/Source/WebCore/html/HTMLTrackElement.h >+++ b/Source/WebCore/html/HTMLTrackElement.h >@@ -94,8 +94,6 @@ private: > Timer<HTMLTrackElement> m_loadTimer; > }; > >-NODE_TYPE_CASTS(HTMLTrackElement) >- > } > > #endif >diff --git a/Source/WebCore/html/HTMLVideoElement.h b/Source/WebCore/html/HTMLVideoElement.h >index c4d4f9d..76f0165 100644 >--- a/Source/WebCore/html/HTMLVideoElement.h >+++ b/Source/WebCore/html/HTMLVideoElement.h >@@ -102,8 +102,6 @@ private: > AtomicString m_defaultPosterURL; > }; > >-NODE_TYPE_CASTS(HTMLVideoElement) >- > } //namespace > > #endif >diff --git a/Source/WebCore/inspector/InspectorDOMAgent.cpp b/Source/WebCore/inspector/InspectorDOMAgent.cpp >index fd7e923..3786555 100644 >--- a/Source/WebCore/inspector/InspectorDOMAgent.cpp >+++ b/Source/WebCore/inspector/InspectorDOMAgent.cpp >@@ -2010,7 +2010,7 @@ Node* InspectorDOMAgent::scriptValueAsNode(Deprecated::ScriptValue value) > if (!value.isObject() || value.isNull()) > return nullptr; > >- return toNode(value.jsValue()); >+ return JSNode::toImpl(value.jsValue()); > } > > Deprecated::ScriptValue InspectorDOMAgent::nodeAsScriptValue(JSC::ExecState* state, Node* node) >diff --git a/Source/WebCore/mathml/MathMLMencloseElement.h b/Source/WebCore/mathml/MathMLMencloseElement.h >index dc69c11..ee97335 100755 >--- a/Source/WebCore/mathml/MathMLMencloseElement.h >+++ b/Source/WebCore/mathml/MathMLMencloseElement.h >@@ -50,8 +50,6 @@ private: > bool m_isRadicalValue; > }; > >-NODE_TYPE_CASTS(MathMLMencloseElement) >- > } > > #endif // ENABLE(MATHML) >diff --git a/Source/WebCore/svg/SVGAltGlyphDefElement.h b/Source/WebCore/svg/SVGAltGlyphDefElement.h >index acb2f35..c63e343 100644 >--- a/Source/WebCore/svg/SVGAltGlyphDefElement.h >+++ b/Source/WebCore/svg/SVGAltGlyphDefElement.h >@@ -38,8 +38,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGAltGlyphDefElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGAltGlyphElement.h b/Source/WebCore/svg/SVGAltGlyphElement.h >index 5095ab5..6be9f75 100644 >--- a/Source/WebCore/svg/SVGAltGlyphElement.h >+++ b/Source/WebCore/svg/SVGAltGlyphElement.h >@@ -55,8 +55,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGAltGlyphElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGAltGlyphItemElement.h b/Source/WebCore/svg/SVGAltGlyphItemElement.h >index 8249cb8..c7afe69 100644 >--- a/Source/WebCore/svg/SVGAltGlyphItemElement.h >+++ b/Source/WebCore/svg/SVGAltGlyphItemElement.h >@@ -38,8 +38,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGAltGlyphItemElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGAnimateMotionElement.h b/Source/WebCore/svg/SVGAnimateMotionElement.h >index 3667814..417d5f2 100644 >--- a/Source/WebCore/svg/SVGAnimateMotionElement.h >+++ b/Source/WebCore/svg/SVGAnimateMotionElement.h >@@ -70,8 +70,6 @@ private: > Path m_path; > Path m_animationPath; > }; >- >-NODE_TYPE_CASTS(SVGAnimateMotionElement) > > } // namespace WebCore > >diff --git a/Source/WebCore/svg/SVGAnimateTransformElement.h b/Source/WebCore/svg/SVGAnimateTransformElement.h >index bdcff70..b1a44ea 100644 >--- a/Source/WebCore/svg/SVGAnimateTransformElement.h >+++ b/Source/WebCore/svg/SVGAnimateTransformElement.h >@@ -47,8 +47,6 @@ private: > SVGTransform::SVGTransformType m_type; > }; > >-NODE_TYPE_CASTS(SVGAnimateTransformElement) >- > } // namespace WebCore > > #endif // SVGAnimateTransformElement_h >diff --git a/Source/WebCore/svg/SVGCircleElement.h b/Source/WebCore/svg/SVGCircleElement.h >index 079fa99..ec182db 100644 >--- a/Source/WebCore/svg/SVGCircleElement.h >+++ b/Source/WebCore/svg/SVGCircleElement.h >@@ -54,8 +54,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGCircleElement) >- > } // namespace WebCore > > #endif // SVGCircleElement_h >diff --git a/Source/WebCore/svg/SVGClipPathElement.h b/Source/WebCore/svg/SVGClipPathElement.h >index 8fdeb02..938cfb4 100644 >--- a/Source/WebCore/svg/SVGClipPathElement.h >+++ b/Source/WebCore/svg/SVGClipPathElement.h >@@ -56,8 +56,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGClipPathElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGCursorElement.h b/Source/WebCore/svg/SVGCursorElement.h >index a5301e4..ea223e8 100644 >--- a/Source/WebCore/svg/SVGCursorElement.h >+++ b/Source/WebCore/svg/SVGCursorElement.h >@@ -72,8 +72,6 @@ private: > HashSet<SVGElement*> m_clients; > }; > >-NODE_TYPE_CASTS(SVGCursorElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGEllipseElement.h b/Source/WebCore/svg/SVGEllipseElement.h >index d6b20f6..5b9f92c 100644 >--- a/Source/WebCore/svg/SVGEllipseElement.h >+++ b/Source/WebCore/svg/SVGEllipseElement.h >@@ -55,8 +55,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGEllipseElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEDistantLightElement.h b/Source/WebCore/svg/SVGFEDistantLightElement.h >index 799f6d5..60ea443 100644 >--- a/Source/WebCore/svg/SVGFEDistantLightElement.h >+++ b/Source/WebCore/svg/SVGFEDistantLightElement.h >@@ -34,8 +34,6 @@ private: > virtual PassRefPtr<LightSource> lightSource() const override; > }; > >-NODE_TYPE_CASTS(SVGFEDistantLightElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEFuncAElement.h b/Source/WebCore/svg/SVGFEFuncAElement.h >index 31ebb4f..a4e6ad5 100644 >--- a/Source/WebCore/svg/SVGFEFuncAElement.h >+++ b/Source/WebCore/svg/SVGFEFuncAElement.h >@@ -33,8 +33,6 @@ private: > SVGFEFuncAElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGFEFuncAElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEFuncBElement.h b/Source/WebCore/svg/SVGFEFuncBElement.h >index 35bc448..af49d6f 100644 >--- a/Source/WebCore/svg/SVGFEFuncBElement.h >+++ b/Source/WebCore/svg/SVGFEFuncBElement.h >@@ -33,8 +33,6 @@ private: > SVGFEFuncBElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGFEFuncBElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEFuncGElement.h b/Source/WebCore/svg/SVGFEFuncGElement.h >index 39857ed..1afa432 100644 >--- a/Source/WebCore/svg/SVGFEFuncGElement.h >+++ b/Source/WebCore/svg/SVGFEFuncGElement.h >@@ -33,8 +33,6 @@ private: > SVGFEFuncGElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGFEFuncGElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEFuncRElement.h b/Source/WebCore/svg/SVGFEFuncRElement.h >index 9e7327c..b0d0eb5 100644 >--- a/Source/WebCore/svg/SVGFEFuncRElement.h >+++ b/Source/WebCore/svg/SVGFEFuncRElement.h >@@ -33,8 +33,6 @@ private: > SVGFEFuncRElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGFEFuncRElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEMergeNodeElement.h b/Source/WebCore/svg/SVGFEMergeNodeElement.h >index 51597eb..7233f23 100644 >--- a/Source/WebCore/svg/SVGFEMergeNodeElement.h >+++ b/Source/WebCore/svg/SVGFEMergeNodeElement.h >@@ -44,8 +44,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGFEMergeNodeElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFEPointLightElement.h b/Source/WebCore/svg/SVGFEPointLightElement.h >index b701be5..3457924 100644 >--- a/Source/WebCore/svg/SVGFEPointLightElement.h >+++ b/Source/WebCore/svg/SVGFEPointLightElement.h >@@ -34,8 +34,6 @@ private: > virtual PassRefPtr<LightSource> lightSource() const override; > }; > >-NODE_TYPE_CASTS(SVGFEPointLightElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFESpotLightElement.h b/Source/WebCore/svg/SVGFESpotLightElement.h >index 8039af2..ff6b48c 100644 >--- a/Source/WebCore/svg/SVGFESpotLightElement.h >+++ b/Source/WebCore/svg/SVGFESpotLightElement.h >@@ -34,8 +34,6 @@ private: > virtual PassRefPtr<LightSource> lightSource() const override; > }; > >-NODE_TYPE_CASTS(SVGFESpotLightElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGFilterElement.h b/Source/WebCore/svg/SVGFilterElement.h >index 8ea73fb..1939e31 100644 >--- a/Source/WebCore/svg/SVGFilterElement.h >+++ b/Source/WebCore/svg/SVGFilterElement.h >@@ -75,8 +75,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGFilterElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGFontElement.h b/Source/WebCore/svg/SVGFontElement.h >index 8e4274d..eb5c46e 100644 >--- a/Source/WebCore/svg/SVGFontElement.h >+++ b/Source/WebCore/svg/SVGFontElement.h >@@ -102,8 +102,6 @@ private: > bool m_isGlyphCacheValid; > }; > >-NODE_TYPE_CASTS(SVGFontElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGFontFaceElement.h b/Source/WebCore/svg/SVGFontFaceElement.h >index 6a2116a..dcd01f2 100644 >--- a/Source/WebCore/svg/SVGFontFaceElement.h >+++ b/Source/WebCore/svg/SVGFontFaceElement.h >@@ -66,8 +66,6 @@ private: > SVGFontElement* m_fontElement; > }; > >-NODE_TYPE_CASTS(SVGFontFaceElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGFontFaceNameElement.h b/Source/WebCore/svg/SVGFontFaceNameElement.h >index 3f25445..c685f8a 100644 >--- a/Source/WebCore/svg/SVGFontFaceNameElement.h >+++ b/Source/WebCore/svg/SVGFontFaceNameElement.h >@@ -39,8 +39,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGFontFaceNameElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGFontFaceSrcElement.h b/Source/WebCore/svg/SVGFontFaceSrcElement.h >index 3b0914c..ba5a644 100644 >--- a/Source/WebCore/svg/SVGFontFaceSrcElement.h >+++ b/Source/WebCore/svg/SVGFontFaceSrcElement.h >@@ -40,8 +40,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGFontFaceSrcElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGFontFaceUriElement.h b/Source/WebCore/svg/SVGFontFaceUriElement.h >index 189a789..350f1fd 100644 >--- a/Source/WebCore/svg/SVGFontFaceUriElement.h >+++ b/Source/WebCore/svg/SVGFontFaceUriElement.h >@@ -50,8 +50,6 @@ private: > CachedResourceHandle<CachedFont> m_cachedFont; > }; > >-NODE_TYPE_CASTS(SVGFontFaceUriElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGForeignObjectElement.h b/Source/WebCore/svg/SVGForeignObjectElement.h >index 75bb74b..ab4d1af 100644 >--- a/Source/WebCore/svg/SVGForeignObjectElement.h >+++ b/Source/WebCore/svg/SVGForeignObjectElement.h >@@ -58,8 +58,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGForeignObjectElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGGlyphElement.h b/Source/WebCore/svg/SVGGlyphElement.h >index 7b7d38a..4009fb6 100644 >--- a/Source/WebCore/svg/SVGGlyphElement.h >+++ b/Source/WebCore/svg/SVGGlyphElement.h >@@ -57,8 +57,6 @@ private: > void invalidateGlyphCache(); > }; > >-NODE_TYPE_CASTS(SVGGlyphElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGGlyphRefElement.h b/Source/WebCore/svg/SVGGlyphRefElement.h >index 6d8cac7..464feec 100644 >--- a/Source/WebCore/svg/SVGGlyphRefElement.h >+++ b/Source/WebCore/svg/SVGGlyphRefElement.h >@@ -61,8 +61,6 @@ private: > float m_dy; > }; > >-NODE_TYPE_CASTS(SVGGlyphRefElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGHKernElement.h b/Source/WebCore/svg/SVGHKernElement.h >index e5d8b78f..1c19e05 100644 >--- a/Source/WebCore/svg/SVGHKernElement.h >+++ b/Source/WebCore/svg/SVGHKernElement.h >@@ -42,8 +42,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGHKernElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGImageElement.h b/Source/WebCore/svg/SVGImageElement.h >index 1a361c5..176761d 100644 >--- a/Source/WebCore/svg/SVGImageElement.h >+++ b/Source/WebCore/svg/SVGImageElement.h >@@ -72,8 +72,6 @@ private: > SVGImageLoader m_imageLoader; > }; > >-NODE_TYPE_CASTS(SVGImageElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGLineElement.h b/Source/WebCore/svg/SVGLineElement.h >index 64e7863..53fead6 100644 >--- a/Source/WebCore/svg/SVGLineElement.h >+++ b/Source/WebCore/svg/SVGLineElement.h >@@ -55,8 +55,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGLineElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGLinearGradientElement.h b/Source/WebCore/svg/SVGLinearGradientElement.h >index 68ac6b8..46d92de 100644 >--- a/Source/WebCore/svg/SVGLinearGradientElement.h >+++ b/Source/WebCore/svg/SVGLinearGradientElement.h >@@ -54,8 +54,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGLinearGradientElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGMPathElement.h b/Source/WebCore/svg/SVGMPathElement.h >index 9732648..1be64a6 100644 >--- a/Source/WebCore/svg/SVGMPathElement.h >+++ b/Source/WebCore/svg/SVGMPathElement.h >@@ -68,8 +68,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGMPathElement) >- > } // namespace WebCore > > #endif // SVGMPathElement_h >diff --git a/Source/WebCore/svg/SVGMarkerElement.h b/Source/WebCore/svg/SVGMarkerElement.h >index 1b930e6..b522cb7 100644 >--- a/Source/WebCore/svg/SVGMarkerElement.h >+++ b/Source/WebCore/svg/SVGMarkerElement.h >@@ -164,8 +164,6 @@ private: > mutable SVGSynchronizableAnimatedProperty<SVGMarkerOrientType> m_orientType; > }; > >-NODE_TYPE_CASTS(SVGMarkerElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGMaskElement.h b/Source/WebCore/svg/SVGMaskElement.h >index f50a946..22eddbc 100644 >--- a/Source/WebCore/svg/SVGMaskElement.h >+++ b/Source/WebCore/svg/SVGMaskElement.h >@@ -68,8 +68,6 @@ private: > virtual void synchronizeSystemLanguage() override { SVGTests::synchronizeSystemLanguage(this); } > }; > >-NODE_TYPE_CASTS(SVGMaskElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGMissingGlyphElement.h b/Source/WebCore/svg/SVGMissingGlyphElement.h >index f5637ee..94a4267 100644 >--- a/Source/WebCore/svg/SVGMissingGlyphElement.h >+++ b/Source/WebCore/svg/SVGMissingGlyphElement.h >@@ -36,8 +36,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGMissingGlyphElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGPathElement.h b/Source/WebCore/svg/SVGPathElement.h >index 021b6f1..b64b4c5 100644 >--- a/Source/WebCore/svg/SVGPathElement.h >+++ b/Source/WebCore/svg/SVGPathElement.h >@@ -129,8 +129,6 @@ private: > bool m_isAnimValObserved; > }; > >-NODE_TYPE_CASTS(SVGPathElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGPatternElement.h b/Source/WebCore/svg/SVGPatternElement.h >index 22c7c20..492cd68 100644 >--- a/Source/WebCore/svg/SVGPatternElement.h >+++ b/Source/WebCore/svg/SVGPatternElement.h >@@ -86,8 +86,6 @@ private: > virtual void synchronizeSystemLanguage() override { SVGTests::synchronizeSystemLanguage(this); } > }; > >-NODE_TYPE_CASTS(SVGPatternElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGPolygonElement.h b/Source/WebCore/svg/SVGPolygonElement.h >index a62de20..d90ddab 100644 >--- a/Source/WebCore/svg/SVGPolygonElement.h >+++ b/Source/WebCore/svg/SVGPolygonElement.h >@@ -33,8 +33,6 @@ private: > SVGPolygonElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGPolygonElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGPolylineElement.h b/Source/WebCore/svg/SVGPolylineElement.h >index 4b5e841..a091ec6 100644 >--- a/Source/WebCore/svg/SVGPolylineElement.h >+++ b/Source/WebCore/svg/SVGPolylineElement.h >@@ -33,8 +33,6 @@ private: > SVGPolylineElement(const QualifiedName&, Document&); > }; > >-NODE_TYPE_CASTS(SVGPolylineElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGRadialGradientElement.h b/Source/WebCore/svg/SVGRadialGradientElement.h >index e56fb2f..12bf4ed 100644 >--- a/Source/WebCore/svg/SVGRadialGradientElement.h >+++ b/Source/WebCore/svg/SVGRadialGradientElement.h >@@ -56,8 +56,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGRadialGradientElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGRectElement.h b/Source/WebCore/svg/SVGRectElement.h >index 72eb875..3cee8d9 100644 >--- a/Source/WebCore/svg/SVGRectElement.h >+++ b/Source/WebCore/svg/SVGRectElement.h >@@ -58,8 +58,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGRectElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGSVGElement.h b/Source/WebCore/svg/SVGSVGElement.h >index efb42ed..2782272 100644 >--- a/Source/WebCore/svg/SVGSVGElement.h >+++ b/Source/WebCore/svg/SVGSVGElement.h >@@ -175,8 +175,6 @@ private: > RefPtr<SVGViewSpec> m_viewSpec; > }; > >-NODE_TYPE_CASTS(SVGSVGElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGScriptElement.h b/Source/WebCore/svg/SVGScriptElement.h >index 572f79d..9acdbdb 100644 >--- a/Source/WebCore/svg/SVGScriptElement.h >+++ b/Source/WebCore/svg/SVGScriptElement.h >@@ -86,8 +86,6 @@ private: > Timer<SVGElement> m_svgLoadEventTimer; > }; > >-NODE_TYPE_CASTS(SVGScriptElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGStopElement.h b/Source/WebCore/svg/SVGStopElement.h >index d879b4e..7da37c6 100644 >--- a/Source/WebCore/svg/SVGStopElement.h >+++ b/Source/WebCore/svg/SVGStopElement.h >@@ -49,8 +49,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGStopElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGStyleElement.h b/Source/WebCore/svg/SVGStyleElement.h >index 6a91e38..1e73175 100644 >--- a/Source/WebCore/svg/SVGStyleElement.h >+++ b/Source/WebCore/svg/SVGStyleElement.h >@@ -68,8 +68,6 @@ private: > Timer<SVGElement> m_svgLoadEventTimer; > }; > >-NODE_TYPE_CASTS(SVGStyleElement) >- > } // namespace WebCore > > #endif // SVGStyleElement_h >diff --git a/Source/WebCore/svg/SVGTextElement.h b/Source/WebCore/svg/SVGTextElement.h >index a8c0b72..43084d5 100644 >--- a/Source/WebCore/svg/SVGTextElement.h >+++ b/Source/WebCore/svg/SVGTextElement.h >@@ -38,8 +38,6 @@ private: > virtual bool childShouldCreateRenderer(const Node&) const override; > }; > >-NODE_TYPE_CASTS(SVGTextElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGTextPathElement.h b/Source/WebCore/svg/SVGTextPathElement.h >index 0a4ff67..f244bc3 100644 >--- a/Source/WebCore/svg/SVGTextPathElement.h >+++ b/Source/WebCore/svg/SVGTextPathElement.h >@@ -143,8 +143,6 @@ private: > END_DECLARE_ANIMATED_PROPERTIES > }; > >-NODE_TYPE_CASTS(SVGTextPathElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGTitleElement.h b/Source/WebCore/svg/SVGTitleElement.h >index c84a603..075b239 100644 >--- a/Source/WebCore/svg/SVGTitleElement.h >+++ b/Source/WebCore/svg/SVGTitleElement.h >@@ -40,8 +40,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGTitleElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebCore/svg/SVGUseElement.h b/Source/WebCore/svg/SVGUseElement.h >index 3f10ee9..b732f18 100644 >--- a/Source/WebCore/svg/SVGUseElement.h >+++ b/Source/WebCore/svg/SVGUseElement.h >@@ -128,8 +128,6 @@ private: > Timer<SVGElement> m_svgLoadEventTimer; > }; > >-NODE_TYPE_CASTS(SVGUseElement) >- > } > > #endif >diff --git a/Source/WebCore/svg/SVGVKernElement.h b/Source/WebCore/svg/SVGVKernElement.h >index ce88de5..180bc76 100644 >--- a/Source/WebCore/svg/SVGVKernElement.h >+++ b/Source/WebCore/svg/SVGVKernElement.h >@@ -41,8 +41,6 @@ private: > virtual bool rendererIsNeeded(const RenderStyle&) override { return false; } > }; > >-NODE_TYPE_CASTS(SVGVKernElement) >- > } // namespace WebCore > > #endif // ENABLE(SVG_FONTS) >diff --git a/Source/WebCore/svg/SVGViewElement.h b/Source/WebCore/svg/SVGViewElement.h >index 251d730..4b44d9c 100644 >--- a/Source/WebCore/svg/SVGViewElement.h >+++ b/Source/WebCore/svg/SVGViewElement.h >@@ -65,8 +65,6 @@ private: > SVGStringList m_viewTarget; > }; > >-NODE_TYPE_CASTS(SVGViewElement) >- > } // namespace WebCore > > #endif >diff --git a/Source/WebKit/mac/DOM/WebDOMOperations.mm b/Source/WebKit/mac/DOM/WebDOMOperations.mm >index e4fb766..1054db6 100644 >--- a/Source/WebKit/mac/DOM/WebDOMOperations.mm >+++ b/Source/WebKit/mac/DOM/WebDOMOperations.mm >@@ -74,7 +74,7 @@ using namespace JSC; > > ExecState* exec = toJS(context); > JSLockHolder lock(exec); >- return kit(toElement(toJS(exec, value))); >+ return kit(JSElement::toImpl(toJS(exec, value))); > } > > @end >diff --git a/Source/WebKit/mac/WebView/WebView.mm b/Source/WebKit/mac/WebView/WebView.mm >index a6f3b54..9ce61b6 100644 >--- a/Source/WebKit/mac/WebView/WebView.mm >+++ b/Source/WebKit/mac/WebView/WebView.mm >@@ -8621,7 +8621,7 @@ static void glibContextIterationCallback(CFRunLoopObserverRef, CFRunLoopActivity > { > #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) > JSContextRef context = [[self mainFrame] globalContext]; >- WebCore::Notification* notification = toNotification(toJS(toJS(context), jsNotification)); >+ WebCore::Notification* notification = JSNotification::toImpl(toJS(toJS(context), jsNotification)); > return static_cast<WebNotificationClient*>(NotificationController::clientFrom(_private->page))->notificationIDForTesting(notification); > #else > return 0; >diff --git a/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp b/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp >index cdddc81..045a664 100644 >--- a/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp >+++ b/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp >@@ -70,7 +70,7 @@ static DOMHandleCache& domHandleCache() > > PassRefPtr<InjectedBundleNodeHandle> InjectedBundleNodeHandle::getOrCreate(JSContextRef, JSObjectRef object) > { >- Node* node = toNode(toJS(object)); >+ Node* node = JSNode::toImpl(toJS(object)); > return getOrCreate(node); > } > >diff --git a/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp b/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp >index f63391b..65f8e59 100644 >--- a/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp >+++ b/Source/WebKit2/WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp >@@ -57,7 +57,7 @@ static DOMHandleCache& domHandleCache() > > PassRefPtr<InjectedBundleRangeHandle> InjectedBundleRangeHandle::getOrCreate(JSContextRef, JSObjectRef object) > { >- Range* range = toRange(toJS(object)); >+ Range* range = JSRange::toImpl(toJS(object)); > return getOrCreate(range); > } > >diff --git a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp >index 1a6727b..b64e818 100644 >--- a/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp >+++ b/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp >@@ -597,7 +597,7 @@ void InjectedBundle::removeAllWebNotificationPermissions(WebPage* page) > uint64_t InjectedBundle::webNotificationID(JSContextRef jsContext, JSValueRef jsNotification) > { > #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS) >- WebCore::Notification* notification = toNotification(toJS(toJS(jsContext), jsNotification)); >+ WebCore::Notification* notification = JSNotification::toImpl(toJS(toJS(jsContext), jsNotification)); > if (!notification) > return 0; > return WebProcess::shared().supplement<WebNotificationManager>()->notificationIDForTesting(notification);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 136839
:
238220
|
238223
|
238226
|
238229
|
238265
|
238267
|
238321
|
238331
|
238338
|
238345
|
238439
|
238445