style: Remove IS_STYLE_IF_VISITED.

Bug: 1474959
Reviewed-by: xidorn
MozReview-Commit-ID: 8rnlaMOJisA
This commit is contained in:
Emilio Cobos Álvarez 2018-07-17 14:11:30 +02:00
parent 4e1606bfaf
commit 08dcd7fca0
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 7 additions and 43 deletions

View file

@ -124,11 +124,6 @@ impl RuleCache {
guards: &StylesheetGuards,
builder_with_early_props: &StyleBuilder,
) -> Option<&ComputedValues> {
if builder_with_early_props.is_style_if_visited() {
// FIXME(emilio): We can probably do better, does it matter much?
return None;
}
// A pseudo-element with property restrictions can result in different
// computed values if it's also used for a non-pseudo.
if builder_with_early_props
@ -166,11 +161,6 @@ impl RuleCache {
return false;
}
if style.is_style_if_visited() {
// FIXME(emilio): We can probably do better, does it matter much?
return false;
}
// A pseudo-element with property restrictions can result in different
// computed values if it's also used for a non-pseudo.
if pseudo.and_then(|p| p.property_restriction()).is_some() {