mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 15:49:11 +00:00
LibWeb: Support individual translate
CSS property
This commit is contained in:
parent
6836d4edb1
commit
66a821e731
Notes:
github-actions[bot]
2024-11-22 19:07:48 +00:00
Author: https://github.com/awesomekling
Commit: 66a821e731
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2506
Reviewed-by: https://github.com/shannonbooth
22 changed files with 267 additions and 80 deletions
|
@ -132,6 +132,7 @@ public:
|
|||
Time,
|
||||
Transformation,
|
||||
Transition,
|
||||
Translation,
|
||||
Unresolved,
|
||||
URL,
|
||||
ValueList,
|
||||
|
@ -322,6 +323,10 @@ public:
|
|||
TransitionStyleValue const& as_transition() const;
|
||||
TransitionStyleValue& as_transition() { return const_cast<TransitionStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_transition()); }
|
||||
|
||||
bool is_translation() const { return type() == Type::Translation; }
|
||||
TranslationStyleValue const& as_translation() const;
|
||||
TranslationStyleValue& as_translation() { return const_cast<TranslationStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_translation()); }
|
||||
|
||||
bool is_unresolved() const { return type() == Type::Unresolved; }
|
||||
UnresolvedStyleValue const& as_unresolved() const;
|
||||
UnresolvedStyleValue& as_unresolved() { return const_cast<UnresolvedStyleValue&>(const_cast<CSSStyleValue const&>(*this).as_unresolved()); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue