Changeset 270115 in webkit
- Timestamp:
- Nov 20, 2020 7:45:47 AM (3 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r270114 r270115 1 2020-11-20 Don Olmstead <don.olmstead@sony.com> 2 3 Use final in generated callback code 4 https://bugs.webkit.org/show_bug.cgi?id=219169 5 6 Reviewed by Darin Adler. 7 8 Generated callbacks descend from ContextDestructionObserver and are final. The 9 scriptExecutionContext method is not virtual so adding override errors. Remove the virtual 10 for that case and mark the destructor as final. 11 12 Regenerated bindings through run-bindings-tests. 13 14 * bindings/scripts/CodeGeneratorJS.pm: 15 * bindings/scripts/test/JS/JSTestCallbackFunction.h: 16 * bindings/scripts/test/JS/JSTestCallbackFunctionRethrow.h: 17 * bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h: 18 * bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h: 19 * bindings/scripts/test/JS/JSTestCallbackInterface.h: 20 * bindings/scripts/test/JS/JSTestVoidCallbackFunction.h: 21 1 22 2020-11-20 Zalan Bujtas <zalan@apple.com> 2 23 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
r270042 r270115 6478 6478 push(@$contentRef, " }\n\n"); 6479 6479 6480 push(@$contentRef, " virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }\n\n");6481 6482 push(@$contentRef, " virtual ~$className();\n");6480 push(@$contentRef, " ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }\n\n"); 6481 6482 push(@$contentRef, " ~$className() final;\n"); 6483 6483 6484 6484 push(@$contentRef, " ${callbackDataType}* callbackData() { return m_data; }\n"); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunction.h
r221908 r270115 35 35 } 36 36 37 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }37 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 38 38 39 virtual ~JSTestCallbackFunction();39 ~JSTestCallbackFunction() final; 40 40 JSCallbackDataStrong* callbackData() { return m_data; } 41 41 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionRethrow.h
r221908 r270115 35 35 } 36 36 37 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }37 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 38 38 39 virtual ~JSTestCallbackFunctionRethrow();39 ~JSTestCallbackFunctionRethrow() final; 40 40 JSCallbackDataStrong* callbackData() { return m_data; } 41 41 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionWithThisObject.h
r266311 r270115 35 35 } 36 36 37 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }37 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 38 38 39 virtual ~JSTestCallbackFunctionWithThisObject();39 ~JSTestCallbackFunctionWithThisObject() final; 40 40 JSCallbackDataStrong* callbackData() { return m_data; } 41 41 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackFunctionWithTypedefs.h
r266311 r270115 35 35 } 36 36 37 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }37 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 38 38 39 virtual ~JSTestCallbackFunctionWithTypedefs();39 ~JSTestCallbackFunctionWithTypedefs() final; 40 40 JSCallbackDataStrong* callbackData() { return m_data; } 41 41 -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCallbackInterface.h
r266311 r270115 39 39 } 40 40 41 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }41 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 42 42 43 virtual ~JSTestCallbackInterface();43 ~JSTestCallbackInterface() final; 44 44 JSCallbackDataStrong* callbackData() { return m_data; } 45 45 static JSC::JSValue getConstructor(JSC::VM&, const JSC::JSGlobalObject*); -
trunk/Source/WebCore/bindings/scripts/test/JS/JSTestVoidCallbackFunction.h
r266311 r270115 37 37 } 38 38 39 virtualScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); }39 ScriptExecutionContext* scriptExecutionContext() const { return ContextDestructionObserver::scriptExecutionContext(); } 40 40 41 virtual ~JSTestVoidCallbackFunction();41 ~JSTestVoidCallbackFunction() final; 42 42 JSCallbackDataStrong* callbackData() { return m_data; } 43 43
Note: See TracChangeset
for help on using the changeset viewer.