1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 06:07:44 +00:00

LibWeb: Remove Document::is_scripting_enabled() and use Node's

There's no need to have a custom is_scripting_enabled() for the
Document class, as it (indirectly) inherits from Node.
Also, let's not hardcode false here :^)
This commit is contained in:
Linus Groh 2022-03-30 22:28:28 +01:00 committed by Andreas Kling
parent c79e4961f6
commit f60a2a1d80
3 changed files with 11 additions and 4 deletions

View file

@ -188,6 +188,7 @@ public:
bool is_host_including_inclusive_ancestor_of(const Node&) const;
bool is_scripting_enabled() const;
bool is_scripting_disabled() const;
bool contains(RefPtr<Node>) const;