LibWeb/CSS: Remove unused checks for calculated dimension types
These are a remnant of when Length itself could hold a pointer to a CalculatedStyleValue. That hasn't been the case for a long time now.
This commit is contained in:
parent
9b79081a06
commit
35cb6badc2
Notes:
github-actions[bot]
2024-09-18 19:39:42 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/35cb6badc20 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1433
1 changed files with 1 additions and 15 deletions
|
@ -56,11 +56,7 @@ public:
|
|||
bool contains_percentage() const
|
||||
{
|
||||
return m_value.visit(
|
||||
[&](T const& t) {
|
||||
if constexpr (requires { t.is_calculated(); }) {
|
||||
if (t.is_calculated())
|
||||
return t.calculated_style_value()->contains_percentage();
|
||||
}
|
||||
[&](T const&) {
|
||||
return false;
|
||||
},
|
||||
[&](Percentage const&) {
|
||||
|
@ -99,11 +95,6 @@ public:
|
|||
{
|
||||
return m_value.visit(
|
||||
[&](T const& t) {
|
||||
if constexpr (requires { t.is_calculated(); }) {
|
||||
if (t.is_calculated())
|
||||
return T::resolve_calculated(t.calculated_style_value(), layout_node, reference_value);
|
||||
}
|
||||
|
||||
return t;
|
||||
},
|
||||
[&](Percentage const& percentage) {
|
||||
|
@ -118,11 +109,6 @@ public:
|
|||
{
|
||||
return m_value.visit(
|
||||
[&](T const& t) {
|
||||
if constexpr (requires { t.is_calculated(); }) {
|
||||
if (t.is_calculated())
|
||||
return T::resolve_calculated(t.calculated_style_value(), layout_node, reference_value);
|
||||
}
|
||||
|
||||
return t;
|
||||
},
|
||||
[&](Percentage const& percentage) {
|
||||
|
|
Loading…
Add table
Reference in a new issue