mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
LibWeb: Inline CSSStyleValue::to_keyword()
Shaves 120 ms of loading time off of https://wpt.fyi/
This commit is contained in:
committed by
Andreas Kling
parent
30cbd4bcfb
commit
c53c781745
@@ -364,13 +364,6 @@ bool CSSStyleValue::has_auto() const
|
||||
return is_keyword() && as_keyword().keyword() == Keyword::Auto;
|
||||
}
|
||||
|
||||
Keyword CSSStyleValue::to_keyword() const
|
||||
{
|
||||
if (is_keyword())
|
||||
return as_keyword().keyword();
|
||||
return Keyword::Invalid;
|
||||
}
|
||||
|
||||
int CSSStyleValue::to_font_weight() const
|
||||
{
|
||||
if (is_keyword()) {
|
||||
|
||||
Reference in New Issue
Block a user