Honor replaced visual methods and correct event contracts
Verify Tessera GUI / verify (push) Failing after 7m43s
Verify Tessera GUI / verify (push) Failing after 7m43s
This commit is contained in:
+12
-12
@@ -168,11 +168,15 @@ impl RenderCache {
|
||||
protocol_key.push_str(&definition.to_string());
|
||||
for name in ["measure", "arrange", "paint", "hitTest", "onEvent"] {
|
||||
if let Some(method) = store.lookup_method(definition, name)? {
|
||||
protocol_key.push_str(&format!("/{method}"));
|
||||
let version = store.change_version(method)?;
|
||||
protocol_key.push_str(&format!("/{method}:{version}"));
|
||||
dependencies.push(Dependency {
|
||||
object: method,
|
||||
property: None,
|
||||
});
|
||||
}
|
||||
}
|
||||
let event = store.lookup_method(definition, "onEvent")?;
|
||||
let mut native_event = None;
|
||||
let mut current = Some(definition);
|
||||
while let Some(definition) = current {
|
||||
dependencies.push(Dependency {
|
||||
@@ -180,18 +184,14 @@ impl RenderCache {
|
||||
property: None,
|
||||
});
|
||||
let item = store.payload::<endor_core::EndorTypeObject>(definition, "Type")?;
|
||||
if item.name() == "Block"
|
||||
&& item.base().is_some_and(|base| {
|
||||
store
|
||||
.payload::<endor_core::EndorTypeObject>(base, "Type")
|
||||
.is_ok_and(|base| base.base().is_none())
|
||||
})
|
||||
{
|
||||
native_event = store.lookup_method(definition, "onEvent")?;
|
||||
}
|
||||
current = item.base();
|
||||
}
|
||||
custom_event = event.is_some() && event != native_event;
|
||||
custom_event = event
|
||||
.map(|function| {
|
||||
crate::ui_bridge::is_intrinsic_event(store, function).map(|native| !native)
|
||||
})
|
||||
.transpose()?
|
||||
.unwrap_or(false);
|
||||
}
|
||||
let mut click_connection = false;
|
||||
for connection in &data.subscriptions {
|
||||
|
||||
Reference in New Issue
Block a user