While investigating the squashing contents rect on issue 715742 I discovered that we are creating a large rect and layer for content which we should be able to detect will not be visible.
On http://jsfiddle.net/t4q7o36r/18, there is a large squashing layer with origin at -15286px. This leads us to create a mostly empty 98.4MB squashing layer on a typical android screen.
I found out the super large squashing layer came from the text-indent: -900em; on the #home element. This makes its visual overflow rect very large which then became the bounds of the squashing layer. They seem to be doing this to have the text JSFiddle drawn offscreen so that if you copy that icon you get the text JSFiddle but they can draw a custom logo instead with the actual text offscreen.
We should be able to clip layers which extend beyond the frame's scrollable area if we are pretty sure they aren't going to move. This would bring the particular layer down to 6MB.
Comment 1 by flackr@chromium.org
, May 8 2017Status: Assigned (was: Untriaged)