mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: Remove IS_STYLE_IF_VISITED.
Bug: 1474959 Reviewed-by: xidorn MozReview-Commit-ID: 8rnlaMOJisA
This commit is contained in:
parent
4e1606bfaf
commit
08dcd7fca0
4 changed files with 7 additions and 43 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue