mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:57:35 +00:00
LibWeb: Introduce CalculatedOr type
This is intended as a replacement for Length and friends each holding a `RefPtr<CalculatedStyleValue>`. Instead, let's make the types explicit about whether they are calculated or not. This then means a Length is always a Length, and won't require including `StyleValue.h`. As noted, it's probably nicer for LengthOrCalculated to live in `Length.h`, but we can't do that until Length stops including `StyleValue.h`.
This commit is contained in:
parent
b727f8113f
commit
fa90a3bb4f
5 changed files with 206 additions and 4 deletions
|
@ -16,6 +16,7 @@ set(SOURCES
|
|||
Crypto/Crypto.cpp
|
||||
Crypto/SubtleCrypto.cpp
|
||||
CSS/Angle.cpp
|
||||
CSS/CalculatedOr.cpp
|
||||
CSS/Clip.cpp
|
||||
CSS/CSS.cpp
|
||||
CSS/CSSConditionRule.cpp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue