I knew that what you edit in html folder of template should not be overwritten when you update template, but few minutes ago I updated template to 2.5.19 and edits I made to frontend edit form file in html/com_content/form folder was changed so I lost my edits.
I was able to restore backup and get back my edits, but I am curious why it happened.