Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Borrow hazard creating intersection observer entries #44988

@jdm

Description

@jdm

self.queued_entries.borrow_mut().push(
IntersectionObserverEntry::new(
cx,
self.owner_doc.window(),
None,
document
.owner_global()
.performance()
.to_dom_high_res_time_stamp(time),
Some(&root_bounds),
&bounding_client_rect,
&intersection_rect,
is_intersecting,
is_visible,
Finite::wrap(intersection_ratio),
target,
)

https://book.servo.org/design-documentation/script/garbage-collection-and-refcell.html

This is likely observable with a --debug-mozjs build and --pref js_mem_gc_zeal_level=2 --pref js_mem_gc_zeal_frequency=1 when running a WPT for intersection observer (or even just manual test cases based on sample MDN code).

Metadata

Metadata

Assignees

Labels

A-content/scriptRelated to the script threadC-assignedThere is someone working on resolving the issueE-less-complexStraightforward. Recommended for a new contributor.I-panicServo encounters a panic.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions