mirror of
https://github.com/RGBCube/serenity
synced 2025-06-28 17:12:12 +00:00
LibWeb: Replace FlexFlowStyleValue with ShorthandStyleValue
This commit is contained in:
parent
aa45b3dfe3
commit
1ae515c0b7
10 changed files with 5 additions and 79 deletions
|
@ -39,7 +39,6 @@
|
|||
#include <LibWeb/CSS/StyleValues/DisplayStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/EasingStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FilterValueListStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FlexFlowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/FontStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridAreaShorthandStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/GridTrackPlacementShorthandStyleValue.h>
|
||||
|
@ -806,13 +805,6 @@ static void set_property_expanding_shorthands(StyleProperties& style, CSS::Prope
|
|||
}
|
||||
|
||||
if (property_id == CSS::PropertyID::FlexFlow) {
|
||||
if (value.is_flex_flow()) {
|
||||
auto const& flex_flow = value.as_flex_flow();
|
||||
set_longhand_property(CSS::PropertyID::FlexDirection, flex_flow.flex_direction());
|
||||
set_longhand_property(CSS::PropertyID::FlexWrap, flex_flow.flex_wrap());
|
||||
return;
|
||||
}
|
||||
|
||||
set_longhand_property(CSS::PropertyID::FlexDirection, value);
|
||||
set_longhand_property(CSS::PropertyID::FlexWrap, value);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue