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

@ -684,11 +684,6 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
) where
E: TElement,
{
debug_assert!(
!self.style.flags.contains(ComputedValueFlags::IS_STYLE_IF_VISITED),
"Adjusting visited styles is wasted work"
);
if cfg!(debug_assertions) {
if element
.and_then(|e| e.implemented_pseudo_element())