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:
+1
-6
@@ -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()?;
|
||||
|
||||
Reference in New Issue
Block a user