Skip to content

Commit

Permalink
servo: Merge #17778 - stylo: Don't ignore visited state when deciding…
Browse files Browse the repository at this point in the history
… to share style contexts (from Manishearth:stylo-visited-fix); r=bz

r=bz https://bugzilla.mozilla.org/show_bug.cgi?id=1381635

Source-Repo: https://github.com/servo/servo
Source-Revision: 38e808645292a1e4e9264937b979137b194c2196

UltraBlame original commit: d396287f259511a918635420ecd87fd503df885b
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent fb3b9dd commit 564ccc0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 73 deletions.
67 changes: 0 additions & 67 deletions servo/components/style/sharing/checks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ dom
TElement
;
use
element_state
:
:
*
;
use
sharing
:
:
Expand Down Expand Up @@ -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
Expand Down
15 changes: 9 additions & 6 deletions servo/components/style/sharing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2467,16 +2467,19 @@ UserAndAuthorRules
)
}
if
!
checks
:
:
have_same_state_ignoring_visitedness
(
target
.
element
.
get_state
(
)
!
=
candidate
.
get_state
(
)
{
miss
Expand Down

0 comments on commit 564ccc0

Please sign in to comment.