1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 22:25:07 +00:00
serenity/Libraries/LibWeb/CodeGenerators
Andreas Kling af51dc105a LibJS+LibWeb: Add JS::Object::inherits(class_name)
To allow implementing the DOM class hierarchy in JS bindings, this
patch adds an inherits() function that can be used to ask an Object
if it inherits from a specific C++ class (by name).

The necessary overrides are baked into each Object subclass by the
new JS_OBJECT macro, which works similarly to C_OBJECT in LibCore.

Thanks to @Dexesttp for suggesting this approach. :^)
2020-06-21 15:15:52 +02:00
..
CMakeLists.txt LibWeb: Start generating JS wrappers from (simplified) WebIDL :^) 2020-06-21 00:58:55 +02:00
Generate_CSS_PropertyID_cpp.cpp AK: JsonParser improvements 2020-06-13 12:43:22 +02:00
Generate_CSS_PropertyID_h.cpp AK: JsonParser improvements 2020-06-13 12:43:22 +02:00
WrapperGenerator.cpp LibJS+LibWeb: Add JS::Object::inherits(class_name) 2020-06-21 15:15:52 +02:00