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

Animation rules in normal restyle #17014

Merged
merged 6 commits into from May 24, 2017

Conversation

hiikezoe
Copy link
Contributor

@hiikezoe hiikezoe commented May 24, 2017

This is a PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1366631 and https://bugzilla.mozilla.org/show_bug.cgi?id=1367225

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes do not require tests because it's for stylo

This change is Reviewable

Hiroyuki Ikezoe added 4 commits May 24, 2017 11:11
… restyles for normal restyle.

In the case where we process an element which has SMIL animations in normal travesal
the SMIL styles must have been computed in animation-only restyles. So we
have only to pick the computed styles instead of recomputing it.
In case of ::before and ::after element, the generated content has no
ElementHasAnimations flag, their parent has the flag.
@highfive
Copy link

Heads up! This PR modifies the following files:

  • @bholley: components/style/data.rs, components/style/rule_tree/mod.rs, components/style/properties/declaration_block.rs, components/style/dom.rs, components/style/gecko/wrapper.rs and 2 more
  • @emilio: components/style/data.rs, components/style/rule_tree/mod.rs, components/style/properties/declaration_block.rs, components/style/dom.rs, components/style/gecko/wrapper.rs and 2 more

@highfive
Copy link

warning Warning warning

  • 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 May 24, 2017
@hiikezoe
Copy link
Contributor Author

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

📌 Commit fce7c2d has been approved by emilio

@highfive highfive assigned emilio and unassigned pcwalton May 24, 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 May 24, 2017
@hiikezoe
Copy link
Contributor Author

I probably made a mistake during rebasing.
@bors-servo r-

@hiikezoe
Copy link
Contributor Author

oops, I saw a different try result..

Hiroyuki Ikezoe added 2 commits May 24, 2017 14:00
We only use whether the return value is IMPORTANT_RULES_CHANGED or not, so we
can just return true if an important rules was changed in the function.
Also, we can just return false in case of animation rules changes sine for
animation we can ensure there is no importan rules.
Because of these changes, replace_rule_node does not borrow |result| so that
we can drop a scope there.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels May 24, 2017
@hiikezoe
Copy link
Contributor Author

@bors-servo r=emilio,birtles

@bors-servo
Copy link
Contributor

📌 Commit 976b3ba has been approved by emilio,birtles

@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 May 24, 2017
@nox nox changed the title Animation rules in norma restyle Animation rules in normal restyle May 24, 2017
Manishearth added a commit to Manishearth/servo that referenced this pull request May 24, 2017
…le, r=emilio,birtles

Animation rules in norma restyle

<!-- Please describe your changes on the following line: -->

This is a PR for https://bugzilla.mozilla.org/show_bug.cgi?id=1366631 and https://bugzilla.mozilla.org/show_bug.cgi?id=1367225

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes do not require tests because it's for stylo

<!-- 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/17014)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request May 24, 2017
Rollup of 9 pull requests

- Successful merges: #16993, #17000, #17010, #17013, #17014, #17017, #17019, #17020, #17022
- Failed merges:

<!-- 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/17027)
<!-- Reviewable:end -->
@bors-servo bors-servo merged commit 976b3ba into servo:master May 24, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label May 24, 2017
@hiikezoe hiikezoe deleted the animation-rules-in-norma-restyle branch May 25, 2017 05:22
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