servo/components/style/invalidation/element
Emilio Cobos Álvarez 3119db724a
selectors: Simplify :visited by only using the "is inside link" information.
Right now we go through a lot of hoops to see if we ever see a relevant link.

However, that information is not needed: if the element is a link, we'll always
need to compute its visited style because its its own relevant link.

If the element inherits from a link, we need to also compute the visited style
anyway.

So the "has a relevant link been found" is pretty useless when we know what are
we inheriting from.

The branches at the beginning of matches_complex_selector_internal were
affecting performance, and there are no good reasons to keep them.

I've verified that this passes all the visited tests in mozilla central, and
that the test-cases too-flaky to be landed still pass.
2017-12-08 05:35:12 +01:00
..
collector.rs selectors: Simplify :visited by only using the "is inside link" information. 2017-12-08 05:35:12 +01:00
element_wrapper.rs selectors: Simplify :visited by only using the "is inside link" information. 2017-12-08 05:35:12 +01:00
invalidation_map.rs style: :dir() pseudo class now represented by enum 2017-11-15 18:12:44 -08:00
invalidator.rs style: Log a bit more information about invalidation collection. 2017-11-29 19:23:53 +01:00
mod.rs style: Split the invalidation collection from the invalidator step. 2017-10-13 12:16:59 +02:00
restyle_hints.rs Bump bitflags to 1.0 in every servo crate 2017-10-30 23:36:06 +01:00