mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
style: Always restyle / repaint when a visited query finishes.
Differential Revision: https://phabricator.services.mozilla.com/D50810
This commit is contained in:
parent
92bd7637a1
commit
d68d6f7c56
1 changed files with 8 additions and 0 deletions
|
@ -158,6 +158,14 @@ where
|
||||||
// If we the visited state changed, we force a restyle here. Matching
|
// If we the visited state changed, we force a restyle here. Matching
|
||||||
// doesn't depend on the actual visited state at all, so we can't look
|
// doesn't depend on the actual visited state at all, so we can't look
|
||||||
// at matching results to decide what to do for this case.
|
// at matching results to decide what to do for this case.
|
||||||
|
//
|
||||||
|
// TODO(emilio): This should be contains(), to avoid doing subtree
|
||||||
|
// restyles when adding or removing an href attribute, but invalidation
|
||||||
|
// for that case is broken right now (bug 1591987).
|
||||||
|
//
|
||||||
|
// This piece of code should be removed when
|
||||||
|
// layout.css.always-repaint-on-unvisited is true, since we cannot get
|
||||||
|
// into this situation in that case.
|
||||||
if state_changes.intersects(ElementState::IN_VISITED_OR_UNVISITED_STATE) {
|
if state_changes.intersects(ElementState::IN_VISITED_OR_UNVISITED_STATE) {
|
||||||
trace!(" > visitedness change, force subtree restyle");
|
trace!(" > visitedness change, force subtree restyle");
|
||||||
// We can't just return here because there may also be attribute
|
// We can't just return here because there may also be attribute
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue