Skip to content

script: Use AtomicRefCell for layout-borrowed data in SVGSVGElement. - #46757

Merged
jdm merged 1 commit into
servo:mainfrom
jdm:atomic-svg
Jul 24, 2026
Merged

jdm merged 1 commit into
servo:mainfrom
jdm:atomic-svg

Conversation

@jdm

@jdm jdm commented Jul 24, 2026

Copy link
Copy Markdown
Member

Replaces one use of borrow_for_layout with a refcell type that can be borrowed between threads.

Testing: Existing tests suffice.
Fixes: part of #46049

@jdm
jdm requested a review from gterzian as a code owner July 24, 2026 00:49
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 24, 2026
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Jul 24, 2026
@jdm
jdm added this pull request to the merge queue Jul 24, 2026
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 24, 2026
Merged via the queue into servo:main with commit 61d3003 Jul 24, 2026
34 checks passed
@jdm
jdm deleted the atomic-svg branch July 24, 2026 03:07
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Jul 24, 2026
atouchet pushed a commit to atouchet/servo that referenced this pull request Oct 20, 2026
script: Use AtomicRefCell for Selection::visible_range

Replace the `DomRefCell` with an `AtomicRefCell`, like servo#46757 and
servo#46758,
so layout no longer needs `borrow_for_layout()`. The field holds
`Dom<Node>`, so this also adds a `CustomTraceable` impl for
`AtomicRefCell`.

Testing: Existing tests in `tests/wpt/tests/selection` pass.
Fixes: servo#49058

---------

Signed-off-by: Gabriele Cabrini <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants