aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* 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 -->
| * Fix unused import warning in new Rust NightlySimon Sapin2018-11-201-2/+0
| |
* | Update MPL license to https (part 3)Jan Andre Ikenmeyer2018-11-191-1/+1
|/
* Update crossbeam-channel to 0.3Bastien Orivel2018-11-181-2/+2
|
* Unify the task source and task canceller APIAgustin Chiappe Berrini2018-11-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | I moved away from the `Window` struct all the logic to handle task sources, into a new struct called `TaskManager`. In a happy world, I'd be able to just have there two functions, of the types: ```rust fn task_source<T: TaskSource>(&self, name: TaskSourceName) -> Box<T> fn task_source_with_canceller<T: TaskSource>(&self, name: TaskSourceName) -> (Box<T>, TaskSourceCanceller) ``` And not so much duplicated code. However, because TaskSource can't be a trait object (because it has generic type parameters), that's not possible. Instead, I decided to reduce duplicated logic through macros. For reasons[1], I have to pass both the name of the function with canceller and the name of the function without, as I'm not able to concatenate them in the macro itself. I could probably use `concat_idents` to create both types already defined and reduce the amount of arguments by one, but that macro is nightly only. At the same time, not being able to declare macros inside `impl` forces me to pass `self` as an argument. All this makes this solution more verbose than it would be ideally. It does reduce duplication, but it doesn't reduce the size of the file. [1](https://github.com/rust-lang/rust/issues/29599)
* `cargo fix --edition-idioms`Simon Sapin2018-11-081-67/+0
|
* Sort `use` statementsSimon Sapin2018-11-061-1/+1
|
* `cargo fix --edition`Simon Sapin2018-11-061-12/+12
|
* Rename mozjs to js in script through Cargo rather than `extern crate`Simon Sapin2018-11-061-2/+2
|
* Update hyper to 0.12Bastien Orivel2018-11-011-2/+3
|
* Auto merge of #21881 - pyfisch:keyboard-types, r=paulrougetbors-servo2018-10-171-0/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use keyboard-types crate Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331 What this PR does: * allow the use non-ASCII keyboards for text input * decouple keyboard event "key" from "code" (key meaning vs location) What this PR does not do: * completely improve keyboard events send from winit and webdriver * add support for CompositionEvent or IME Notes: * The winit embedder does not send keyup events for printable keys (this is a regression) * keyboard-types is on crates.io because I believe it to be useful outside of servo. If you prefer I can add a copy in this repo. <!-- 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/21881) <!-- Reviewable:end -->
| * Use keyboard-types cratePyfisch2018-10-071-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Have embedders send DOM keys to servo and use a strongly typed KeyboardEvent from the W3C UI Events spec. All keyboard handling now uses the new types. Introduce a ShortcutMatcher to recognize key bindings. Shortcuts are now recognized in a uniform way. Updated the winit port. Updated webdriver integration. part of #20331
* | Auto merge of #21877 - servo:webgl, r=jdmbors-servo2018-10-091-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | Improve some byte-swap and premultiply operations <!-- 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/21877) <!-- Reviewable:end -->
| * | Merge some byte swap/premultiply functions in their own crateAnthony Ramine2018-10-061-0/+1
| |/
* / dom: htmlmediaelement: add initial player bitsVíctor Manuel Jáquez Leal2018-10-081-1/+0
|/ | | | Also removes the usage of audio-video-metadata crate (?)
* script: Optionally store backtraces when throwing DOM exceptions.Josh Matthews2018-10-011-1/+1
|
* webgl: Add feature to store backtraces for each WebGL API call for easier ↵Josh Matthews2018-10-011-0/+2
| | | | debugging.
* Format script componentchansuke2018-09-191-13/+21
|
* Replace mpsc with crossbeam/servo channel, update ipc-channelSimon Sapin2018-09-121-1/+0
| | | | Co-authored-by: Gregory Terzian <gterzian@users.noreply.github.com>
* add servo_channel crateGregory Terzian2018-09-121-0/+1
|
* Auto merge of #21388 - gterzian:introduce_task_queues, r=jdmbors-servo2018-08-301-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce task queues, and throttling performance timeline tasksource <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #19997 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/21388) <!-- Reviewable:end -->
| * introduce task-queues, and throttling the performance-timeline task-source, ↵Gregory Terzian2018-08-311-0/+2
| | | | | | | | | | | | in script and worker threads. queue
* | Upgrade to rustc 1.30.0-nightly (721913067 2018-08-26)Simon Sapin2018-08-271-2/+0
|/
* Upgraded to SM 60Alan Jeffrey2018-08-201-10/+1
|
* Remove recursion limitManish Goregaokar2018-07-301-2/+0
|
* Fix Trusted usage in audio decoder to queue tasks (#3)Manish Goregaokar2018-07-301-0/+2
|