Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebIDL: use Uint8Array #31145

Merged
merged 1 commit into from Jan 23, 2024
Merged

WebIDL: use Uint8Array #31145

merged 1 commit into from Jan 23, 2024

Conversation

Taym95
Copy link
Contributor

@Taym95 Taym95 commented Jan 21, 2024

Part of #31064


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix
  • These changes do not require tests because there are no behavior changes.

@Taym95 Taym95 force-pushed the WebIDL-use-Uint8Array branch 2 times, most recently from 8bfd716 to 1af44fc Compare January 21, 2024 19:18
@@ -112,3 +102,21 @@ impl HeapFloat32Array {
}
}
}

pub fn create_typed_array<T, S>(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gterzian can you please review this one?

@gterzian gterzian changed the title Use Uint8Array for TextEncoder WebIDL: use Uint8Array Jan 23, 2024
Copy link
Member

@gterzian gterzian left a comment

Choose a reason for hiding this comment

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

Great work, thanks! LGTM, with just one nit. Leaving the issue open because there are still other typed arrays to use(right?).

@@ -2405,6 +2405,7 @@ impl<'a> ContentSizesComputation<'a> {
had_non_whitespace_content_yet: false,
linebreaker: None,
ending_inline_pbm_stack: Vec::new(),
}.traverse(inline_formatting_context)
}
.traverse(inline_formatting_context)
Copy link
Member

Choose a reason for hiding this comment

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

I think it's best to revert this one so as to keep it focused.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I will revert, that was result of fmt

@Taym95
Copy link
Contributor Author

Taym95 commented Jan 23, 2024

Great work, thanks! LGTM, with just one nit. Leaving the issue open because there are still other typed arrays to use(right?).

Yes, and I will make other PR to address other typed arrays

Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
@mrobinson mrobinson added this pull request to the merge queue Jan 23, 2024
Merged via the queue into servo:main with commit 8905889 Jan 23, 2024
11 checks passed
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.

None yet

3 participants