We need to invalidate a box local attached background when its layout overflow changes because the background is painted behind the whole scrolling contents. For now this paint invalidation is a full paint invalidation of the box.
With rootLayerScrolling enabled, LayoutView will become such a box. Appending contents at the end of the document will cause layout overflow change and full paint invalidation. Without rootLayerScrolling, paint invalidation works because LayoutView's paint invalidation rect is the layout overflow rect, so layout overflow change will cause paint invalidation rect change and we'll do an incremental invalidation of the changed part.
We may need to support incremental invalidation for the case because appending contents at the end of a document is a common case.
Comment 1 by wangxianzhu@chromium.org
, Oct 28 2016CC szager@ and skobes@: you can just rebaseline layout tests that fail with RLS because of this bug. They will look like: { "object": "LayoutView #document", + "rect": [0, 0, 1500, 585], + "reason": "layout overflow box change" - "rect": [1250, 0, 250, 585], - "reason": "incremental" },