From 9eed33b1cf17485e4400827fb9b41a56cf298449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20=C5=A0olt=C3=A9s?= Date: Sat, 19 Sep 2026 15:58:32 +0200 Subject: [PATCH] Complete compiled selector value comparison --- .../native/webscene_css_state.h | 2 ++ tests/NativeWeb/shared_styles.cpp | 7 +++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h b/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h index ab829bf7d..795fbe037 100644 --- a/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h +++ b/experiments/WebScene.NativeEngine.Probe/native/webscene_css_state.h @@ -49,6 +49,8 @@ struct compiled_css_attribute final { uint8_t operator_kind{0}; std::string value; uint8_t case_sensitivity{0}; + + bool operator==(const compiled_css_attribute&) const = default; }; struct compiled_css_compound final { diff --git a/tests/NativeWeb/shared_styles.cpp b/tests/NativeWeb/shared_styles.cpp index b165a58f4..b6a0651e9 100644 --- a/tests/NativeWeb/shared_styles.cpp +++ b/tests/NativeWeb/shared_styles.cpp @@ -124,10 +124,13 @@ void compare_selector(const webscene_native::css::compiled_css_selector& a, require(a.compiled_compounds.size()==b.compiled_compounds.size()); for(size_t i=0;i