summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/StyleValue.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2021-09-22 19:59:40 +0100
committerAndreas Kling <kling@serenityos.org>2021-09-23 17:47:40 +0200
commit603f611cebea79b15970a7d1b1ffd1f2f66bc5c5 (patch)
tree31d081b4ad0db27fb139b62f19661305bdce09de /Userland/Libraries/LibWeb/CSS/StyleValue.h
parent4a1dbb4f36c1289f6af9caaeb9d8d0a29d5d136c (diff)
downloadserenity-603f611cebea79b15970a7d1b1ffd1f2f66bc5c5.zip
LibWeb: Sort StyleValue enums alphabetically
I was finding it impossible to find them.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.h')
-rw-r--r--Userland/Libraries/LibWeb/CSS/StyleValue.h184
1 files changed, 92 insertions, 92 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.h b/Userland/Libraries/LibWeb/CSS/StyleValue.h
index 537b72a774..d9b894ab29 100644
--- a/Userland/Libraries/LibWeb/CSS/StyleValue.h
+++ b/Userland/Libraries/LibWeb/CSS/StyleValue.h
@@ -30,88 +30,12 @@
namespace Web::CSS {
-enum class Position {
- Static,
- Relative,
- Absolute,
- Fixed,
- Sticky,
-};
-
-enum class TextAlign {
- Left,
+enum class AlignItems {
+ FlexStart,
+ FlexEnd,
Center,
- Right,
- Justify,
- LibwebCenter,
-};
-
-enum class TextDecorationLine {
- None,
- Underline,
- Overline,
- LineThrough,
- Blink,
-};
-
-enum class TextTransform {
- None,
- Capitalize,
- Uppercase,
- Lowercase,
- FullWidth,
- FullSizeKana,
-};
-
-enum class Display {
- None,
- Block,
- Inline,
- InlineBlock,
- ListItem,
- Table,
- TableRow,
- TableCell,
- TableHeaderGroup,
- TableRowGroup,
- TableFooterGroup,
- TableColumn,
- TableColumnGroup,
- TableCaption,
- Flex,
-};
-
-enum class FlexDirection {
- Row,
- RowReverse,
- Column,
- ColumnReverse,
-};
-
-enum class FlexWrap {
- Nowrap,
- Wrap,
- WrapReverse
-};
-
-enum class FlexBasis {
- Content,
- Length,
- Auto,
-};
-
-enum class WhiteSpace {
- Normal,
- Pre,
- Nowrap,
- PreLine,
- PreWrap,
-};
-
-enum class Float {
- None,
- Left,
- Right,
+ Baseline,
+ Stretch,
};
enum class Clear {
@@ -160,6 +84,57 @@ enum class Cursor {
ZoomOut,
};
+enum class Display {
+ None,
+ Block,
+ Inline,
+ InlineBlock,
+ ListItem,
+ Table,
+ TableRow,
+ TableCell,
+ TableHeaderGroup,
+ TableRowGroup,
+ TableFooterGroup,
+ TableColumn,
+ TableColumnGroup,
+ TableCaption,
+ Flex,
+};
+
+enum class FlexBasis {
+ Content,
+ Length,
+ Auto,
+};
+
+enum class FlexDirection {
+ Row,
+ RowReverse,
+ Column,
+ ColumnReverse,
+};
+
+enum class FlexWrap {
+ Nowrap,
+ Wrap,
+ WrapReverse
+};
+
+enum class Float {
+ None,
+ Left,
+ Right,
+};
+
+enum class JustifyContent {
+ FlexStart,
+ FlexEnd,
+ Center,
+ SpaceBetween,
+ SpaceAround,
+};
+
enum class LineStyle {
None,
Hidden,
@@ -196,6 +171,14 @@ enum class Overflow : u8 {
Visible,
};
+enum class Position {
+ Static,
+ Relative,
+ Absolute,
+ Fixed,
+ Sticky,
+};
+
enum class Repeat : u8 {
NoRepeat,
Repeat,
@@ -203,26 +186,43 @@ enum class Repeat : u8 {
Space,
};
-enum class JustifyContent {
- FlexStart,
- FlexEnd,
+enum class TextAlign {
+ Left,
Center,
- SpaceBetween,
- SpaceAround,
+ Right,
+ Justify,
+ LibwebCenter,
};
-enum class AlignItems {
- FlexStart,
- FlexEnd,
- Center,
- Baseline,
- Stretch,
+enum class TextDecorationLine {
+ None,
+ Underline,
+ Overline,
+ LineThrough,
+ Blink,
+};
+
+enum class TextTransform {
+ None,
+ Capitalize,
+ Uppercase,
+ Lowercase,
+ FullWidth,
+ FullSizeKana,
};
enum class TransformFunction {
TranslateY,
};
+enum class WhiteSpace {
+ Normal,
+ Pre,
+ Nowrap,
+ PreLine,
+ PreWrap,
+};
+
class StyleValue : public RefCounted<StyleValue> {
public:
virtual ~StyleValue();