Repository navigation
Add fix / hack for compositor repainting tiles on scroll layers that have stale clipping results. - #7183
Conversation
|
r? @pcwalton |
|
Hmm, I wonder if it'd be easier to just get rid of the clip entirely for overflow:scroll layers (or set the clip to maximum). They aren't "clipped" as far as gfx is concerned, because the compositor manages their clipping. What do you think? |
|
@pcwalton My initial idea was to just set clip = ClippingRegion::max() in the overflow:scroll case, but this doesn't work - as other child display lists / stacking contexts still result in the items being clipped. Unless there is some other way you were thinking of doing it? |
|
I'm not sure why other child display lists or stacking contexts would result in the items being clipped any differently than usual. DL construction is a bottom-up process, so I'm not sure I see how the fact that a child stacking context is underneath an overflow:scroll flow would result in a clipping rectangle any different from a child stacking context directly underneath the |
|
That's true - I'll check the exact rect in that case that causes the clipping issue... |
…ale clipping results. Needed for servo#6643. Fixes servo#7153.
38c6da4 to
0458166
Compare
|
@pcwalton My original test case was incorrect - changed to a much simpler fix. |
|
@bors-servo: r+ |
|
📌 Commit 0458166 has been approved by |
Add fix / hack for compositor repainting tiles on scroll layers that have stale clipping results. Needed for #6643. Fixes #7153. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7183) <!-- Reviewable:end -->
Needed for #6643. Fixes #7153.