-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
stylo: remove bogus optimization check in replace_rules() for visited styles. #17889
Conversation
Heads up! This PR modifies the following files:
|
@bors-servo r=hiro |
📌 Commit 372b2a1 has been approved by |
… styles. We skipped updating the rule nodes for visited rules during animation-only restyle. However, this causes isseus that visited style overrides animation styles on visited element. So, it turns out that we should update the visited rules even during animation-only restyle. Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1381235
372b2a1
to
000547b
Compare
@bors-servo r=hiro |
📌 Commit 000547b has been approved by |
stylo: remove bogus optimization check in replace_rules() for visited styles. We skipped updating the rule nodes for visited rules during animation-only restyle. However, this causes isseus that visited style overrides animation styles on visited element. So, it turns out that we should update the visited rules even during animation-only restyle. Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1381235 <!-- 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/17889) <!-- Reviewable:end -->
☀️ 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 |
We skipped updating the rule nodes for visited rules during animation-only restyle.
However, this causes isseus that visited style overrides animation styles on visited element.
So, it turns out that we should update the visited rules even during animation-only restyle.
Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1381235
This change is