slint/internal/compiler/passes
Olivier Goffart 425b477874 Always keep the binding of the right in a two way binding
When having a binding such as
```
  foo <=> bar
```
The default value will always be the value of `bar` regardless what's
the value of foo.

This change of behavior is the only one that makes sense bacause if we
are having repeater or if, this will be a problem. eg:
```
property <xxx> bar;
if (some_cndition) : SomeElement {
   foo <=> bar;
}
```
Then we can't possibly take the default value of foo for the value of
bar since it depends on the condition. (and it is even worse in case of
repeater)

This is a change of behevior, this is why the tests have changed. The
cse of tests/cases/bindings/* were already covered by a warning since
0.3.0 so that should be fine. But the warning did not trigger for
builtin property such as `visible`  (eg, input/visible_mouse test)

Also some internal two way bindings had to be reversed.

cc: #1394
2022-11-04 15:32:20 +01:00
..
embed_glyphs switch to yeslogic-fontconfig-sys from servo-fontconfig 2022-10-05 15:21:54 +02:00
apply_default_properties_from_style.rs Always set Window.default-font-size 2022-11-03 17:15:44 +01:00
binding_analysis.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
check_aliases.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
check_expressions.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
check_public_api.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
check_rotation.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
clip.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
collect_custom_fonts.rs Begin rasterizing glyphs for glyph embedding 2022-02-15 15:52:24 +01:00
collect_globals.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
collect_structs.rs collect_structs: Also visit the type of array expression 2022-10-19 14:19:39 +02:00
collect_subcomponents.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
compile_paths.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
const_propagation.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
deduplicate_property_read.rs deduplicate_property_read: bail out if there is a write 2022-05-31 14:55:09 +02:00
default_geometry.rs Start working on input/output properties 2022-10-20 08:02:26 +02:00
embed_glyphs.rs Fix wasm build 2022-06-16 15:21:01 +02:00
embed_images.rs Bump resvg/usvg/tiny-skia dependencies 2022-11-01 10:44:33 +01:00
ensure_window.rs Change type of Window background from color to brush (#1755) 2022-10-21 16:17:22 +02:00
flickable.rs Always keep the binding of the right in a two way binding 2022-11-04 15:32:20 +01:00
focus_item.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
generate_item_indices.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
infer_aliases_types.rs New syntax: New lookup rules for unqualified identifier 2022-10-20 16:40:29 +02:00
inlining.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
lower_accessibility.rs Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
lower_layout.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
lower_popups.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
lower_property_to_element.rs Polish of the rotation feature 2022-08-30 12:10:42 +02:00
lower_shadows.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
lower_states.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
lower_tabwidget.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
materialize_fake_properties.rs New syntax: allow to create component without base 2022-10-26 18:09:57 +02:00
move_declarations.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
optimize_useless_rectangles.rs New syntax: allow to create component without base 2022-10-26 18:09:57 +02:00
remove_aliases.rs Always keep the binding of the right in a two way binding 2022-11-04 15:32:20 +01:00
remove_unused_properties.rs Update copyright information to reflect name change 2022-02-09 10:27:47 +01:00
repeater_component.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
resolve_native_classes.rs New syntax: allow to create component without base 2022-10-26 18:09:57 +02:00
resolving.rs New syntax: Make it an error to set the value of a builtin output property 2022-11-01 12:51:45 +01:00
unique_id.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
visible.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00
z_order.rs Refactoring: split ElementType away from the types used as property type 2022-10-26 14:50:44 +02:00