Skip to content

Stop ticking animations on non-dirty nodes during traversal - #13866

Merged
bors-servo merged 1 commit into
servo:masterfrom
bholley:expire_animations
Oct 21, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
bholley:expire_animations

Conversation

@bholley

@bholley bholley commented Oct 21, 2016 •

Copy link
Copy Markdown
Contributor

See #13865.

r? @emilio


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/script_thread.rs
  • @fitzgen: components/script/script_thread.rs
  • @emilio: components/style/traversal.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Oct 21, 2016

@emilio emilio left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me with that

let node = unsafe { node.get_jsmanaged().get_for_script() };
let window = window_from_node(node);

node.dirty(NodeDamage::NodeStyleDamaged);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you point to #13865 here too?

@bholley

bholley commented Oct 21, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo r=emilio

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit b493565 has been approved by emilio

@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 Oct 21, 2016
@bholley

bholley commented Oct 21, 2016

Copy link
Copy Markdown
Contributor Author

@bors-servo p=1

(another PR based on this one)

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit b493565 with merge 202dfd5...

bors-servo pushed a commit that referenced this pull request Oct 21, 2016
Stop ticking animations on non-dirty nodes during traversal

See #13865.

r? @emilio

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

Copy link
Copy Markdown
Contributor

@bors-servo
bors-servo merged commit b493565 into servo:master Oct 21, 2016
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Oct 21, 2016
@bholley
bholley deleted the expire_animations branch October 30, 2016 22:21
@bholley
bholley restored the expire_animations branch October 30, 2016 22:21
@bholley
bholley deleted the expire_animations branch October 30, 2016 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants