2025-10-01 01:36:05 +13:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2025, Callum Law <callumlaw1709@outlook.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/CSS/Length.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::CSS {
|
|
|
|
|
|
2025-09-30 16:45:37 +13:00
|
|
|
struct TreeCountingFunctionResolutionContext {
|
|
|
|
|
size_t sibling_count;
|
|
|
|
|
size_t sibling_index;
|
|
|
|
|
};
|
|
|
|
|
|
2025-10-01 01:36:05 +13:00
|
|
|
struct ComputationContext {
|
|
|
|
|
Length::ResolutionContext length_resolution_context;
|
2025-09-30 16:45:37 +13:00
|
|
|
Optional<TreeCountingFunctionResolutionContext> tree_counting_function_resolution_context {};
|
2025-10-01 01:36:05 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|