Honor replaced visual methods and correct event contracts
Verify Tessera GUI / verify (push) Failing after 7m43s

This commit is contained in:
2026-10-22 19:08:28 +08:00
parent 8d0dbbce29
commit 2b20976658
10 changed files with 349 additions and 44 deletions
+1 -6
View File
@@ -189,11 +189,6 @@ impl NativeCallable for Prepare {
}
fn invoke(&self, cx: &mut NativeContext<'_>, _: &[Value]) -> Result<NativeResult, VmError> {
let block_type = named_type(cx.store(), self.desktop, "Block")?;
let native = cx
.store()
.lookup_method(block_type, "paint")?
.ok_or(invalid("missing native paint"))?;
let mut constants = Vec::new();
let mut instructions = Vec::new();
for (id, weak) in &self.mounts {
@@ -212,7 +207,7 @@ impl NativeCallable for Prepare {
.store()
.lookup_method(definition, "paint")?
.ok_or(invalid("missing paint method"))?;
if function == native {
if crate::native_visual::is_intrinsic(cx.store(), function, "paint", self.desktop)? {
continue;
}
let bounds = cx.new_object()?;