mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +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:
parent
c79e4961f6
commit
f60a2a1d80
3 changed files with 11 additions and 4 deletions
|
@ -70,8 +70,6 @@ public:
|
|||
Origin origin() const;
|
||||
void set_origin(const Origin& origin);
|
||||
|
||||
bool is_scripting_enabled() const { return true; }
|
||||
|
||||
AK::URL parse_url(String const&) const;
|
||||
|
||||
CSS::StyleComputer& style_computer() { return *m_style_computer; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue