New issue
Advanced search Search tips

Issue 719607 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Clip offscreen layer bounds which cannot be scrolled into view

Project Member Reported by flackr@chromium.org, May 8 2017

Issue description

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.
 
Owner: flackr@chromium.org
Status: Assigned (was: Untriaged)
I can put up a patch for this.

Sign in to add a comment