mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 14:28:49 +00:00
LibWeb: Only set prototype once for object with IDL interface
Before this change, we were going through the chain of base classes for each IDL interface object and having them set the prototype to their prototype. Instead of doing that, reorder things so that we set the right prototype immediately in Foo::initialize(), and then don't bother in all the base class overrides. This knocks off a ~1% profile item on Speedometer 3.
This commit is contained in:
parent
7884e58b5c
commit
a6dfc74e93
Notes:
github-actions[bot]
2025-04-20 16:44:17 +00:00
Author: https://github.com/awesomekling
Commit: a6dfc74e93
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4408
417 changed files with 423 additions and 423 deletions
|
@ -31,8 +31,8 @@ HTMLProgressElement::~HTMLProgressElement() = default;
|
|||
|
||||
void HTMLProgressElement::initialize(JS::Realm& realm)
|
||||
{
|
||||
Base::initialize(realm);
|
||||
WEB_SET_PROTOTYPE_FOR_INTERFACE(HTMLProgressElement);
|
||||
Base::initialize(realm);
|
||||
}
|
||||
|
||||
void HTMLProgressElement::visit_edges(Cell::Visitor& visitor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue