Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid snapshot handling in animation only restyle #17770

Merged
merged 5 commits into from Jul 18, 2017

Conversation

hiikezoe
Copy link
Contributor

@hiikezoe hiikezoe commented Jul 18, 2017

https://bugzilla.mozilla.org/show_bug.cgi?id=1381431


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors

This change is Reviewable

Hiroyuki Ikezoe added 4 commits July 18, 2017 19:13
In animation-only restyle, we just need to check the element
has animation restyle hints or has recascade self which is a result
of animation-only restyle for ancestors.
has_current_styles() in Servo_ResolveStyle() is intentionally left there,
it will be changed in a subsequent patch.
@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/sharing/mod.rs, components/style/gecko/generated/structs_debug.rs, components/style/invalidation/element/restyle_hints.rs, components/style/gecko/generated/structs_release.rs, components/style/data.rs and 3 more
  • @canaltinova: components/style/sharing/mod.rs, components/style/gecko/generated/structs_debug.rs, components/style/invalidation/element/restyle_hints.rs, components/style/gecko/generated/structs_release.rs, components/style/data.rs and 3 more
  • @emilio: components/style/sharing/mod.rs, components/style/gecko/generated/structs_debug.rs, ports/geckolib/glue.rs, components/style/invalidation/element/restyle_hints.rs, components/style/gecko/generated/structs_release.rs and 4 more

@highfive
Copy link

warning Warning warning

  • These commits modify unsafe code. Please review it carefully!
  • These commits modify style code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 18, 2017
@hiikezoe
Copy link
Contributor Author

@hiikezoe hiikezoe force-pushed the snapshot-in-animation-only-restyle branch from 8d6cf87 to 18cd739 Compare July 18, 2017 11:45
@hiikezoe
Copy link
Contributor Author

The try looks good, but bindgen change causes weird errors [1], so I dropped Servo_StyleContext_AddRef and Servo_StyleContext_Release from the bindgen change. Thank you Xidorn for the workaround!

https://pastebin.mozilla.org/9027416

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit 18cd739 has been approved by emilio

@highfive highfive assigned emilio and unassigned pcwalton Jul 18, 2017
@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 Jul 18, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 18cd739 with merge e57ed3d...

bors-servo pushed a commit that referenced this pull request Jul 18, 2017
…=emilio

Avoid snapshot handling in animation only restyle

<!-- Please describe your changes on the following line: -->
https://bugzilla.mozilla.org/show_bug.cgi?id=1381431

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors

<!-- 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/17770)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: emilio
Pushing e57ed3d to master...

@bors-servo bors-servo merged commit 18cd739 into servo:master Jul 18, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 18, 2017
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.

None yet

5 participants