moving content off screen starts to invalidate as soon only the background is visible




6 years ago
6 years ago


(Reporter: gal, Unassigned)


Mac OS X

Firefox Tracking Flags

(Not tracked)



(1 attachment)



6 years ago
Ok, this is a really odd one. Its part deux of bug 726545. There we had scroll bars pop up and cause invalidation when moving to the right. Here we set overflow hidden and move to the left and all is good, until the text completely disappears and only the background of the div remains (also white), at which point we start invalidating the remaining parts of the div. Awesome!

Comment 1

6 years ago
Created attachment 596626 [details]
test case
In this case, we get into a situation where nothing in the div is visible, so it gets no layer. Then its transform changes, InvalidateTransformLayer gets called, and finds no layer, so decides to invalidate the entire frame bounds.

It's not immediately obvious to me how to fix this. But maybe that's just because I need sleep. Display-list-based-invalidation will fix it, of course.
I don't see any invalidation in this test with the fix for bug 725580 applied.  (How long am I supposed to run it?)  But I need to sleep too.
That makes sense. Please land bug 725580, then we should be done here.
Depends on: 725580
Waiting on mattwoodrow in the bug you asked me to depend on.
You need to log in before you can comment on or make changes to this bug.