Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Enable DOM class create functions to take parameters in case of JSBui…
…ltinConstructor https://bugs.webkit.org/show_bug.cgi?id=155022 Reviewed by Darin Adler. Introducing JSDOMObjectInspector to check whether a given JS class is built-in (no DOM class). If that is not the case, the JS class wraps a DOM class. The inspector detects whether the DOM class create static method takes no parameter or some parameters. This is used in JSDOMConstructor.h to generate correctly the createJSObject functions needed by JSBuiltinConstructor. Updated binding generator to not generate anymore createJSObject as it is handled directly in JSDOMConstructor.h. Covered by existing tests. * bindings/js/JSDOMConstructor.h: (WebCore::JSBuiltinConstructor<JSClass>::callConstructor): (WebCore::createJSObject): (WebCore::JSBuiltinConstructor<JSClass>::construct): * bindings/js/JSDOMWrapper.h: * bindings/js/JSKeyValueIterator.h: Taking benefit of JSClass::DOMWrapper type declaration. * bindings/js/JSReadableStreamPrivateConstructors.cpp: (WebCore::JSBuiltinReadableStreamReaderPrivateConstructor::initializeExecutable): Deleted. (WebCore::JSBuiltinReadableStreamControllerPrivateConstructor::initializeExecutable): Deleted. * bindings/scripts/CodeGeneratorJS.pm: (GenerateConstructorDefinition): Deleted. * bindings/scripts/test/JS/JSTestClassWithJSBuiltinConstructor.cpp: (WebCore::JSTestClassWithJSBuiltinConstructorConstructor::prototypeForStructure): Deleted. Canonical link: https://commits.webkit.org/173176@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@197642 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
7 changed files
with
96 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters