mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-25 10:48:53 +00:00
LibWeb: Cache and reuse some very common StyleValue objects
Length values: auto, 0px, 1px Color values: black, white, transparent
This commit is contained in:
parent
141b01d3e3
commit
bfe69e9d0d
Notes:
sideshowbarker
2024-07-17 18:32:19 +09:00
Author: https://github.com/awesomekling
Commit: bfe69e9d0d
3 changed files with 42 additions and 8 deletions
|
@ -48,6 +48,7 @@ public:
|
|||
|
||||
bool is_auto() const { return m_type == Type::Auto; }
|
||||
bool is_calculated() const { return m_type == Type::Calculated; }
|
||||
bool is_px() const { return m_type == Type::Px; }
|
||||
|
||||
bool is_absolute() const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue