mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
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: 35cb6badc2
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
|
bool contains_percentage() const
|
||||||
{
|
{
|
||||||
return m_value.visit(
|
return m_value.visit(
|
||||||
[&](T const& t) {
|
[&](T const&) {
|
||||||
if constexpr (requires { t.is_calculated(); }) {
|
|
||||||
if (t.is_calculated())
|
|
||||||
return t.calculated_style_value()->contains_percentage();
|
|
||||||
}
|
|
||||||
return false;
|
return false;
|
||||||
},
|
},
|
||||||
[&](Percentage const&) {
|
[&](Percentage const&) {
|
||||||
|
@ -99,11 +95,6 @@ public:
|
||||||
{
|
{
|
||||||
return m_value.visit(
|
return m_value.visit(
|
||||||
[&](T const& t) {
|
[&](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;
|
return t;
|
||||||
},
|
},
|
||||||
[&](Percentage const& percentage) {
|
[&](Percentage const& percentage) {
|
||||||
|
@ -118,11 +109,6 @@ public:
|
||||||
{
|
{
|
||||||
return m_value.visit(
|
return m_value.visit(
|
||||||
[&](T const& t) {
|
[&](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;
|
return t;
|
||||||
},
|
},
|
||||||
[&](Percentage const& percentage) {
|
[&](Percentage const& percentage) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue