dymokomi/luce-browser-engine
Source of release 0.6.0
0.6.0 / src / web / css / style_values / computation_context.lucb
#==============================================================================================
#
# computation_context - ComputationContext: what absolutizing a value needs
#
# DESCRIPTION:
# Port of the inline members of LibWeb/CSS/StyleValues/ComputationContext.h (lines 1-27).
#
# Copyright (c) 2025, Callum Law <callumlaw1709@outlook.com>
# SPDX-License-Identifier: BSD-2-Clause
#
#==============================================================================================
## Ported from Libraries/LibWeb/CSS/StyleValues/ComputationContext.h:20 Web::CSS::ComputationContext::visit_edges.
pub func css_computation_context_visit_edges(this: CssComputationContext*, visitor: gc.CellVisitor*):
if let abstract_element = this.abstract_element:
dom_abstract_element_visit(&abstract_element, visitor)