diff --git a/servo/components/style/sharing/checks.rs b/servo/components/style/sharing/checks.rs index cd81daae6c01a..b92ace113e952 100644 --- a/servo/components/style/sharing/checks.rs +++ b/servo/components/style/sharing/checks.rs @@ -23,12 +23,6 @@ dom TElement ; use -element_state -: -: -* -; -use sharing : : @@ -339,67 +333,6 @@ class_list ( ) } -pub -fn -have_same_state_ignoring_visitedness -< -E -> -( -element -: -E -candidate -: -& -StyleSharingCandidate -< -E -> -) -- -> -bool -where -E -: -TElement -{ -let -state_mask -= -! -IN_VISITED_OR_UNVISITED_STATE -; -let -state -= -element -. -get_state -( -) -& -state_mask -; -let -candidate_state -= -candidate -. -element -. -get_state -( -) -& -state_mask -; -state -= -= -candidate_state -} # [ inline diff --git a/servo/components/style/sharing/mod.rs b/servo/components/style/sharing/mod.rs index 1fc3f9b992184..bf69bf5344a97 100644 --- a/servo/components/style/sharing/mod.rs +++ b/servo/components/style/sharing/mod.rs @@ -2467,16 +2467,19 @@ UserAndAuthorRules ) } if -! -checks -: -: -have_same_state_ignoring_visitedness -( target . element +. +get_state +( +) +! += candidate +. +get_state +( ) { miss