@Override
 public void strokePath(Path path) {
   assert path instanceof HtmlPath;
   ((HtmlPath) path).replay(ctx);
   ctx.stroke();
   dirty = true;
 }
 @Override
 public void clip(Path path) {
   assert path instanceof HtmlPath;
   ((HtmlPath) path).replay(ctx);
   ctx.clip();
 }