Skip to content

script: Pass &mut JSContext to more dom methods#42751

Merged
TimvdLippe merged 1 commit intoservo:mainfrom
sagudev:splitoff-mcs
Feb 22, 2026
Merged

script: Pass &mut JSContext to more dom methods#42751
TimvdLippe merged 1 commit intoservo:mainfrom
sagudev:splitoff-mcs

Conversation

@sagudev
Copy link
Copy Markdown
Member

@sagudev sagudev commented Feb 22, 2026

split from #42635, some dom methods are also called from other function, which require passing down cx from many more places :(

Testing: Just refactor, but should be covered by WPT.
Part of #42638

@sagudev sagudev requested a review from gterzian as a code owner February 22, 2026 13:11
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 22, 2026
@sagudev sagudev requested review from TimvdLippe and removed request for gterzian February 22, 2026 13:11
Copy link
Copy Markdown
Contributor

@TimvdLippe TimvdLippe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for splitting them off! This was a lot more straightforward me to review.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 22, 2026
@TimvdLippe TimvdLippe enabled auto-merge February 22, 2026 13:16
@TimvdLippe TimvdLippe added this pull request to the merge queue Feb 22, 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 Feb 22, 2026
Merged via the queue into servo:main with commit 43bdd38 Feb 22, 2026
33 checks passed
@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 Feb 22, 2026
simonwuelker pushed a commit to simonwuelker/servo that referenced this pull request Feb 23, 2026
split from servo#42635, some dom methods
are also called from other function, which require passing down cx from
many more places :(

Testing: Just refactor, but should be covered by WPT.
Part of servo#42638

Signed-off-by: sagudev <[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