servo/components/style/invalidation/element
Emilio Cobos Álvarez a0cb37d29d
style: Simplify visited-related code in invalidation.
We match with AllLinksVisitedAndUnvisited for style invalidation, and we already
do a subtree restyle because :visited matching doesn't depend on the actual
element state.

So all this stuff is just not needed. The comment points to the attribute tests
in bug 1328509, but those still trivially pass with this change.

I think this was unneeded since I introduced AllLinksVisitedAndUnvisited, or
maybe since https://github.com/servo/servo/pull/19520. In any case it doesn't
really matter, and I already had done this cleanup in my WIP patches for
bug 1406622, but I guess this is a slightly more suitable place to land them :)

Differential Revision: https://phabricator.services.mozilla.com/D3305
2018-08-18 17:54:54 +02:00
..
document_state.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
element_wrapper.rs style: Remove unused selectors methods. 2018-08-08 01:37:45 +02:00
invalidation_map.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
invalidator.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
mod.rs style: Add a document state invalidator. 2018-01-12 12:08:42 +01:00
restyle_hints.rs Run rustfmt on selectors, servo_arc, and style. 2018-04-10 17:35:15 -07:00
state_and_attributes.rs style: Simplify visited-related code in invalidation. 2018-08-18 17:54:54 +02:00