Skip to content

Add fix / hack for compositor repainting tiles on scroll layers that have stale clipping results. - #7183

Merged
bors-servo merged 1 commit into
servo:masterfrom
glennw:scroll-clipping
Aug 13, 2015
Merged

bors-servo merged 1 commit into
servo:masterfrom
glennw:scroll-clipping

Conversation

@glennw

@glennw glennw commented Aug 13, 2015

Copy link
Copy Markdown
Member

Needed for #6643. Fixes #7153.

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Aug 13, 2015
@highfive

Copy link
Copy Markdown

warning Warning warning

  • These commits modify layout code, but no reftests are modified. Please consider adding a reftest!

@glennw

glennw commented Aug 13, 2015

Copy link
Copy Markdown
Member Author

r? @pcwalton

@metajack metajack mentioned this pull request Aug 13, 2015
28 of 40 tasks
@pcwalton

Copy link
Copy Markdown
Contributor

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?

@glennw

glennw commented Aug 13, 2015

Copy link
Copy Markdown
Member Author

@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?

@pcwalton

Copy link
Copy Markdown
Contributor

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 <body>, say. I must be missing something…

@glennw

glennw commented Aug 13, 2015

Copy link
Copy Markdown
Member Author

That's true - I'll check the exact rect in that case that causes the clipping issue...

@glennw

glennw commented Aug 13, 2015

Copy link
Copy Markdown
Member Author

@pcwalton My original test case was incorrect - changed to a much simpler fix.

@pcwalton

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 0458166 has been approved by pcwalton

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Aug 13, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 0458166 with merge 8f55af1...

bors-servo pushed a commit that referenced this pull request Aug 13, 2015
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 -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, mac1, mac2, mac3

@bors-servo
bors-servo merged commit 0458166 into servo:master Aug 13, 2015
@glennw
glennw deleted the scroll-clipping branch December 12, 2016 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants