mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:57:35 +00:00
LibWeb: Use CSS::Number for CalculatedStyleValue numbers
This commit is contained in:
parent
fe372cd073
commit
c0d3f1a5e4
3 changed files with 25 additions and 47 deletions
|
@ -27,6 +27,7 @@
|
|||
#include <LibWeb/CSS/Display.h>
|
||||
#include <LibWeb/CSS/Frequency.h>
|
||||
#include <LibWeb/CSS/Length.h>
|
||||
#include <LibWeb/CSS/Number.h>
|
||||
#include <LibWeb/CSS/Parser/StyleComponentValueRule.h>
|
||||
#include <LibWeb/CSS/Percentage.h>
|
||||
#include <LibWeb/CSS/PropertyID.h>
|
||||
|
@ -808,11 +809,6 @@ public:
|
|||
Divide,
|
||||
};
|
||||
|
||||
struct Number {
|
||||
bool is_integer;
|
||||
float value;
|
||||
};
|
||||
|
||||
using PercentageBasis = Variant<Empty, Angle, Frequency, Length, Time>;
|
||||
|
||||
class CalculationResult {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue