Skip to content

Fix forced repaint on image load - #10197

Merged
bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:force-repaint
Mar 25, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
mbrubeck:force-repaint

Conversation

@mbrubeck

Copy link
Copy Markdown
Contributor

After #10021, LayoutThread::repaint no longer forced a repaint because of the restyle_damage check. This patch adds the correct restyle damage and fixes #10163.

r? @pcwalton


This change is Reviewable

After servo#10021, `LayoutThread::repaint` no longer forced a repaint because of
the `restyle_damage` check.  This patch adds the correct restyle damage and
fixes servo#10163.
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Mar 25, 2016
@highfive

Copy link
Copy Markdown

warning Warning warning

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

@mbrubeck

Copy link
Copy Markdown
Contributor Author

I can't easily test this because we disable async image loading when running reftests.

@pcwalton

Copy link
Copy Markdown
Contributor

Huh, I was working on my own implementation of this. I was under the impression that background images have no mechanism of triggering reflows at all when loaded (as opposed to <img> tags). Still, this looks like obviously the right thing to do…

@pcwalton

Copy link
Copy Markdown
Contributor

@bors-servo: r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit afb36ec has been approved by pcwalton

@highfive highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Mar 25, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit afb36ec with merge 8984d95...

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Mar 25, 2016
bors-servo pushed a commit that referenced this pull request Mar 25, 2016
Fix forced repaint on image load

After #10021, `LayoutThread::repaint` no longer forced a repaint because of the `restyle_damage` check.  This patch adds the correct restyle damage and fixes #10163.

r? @pcwalton

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10197)
<!-- Reviewable:end -->
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor

@bors-servo
bors-servo merged commit afb36ec into servo:master Mar 25, 2016
@mbrubeck
mbrubeck deleted the force-repaint branch May 11, 2016 03:48
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.

regression: background images painted only after reflow

4 participants