mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:37:35 +00:00
LibWeb: Convert flex-basis to LengthPercentage
The flexbox logic confuses me so regressions are possible, though our test page looks the same as before so it should be fine. Renamed FlexBasis::Length -> LengthPercentage too, for clarity.
This commit is contained in:
parent
784ba2ec42
commit
cb0cce5cdc
5 changed files with 29 additions and 15 deletions
|
@ -112,7 +112,7 @@ enum class Cursor {
|
|||
|
||||
enum class FlexBasis {
|
||||
Content,
|
||||
Length,
|
||||
LengthPercentage,
|
||||
Auto,
|
||||
};
|
||||
|
||||
|
@ -1185,7 +1185,7 @@ private:
|
|||
|
||||
class PercentageStyleValue final : public StyleValue {
|
||||
public:
|
||||
static NonnullRefPtr<PercentageStyleValue> create(Percentage&& percentage)
|
||||
static NonnullRefPtr<PercentageStyleValue> create(Percentage percentage)
|
||||
{
|
||||
return adopt_ref(*new PercentageStyleValue(move(percentage)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue