mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:17:36 +00:00
LibWeb+LibJS: Move some code around to make CSS/Parser parse faster
This makes it possible to include fewer full definitions of things, which makes the file about 30% faster to compile.
This commit is contained in:
parent
392b5c3b19
commit
06c6c40df9
28 changed files with 117 additions and 64 deletions
|
@ -20,10 +20,7 @@ class CSSKeyframeRule final : public CSSRule {
|
|||
WEB_PLATFORM_OBJECT(CSSKeyframeRule, CSSRule);
|
||||
|
||||
public:
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSKeyframeRule>> create(JS::Realm& realm, CSS::Percentage key, CSSStyleDeclaration& declarations)
|
||||
{
|
||||
return MUST_OR_THROW_OOM(realm.heap().allocate<CSSKeyframeRule>(realm, realm, key, declarations));
|
||||
}
|
||||
static WebIDL::ExceptionOr<JS::NonnullGCPtr<CSSKeyframeRule>> create(JS::Realm& realm, CSS::Percentage key, CSSStyleDeclaration& declarations);
|
||||
|
||||
virtual ~CSSKeyframeRule() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue