Luce packages
LuceLuce BaseLuciaOS

dymokomi/luce-browser-engine

Source of release 0.6.0

0.6.0 / src / web / css / style_property.lucb

#==============================================================================================
#
#   style_property - StyleProperty: a longhand, its value and its importance
#
#   DESCRIPTION:
#       Port of LibWeb/CSS/StyleProperty.cpp (lines 1-21). The destructor is defaulted and has no
#       port; the `Important` enum moved down to css_syntax (DESIGN.md ยง4.1.3).
#
#       Copyright (c) 2023, Andreas Kling <andreas@ladybird.org>
#       SPDX-License-Identifier: BSD-2-Clause
#
#==============================================================================================

## Ported from Libraries/LibWeb/CSS/StyleProperty.cpp:14 Web::CSS::StyleProperty::operator==.
pub func css_style_property_eq(this: const CssStyleProperty*, other: CssStyleProperty) -> bool:
    if this.important != other.important or this.property_id != other.property_id:
        return false
    return css_style_value_equals(this.value, other.value)