Skip to content

script: Introduce reflect_dom_object_with_proto_and_cx and use it in 2d canvas#42699

Merged
TimvdLippe merged 2 commits intoservo:mainfrom
sagudev:reflect-cx
Feb 18, 2026
Merged

script: Introduce reflect_dom_object_with_proto_and_cx and use it in 2d canvas#42699
TimvdLippe merged 2 commits intoservo:mainfrom
sagudev:reflect-cx

Conversation

@sagudev
Copy link
Copy Markdown
Member

@sagudev sagudev commented Feb 18, 2026

Testing: Should be covered by WPT tests.
Part of #40600

…n 2d canvas

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
@sagudev sagudev requested a review from gterzian as a code owner February 18, 2026 10:17
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Feb 18, 2026
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.

LGTM, but if most usages won't have the proto, I think it's better to make a version without it as well. So that we won't have all those None everywhere.

@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Feb 18, 2026
@TimvdLippe TimvdLippe added this pull request to the merge queue Feb 18, 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 18, 2026
Merged via the queue into servo:main with commit 366f34d Feb 18, 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 18, 2026
github-merge-queue Bot pushed a commit that referenced this pull request Feb 20, 2026
Just to complement existing with_proto method introduced in #42699.

Justification for arg ordering: reflect_dom_* have arguments reversed,
so first one is Box (the most important) then global, proto and lastly
cx.

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
simonwuelker pushed a commit to simonwuelker/servo that referenced this pull request Feb 23, 2026
Just to complement existing with_proto method introduced in servo#42699.

Justification for arg ordering: reflect_dom_* have arguments reversed,
so first one is Box (the most important) then global, proto and lastly
cx.

---------

Signed-off-by: sagudev <16504129+sagudev@users.noreply.github.com>
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