Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Mullvad Browser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dan Ballard
Mullvad Browser
Commits
d1084a04
Commit
d1084a04
authored
1 year ago
by
Iulian Moraru
Browse files
Options
Downloads
Patches
Plain Diff
Backed out changeset 7c7183d9dfac (bug 1835407) for causing multiple failures. CLOSED TREE
parent
d81b0bfd
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
servo/components/style/sharing/mod.rs
+16
-0
16 additions, 0 deletions
servo/components/style/sharing/mod.rs
with
16 additions
and
0 deletions
servo/components/style/sharing/mod.rs
+
16
−
0
View file @
d1084a04
...
...
@@ -879,6 +879,22 @@ impl<E: TElement> StyleSharingCache<E> {
if
target
.local_name
()
!=
candidate
.element
.local_name
()
{
return
None
;
}
// Rule nodes and styles are computed independent of the element's
// actual visitedness, but at the end of the cascade (in
// `adjust_for_visited`) we do store the visitedness as a flag in
// style. (This is a subtle change from initial visited work that
// landed when computed values were fused, see
// https://bugzilla.mozilla.org/show_bug.cgi?id=1381635.)
// So at the moment, we need to additionally compare visitedness,
// since that is not accounted for by rule nodes alone.
// FIXME(jryans): This seems like it breaks the constant time
// requirements of visited, assuming we get a cache hit on only one
// of unvisited vs. visited.
// TODO(emilio): We no longer have such a flag, remove this check.
if
target
.is_visited_link
()
!=
candidate
.element
.is_visited_link
()
{
return
None
;
}
Some
(
data
.share_primary_style
())
})
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment