now that we do not use this code path to scroll inner frames (instead we use AC layers!), we can have a couple of patches that make it look simpler, and even faster.
Created attachment 168713 [details] patch I (landed r131305)
Created attachment 168733 [details] patch 2 (landed r131314)