File tree Expand file tree Collapse file tree 2 files changed +4
-16
lines changed
servo/components/style/sharing Expand file tree Collapse file tree 2 files changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ use Atom;
10
10
use bloom:: StyleBloom ;
11
11
use context:: { SelectorFlagsMap , SharedStyleContext } ;
12
12
use dom:: TElement ;
13
- use element_state:: * ;
14
13
use sharing:: { StyleSharingCandidate , StyleSharingTarget } ;
15
14
use stylearc:: Arc ;
16
15
@@ -71,20 +70,6 @@ pub fn have_same_class<E>(target: &mut StyleSharingTarget<E>,
71
70
72
71
73
72
74
- pub fn have_same_state_ignoring_visitedness < E > ( element : E ,
75
- candidate : & StyleSharingCandidate < E > )
76
- -> bool
77
- where E : TElement ,
78
- {
79
- let state_mask = !IN_VISITED_OR_UNVISITED_STATE ;
80
- let state = element. get_state ( ) & state_mask;
81
- let candidate_state = candidate. element . get_state ( ) & state_mask;
82
- state == candidate_state
83
- }
84
-
85
-
86
-
87
-
88
73
89
74
90
75
Original file line number Diff line number Diff line change @@ -643,7 +643,10 @@ impl<E: TElement> StyleSharingCandidateCache<E> {
643
643
miss ! ( UserAndAuthorRules )
644
644
}
645
645
646
- if !checks:: have_same_state_ignoring_visitedness ( target. element , candidate) {
646
+
647
+
648
+
649
+ if target. element . get_state ( ) != candidate. get_state ( ) {
647
650
miss ! ( State )
648
651
}
649
652
You can’t perform that action at this time.
0 commit comments