Connect native tab chrome to managed Page methods
Verify Tessera GUI / verify (push) Failing after 7m37s

This commit is contained in:
2026-10-21 17:29:54 +08:00
parent 76e293d3b8
commit 96319b13a3
13 changed files with 548 additions and 16 deletions
+18
View File
@@ -63,6 +63,24 @@ impl DisplayList {
self.commands.push(command);
}
pub fn translate(&mut self, delta: Point) {
for command in &mut self.commands {
match command {
DrawCommand::PushClip(rect)
| DrawCommand::FillRoundedRect { rect, .. }
| DrawCommand::StrokeRoundedRect { rect, .. } => {
rect.x += delta.x;
rect.y += delta.y;
}
DrawCommand::Text { origin, .. } => {
origin.x += delta.x;
origin.y += delta.y;
}
DrawCommand::Clear(_) | DrawCommand::PopClip => {}
}
}
}
pub fn commands(&self) -> &[DrawCommand] {
&self.commands
}