aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* remove `extern crate` (#30311)Samson2023-09-081-22/+1
| | | | | | | | | | | * remove extern crate * Update components/script_plugins/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
* Use std::cell::OnceCell and remove mitochondria dependency (#30207)Martin Robinson2023-08-251-0/+1
| | | | | `OnceCell` is now part of the standard library and we'll be able to use it once we upgrade rust. For now we can use the version that's shipped behind a feature flag in rust. This removes a dependency on one crate.
* No tracing of nop traceable fields (#29926)Samson2023-08-041-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add `no_trace` option to JSTraceable derive * NoTrace wrapper * Port some types to no_trace schematics * Fixing my unsafe mistakes (not tracing traceables) * Add docs & safety guards for no_trace Safety guards (trait shenanigans) guarantees safety usage of `no_trace` * Port canvas_traits to no_trace * Port servo_media to no_trace * Port net_traits to no_trace * Port style to no_trace * Port webgpu to no_trace * Port script_traits to no_trace * Port canvas_traits, devtools_traits, embedder_traits, profile_traits to no_trace * unrooted_must_root lint in seperate file * Add trace_in_no_trace_lint as script_plugin * Composable types in must_not_have_traceable * Introduced HashMapTracedValues wrapper * `HashMap<NoTrace<K>,V>`->`HashMapTracedValues<K,V>` * Port rest of servo's types to no_trace * Port html5ever, euclid, mime and http to no_trace * Port remaining externals to no_trace * Port webxr and Arc<Mutex<_>> * Fix spelling in notrace doc
* Eliminate duplicate Layout DOM wrappersMartin Robinson2023-05-051-20/+2
| | | | | | | | | | There are duplicate sets of Layout DOM wrappers: one for Layout 2013 and one for Layout 2020. As part of cleaning up and simplifying the wrappers, this change parameterizes them on the specific layout data they contain. This allows them to be shared again. In addition, various small cleanups are included. Fixes #29691.
* apply pylbrecht/servo/named.window.getter (closes #27952)Delan Azabani2023-03-231-0/+2
|
* Fix warnings.Josh Matthews2022-04-011-2/+0
|
* Fix three trivial warnings.Dominic Cooney2021-05-231-1/+0
| | | | Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
* Update toolchain to nightly-2021-05-18Dominic Cooney2021-05-221-1/+1
| | | | | | | | | | | The nightly-2021-03-12 toolchain doesn't have RLS on Windows. This breaks code completion in Visual Studio Code because the rust plugin picks up the project toolchain. RLS is available in all tier one platforms in nightly-2021-05-18 per: https://rust-lang.github.io/rustup-components-history/ Signed-off-by: Dominic Cooney <dominic.cooney@gmail.com>
* Upgrade to rustc 1.52.0-nightly (a8486b64b 2021-02-24)Simon Sapin2021-02-251-0/+1
|
* Update mozjs.Josh Matthews2021-02-181-0/+1
|
* serviceworker: make job queue unique per originGregory Terzian2020-05-211-2/+0
|
* Move most animation processing to scriptMartin Robinson2020-05-121-0/+1
| | | | | | | This is preparation for sharing this code with layout_2020 and implementing selective off-the-main-thread animations. We still look for nodes not in the flow tree in the layout thread.
* Start having animations conform to the HTML specMartin Robinson2020-05-051-0/+1
| | | | | | | | | | | | | | This is a small step toward fixing #19242. The main idea is that the clock for animations should advance as the event loop ticks. We accomplish this by moving the clock from layout and naming it the "animation timeline" which is the spec language. This should fix flakiness with animations and transitions tests where a reflow could move animations forward while script was running. This change also starts to break out transition and animation events into their own data structure, because it's quite likely that the next step in fixing #19242 is to no longer send these events through a channel.
* Replace a `transmute` with `.to_ne_bytes()` + constructorSimon Sapin2020-04-151-1/+0
|
* Remove use of soon-to-be-deprecated unstable featureSimon Sapin2020-04-151-1/+0
| | | | https://github.com/rust-lang/rust/issues/47336#issuecomment-586589016
* Remove unused `#![feature(…)]` attributesSimon Sapin2020-04-151-1/+0
|
* allow for a service worker manager per originGregory Terzian2020-04-051-2/+2
|
* Merge RawLayoutElementHelpers into LayoutElementHelpersAnthony Ramine2020-03-311-1/+1
|
* Move PendingRestyle to the style_layout_interface crateAnthony Ramine2020-03-281-1/+1
|
* Update SpiderMonkeyAnthony Ramine2020-03-061-0/+1
|
* Introduce a new type MaybeUnreflectedDom<T> (fixes #25701)Anthony Ramine2020-02-171-0/+1
|
* rename compartment to realmKunal Mohan2020-01-241-2/+2
|
* Modify `script` to prevent further violations of snake_caseKunal Mohan2020-01-181-1/+0
|
* Scaffold module scriptCYBAI2020-01-031-0/+2
|
* script: Ensure JS engine is initialized and deinitialized on the same thread.Josh Matthews2019-11-261-0/+1
|
* Use `#![register_tool]` instead of `#![register_attr]`Simon Sapin2019-11-151-4/+2
| | | | CC https://github.com/rust-lang/rust/issues/66079
* Use `#![register_attr(…)]` instead of `Registry::register_attribute`Simon Sapin2019-11-151-0/+4
| | | | CC https://github.com/rust-lang/rust/pull/66344, https://github.com/rust-lang/rust/issues/66080
* Addresses issues raised in #24465; removes redundancy in set_bitmap_dimensionsBailey Blankenship2019-11-101-0/+1
| | | | Removed passing test .ini files and moved euclid extensions to euclidext.rs to factor out redundant code
* Remove use of on_unimplementedSimon Sapin2019-11-081-1/+0
| | | | | | | | | | | | | | | | | | | | | | | It errors in today’s Nightly: ```rust error[E0557]: feature has been removed --> components/script/lib.rs:9:12 | 9 | #![feature(on_unimplemented)] | ^^^^^^^^^^^^^^^^ feature has been removed error[E0658]: this is an internal attribute that will never be stable --> components/script/dom/bindings/conversions.rs:77:1 | 77 | #[rustc_on_unimplemented(message = "The IDL interface `{Self}` is not derived from `{T}`.")] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | = note: for more information, see https://github.com/rust-lang/rust/issues/29642 = help: add `#![feature(rustc_attrs)]` to the crate attributes to enable error: aborting due to 2 previous errors ```
* Upgrade to rustc 1.40.0-nightly (246be7e1a 2019-10-25)Simon Sapin2019-10-261-1/+31
|
* Move items at the root of the script crate to a moduleSimon Sapin2019-10-261-66/+3
|
* Moved CanvasState out of canvasrenderingcontextHanif Bin Ariffin2019-10-251-0/+1
| | | | | | | | | | | | | | | | | Cleaned up imports... Applied clang-tidy Moved CanvasState and some other files Next commit should remove pub modifier from members of CanvasState and use getters/setters instead. Members of CanvasState are now private and applied test-tidy Now have getters that return an immutable reference. Also, I have no idea what to name some_func.rs Removed need for some_func and made pub(crate)
* Remove uses of mem::uninitializedSimon Sapin2019-07-171-2/+4
|
* Upgrade to rustc 1.37.0-nightly (088b98730 2019-07-03)Josh Matthews2019-07-051-1/+0
|
* Remove `default-except-unstable`Simon Sapin2019-07-011-2/+2
| | | | | … and use remaining unstable features unconditionally. This doesn’t actually change the set of crates that can build on the Stable channel.
* Fix some new warningsSimon Sapin2019-06-221-1/+0
|
* Auto merge of #23253 - BartGitHub:refactor-promise-compartment, r=jdmbors-servo2019-04-291-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor promise compartment <!-- Please describe your changes on the following line: --> This PR adds a mechanism to verify that certain code is executed inside a ```JSAutoCompartment```, and applies this to the ```Promise::new_in_current_compartment``` constructor. r? @jdm --- <!-- 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 - [x] These changes fix #23167 <!-- Either: --> - [x] These changes do not require tests because they do not change existing functionality. <!-- 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. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23253) <!-- Reviewable:end -->
| * Add proof that code is executed in compartmentAron Zwaan2019-04-241-0/+1
| |
* | Move StylesheetSetRef to scriptFernando Jiménez Moreno2019-04-261-0/+1
| |
* | First bits of shadow dom layoutFernando Jiménez Moreno2019-04-261-1/+4
|/
* Make use of RefCell::try_borrow_unguardedAnthony Ramine2019-04-121-0/+1
|
* Implement CDATASection interface and createCDATASection methodGeorge Roman2019-03-141-1/+1
|
* Remove most RootedReference usesAnthony Ramine2019-03-101-0/+1
| | | | We can replace all uses of RootedReference for Option<T> by Option::deref calls.
* Upgrade to rustc 1.34.0-nightly (0ea22717a 2019-03-02)Simon Sapin2019-03-031-1/+0
|
* Fix servo build.Emilio Cobos Álvarez2019-02-101-0/+1
|
* Implement HTMLMediaElement poster attributeFernando Jiménez Moreno2019-01-111-0/+1
|
* Rustfmt has changed its default style :/Simon Sapin2018-12-281-4/+1
|
* Auto merge of #22225 - servo:webgl, r=emiliobors-servo2018-11-211-0/+2
|\ | | | | | | | | | | | | | | Send an IpcSharedMemory in tex_image_2d and tex_sub_image_2d <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22225) <!-- Reviewable:end -->
| * Call prepare_pixels on the WebGL threadAnthony Ramine2018-11-201-0/+2
| |
* | Auto merge of #22231 - servo:warn, r=SimonSapinbors-servo2018-11-201-2/+0
|\ \ | |/ |/| | | | | | | | | | | | | | | | | Fix unused import warning in new Rust Nightly https://tools.taskcluster.net/task-inspector/#Zw-1gs3xT4e79Lach3PISg <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22231) <!-- Reviewable:end -->