aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Test OscillatorNode with servo_mediaFernando Jiménez Moreno2018-07-301-0/+1
|
* Upgrade to rustc 1.29.0-nightly (1ecf6929d 2018-07-16)Simon Sapin2018-07-181-1/+1
|
* introduce "per task source" ignoring of tasksGregory Terzian2018-07-101-0/+1
|
* move msg to embedder_traits, use in script, handle send error in embedderGregory Terzian2018-05-231-1/+1
|
* delegate resource reading to embedderPaul Rouget2018-04-271-0/+1
|
* Upgrade to rustc 1.27.0-nightly (056f589fb 2018-04-07)Simon Sapin2018-04-091-3/+0
|
* Pass new method in CollectServoSizes for accurate DOM heap use reportingAnthony Weston2018-03-271-1/+10
|
* Use ByteBuf for the canvas messagesAnthony Ramine2018-03-261-0/+1
| | | | | The type Vec<u8> is super unefficient to work with in Serde if all you want to represent is a simple blob.
* Switch from servo/angle to the mozangle crateSimon Sapin2018-03-121-1/+1
| | | | https://github.com/servo/mozangle
* remove mozbrowser codePaul Rouget2018-02-131-1/+0
|
* Replace NonZero<*{const,mut} _> with std::ptr::NonNullSimon Sapin2018-01-221-1/+0
|