| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update WebIDL.py
* Update WebIDL.py
* Add builtin-array.patch
* Fix CodegenRust.py and Configuration.py
* Fix missing downcasts
* mach fmt
* Update check and comment to explain why we need this check
* Update Global of DissimilarOriginWindow.webidl
|
|
|
| |
Signed-off-by: RustAndMetal <111676747+RustAndMetal@users.noreply.github.com>
|
| |
|
|
|
|
|
|
|
| |
* Add rust-lldb to mozdebug
* Export as patch
* patches
|
|
|
|
|
|
|
|
|
|
| |
We can use stable rust if we pass the unstable configuration as
command-line arguments to rustfmt itself. This prevents needing to
install an unstable rust toolchain.
The one downside here is that it doesn't seem that "ignore" is
supported so we have to start formatting the files in "third_party."
This shouldn't be a huge issue because we don't plan to check much more
rust code into those directories.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WebIDL: Use Uint8ClampedArray instead of raw JSObject in bindings
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* fmt
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* introduce new_initialized_heap_typed_array function
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove unsed unsafe_code
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use doc comments for ImageData
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use get_internal instead of acquire_data
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Handle JS errors in ImageData GetData and new_initialized_heap_typed_array
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix wrong assert that causes CRASH in test
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Early return for error
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Address review comments
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WebIDL: Use ArrayBufferViewU8 instead of raw JSObject in bindings
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Remove unused imports
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Address review comments
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* WebIDL: Use ArrayBuffer instead of raw JSObject in bindings
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Convert GPUBufferMapInfo mapping to Arc<Mutex>
* Remove #[allow(unsafe_code)] from GPUBuffer
* Add doc comments
* Implement trace for Arc<Mutex<Vec<T>>>
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use #[no_trace] for GPUBufferMapInfo.mapping
* Make create_new_external_array_buffer generic
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Address review comments
* Remove HeapTypedArray::new and avoid cloning Arc
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use expect for GetMappedRange and ReadAsArrayBuffer
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use doc comments for FileReaderSyncMethods
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Return for Error::JsFailed GetMappedRange and ReadAsArrayBuffer
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Fix detached_internal implementation and comments
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* format code
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Update expectations
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
Co-authored-by: sagudev <16504129+sagudev@users.noreply.github.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
`JSObject` (#31189)
* WebIDL use FLoat64Array
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
* Use to_vec to convert array to vec
* avoid allocating a new vec
---------
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
|
|
|
|
|
| |
The new strategy for dependencies with upstream in Gecko is to manage
them in separate repositories, which will more easily allow rebasing our
changes on top of newer Gecko work.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(#31164)
<!-- Please describe your changes on the following line: -->
part #31064
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by
`[X]` when the step is complete, and replace `___` with appropriate
data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
<!-- Either: -->
- [x] These changes do not require tests because there is no behavior
changes
<!-- Also, please make sure that "Allow edits from maintainers" checkbox
is checked, so that we can help you if you get stuck somewhere along the
way.-->
<!-- Pull requests that do not address these steps are welcome, but they
will require additional verification as part of the review process. -->
There types are not used we can migrate them, in next PR I will make
`HeapFloat32Array` generic and convert ArrayBufferView, ArrayBuffer,
Uint8ClampedArray and Float64Array.
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
|
|
|
| |
Signed-off-by: Bentaimia Haddadi <haddadi.taym@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* inital
* audiobuffer: return float 32 array as channel data
* add on heap float 32 array type
* fix warnings
* add list of webidl interfaces to ignore for float 32
* codegen: remove duplication of builtin return type handling
* bindings: derive default for float 32 array wrapper
* bindings: allow unsafe code in typedarrays module
* bindings: rename float 32 array wrapper
* bindings: rename HeapFloat32Array is_set method to is_initialized
* bindings: assert float 32 array is initialized before data can be acquired
* bindings: use let syntax for error handling in float 32 array wrapper
* bindings: use copy_from_slice where possible in float 32 array wrapper
* bindings: rename args in typedarray copy methods
* codegen: use idl type in builtin names for float 32 array
* bindings: add a util to create float 32 arrays, use in dom matrix readonly
* codegen: tidy
* bindings: box the heap inside heaped float 32 arrays
|
|
|
|
|
|
|
|
|
|
| |
Despite the name of this dependency, it only handles bluetooth. Because
it's a separate repository. Integrating it, allows changes here to be
tested more consistently. In addition, it's likely that new bluetooth
libraries will allow removing the majority of the platform-specific code
in this directory.
This is based on the version of this dependency from:
https://github.com/servo/devices/pull/34
|
|
|
| |
These appeared after switching to the latest Rust stable release.
|
|
|
|
|
|
| |
The version of `mozdebug` installable via pip is two years old and
Mozilla is slow to release new versions. It also uses `distutils` which
doesn't work on newer Python versions. Vendor it and stop using
`distutils` there.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Upgrade vendored version of WebRender
* Patch WebRender: upgrade version of gleam
* Restore hit testing implementation
* Fix WebRender warnings
* Adapt Servo to new WebRender
* Update results
* Add a workaround for #30313
This slightly expands text boundaries in order to take into account the
fact that layout isn't measuring glyph boundaries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* MallocSizeOf for Index{Set, Map}
* like as iterable in WebIDL
* Codegen magic for like interfaces
* TestBinding for like
* Test for Setlike and Maplike test bindings
* Some fixes
* Switch to any.js
* nit
* Keep order
|
|
|
|
|
| |
These show up every time one builds, so this adds a patch on top of our
vendored copy of WebRender to fix these errors for now.
|
|
|
|
| |
This slipped in when importing the source code.
|
|
|
|
|
|
|
|
| |
This is a step toward upgrading WebRender, which will be upgraded and
patched in the `third_party` directory. This change vendors the current
private branch of WebRender that we use and adds a `patches` directory
which tracks the changes on top of the upstream WebRender commit
described by third_party/webrender/patches/head.
|
|
This directory now contains third_party software that is vendored into
the Servo source tree. The idea is that it would eventually hold
webrender and other crates from mozilla-central as well with a standard
patch management approach for each.
|