Fix the src attribute for non-debug chimeras

Also set their width/height to 0px

Bug: T77905
Change-Id: Ifa89a85e779e8d100c52872667bf5a4990a25734
Track state properly at the end of an event loop

Previously, doneOnLoop was only reset if the user set an after*Listener.

Change-Id: I5a043ee277504fe47c82d4c5409e54a8c39f2b10
Merge "Fix the src attribute for non-debug chimeras"
Merge "Track state properly at the end of an event loop"