summaryrefslogtreecommitdiff
path: root/Applications/DisplaySettings
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-21 15:14:02 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-21 15:15:52 +0200
commitaf51dc105a1ab91a01cb8e343980e96167350f5b (patch)
treea1b524d14b566e9cb294be29a08314ccef9c2f51 /Applications/DisplaySettings
parent1914f52371bbd846bf3d154493e3fb993a202a6e (diff)
downloadserenity-af51dc105a1ab91a01cb8e343980e96167350f5b.zip
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. :^)
Diffstat (limited to 'Applications/DisplaySettings')
0 files changed, 0 insertions, 0 deletions