mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/CSS: Merge RotationStyleValue into TransformationStyleValue
Same again, although rotation is more complicated: `rotate` is "equivalent to" multiple different transform function depending on its arguments. So we can parse as one of those instead of the full `rotate3d()`, but then need to handle this when serializing.
This commit is contained in:
committed by
Andreas Kling
parent
03a4ecce19
commit
b3b9eea986
Notes:
github-actions[bot]
2025-01-17 09:15:17 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/b3b9eea986b Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3263
@@ -48,7 +48,6 @@
|
||||
#include <LibWeb/CSS/StyleValues/RatioStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RectStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ResolutionStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/RotationStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ScrollbarGutterStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ShadowStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ShorthandStyleValue.h>
|
||||
@@ -295,12 +294,6 @@ ResolutionStyleValue const& CSSStyleValue::as_resolution() const
|
||||
return static_cast<ResolutionStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
RotationStyleValue const& CSSStyleValue::as_rotation() const
|
||||
{
|
||||
VERIFY(is_rotation());
|
||||
return static_cast<RotationStyleValue const&>(*this);
|
||||
}
|
||||
|
||||
ScrollbarGutterStyleValue const& CSSStyleValue::as_scrollbar_gutter() const
|
||||
{
|
||||
VERIFY(is_scrollbar_gutter());
|
||||
|
||||
Reference in New Issue
Block a user