aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/lib.rs
Commit message (Collapse)AuthorAgeFilesLines
* `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
|
* Remove gecko-media dependencyFernando Jiménez Moreno2018-01-191-3/+0
|
* implement valid week stringtigercosmos2017-12-171-0/+1
|
* Make script depend on gecko-mediaAnthony Ramine2017-11-141-0/+3
| | | | It's not used yet though.
* Auto merge of #18262 - KiChjang:value-sanitization, r=noxbors-servo2017-11-091-0/+3
|\ | | | | | | | | | | | | | | | | | | | | Implement value sanitization on HTMLInputElement https://html.spec.whatwg.org/multipage/input.html#value-sanitization-algorithm <!-- 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/18262) <!-- Reviewable:end -->
| * Implement string stripping utilities from the Infra specKeith Yeung2017-11-081-0/+3
| |
* | Renamed js crate to mozjsAlan Jeffrey2017-11-081-2/+2
|/
* Make the unrooted_must_root conditional on a default Cargo feature.Simon Sapin2017-11-021-0/+1
| | | | | Only http://perf.rust-lang.org/ will disable it, in order to be less subject to changes to rustc internal APIs.
* Replace rust-encoding with encoding-rsSimon Sapin2017-11-011-1/+0
|
* Use encoding-rs instead of rust-encoding for CSS parsingSimon Sapin2017-10-311-0/+1
|
* Bump bitflags to 1.0 in every servo crateBastien Orivel2017-10-301-2/+1
|
* Backed out changeset e64e659c077d: servo PR #18809 and revendor for reftest ↵Gecko Backout2017-10-191-1/+2
| | | | | | failures, e.g. in layout/reftests/bugs/392435-1.html. r=backout on a CLOSED TREE Backs out https://github.com/servo/servo/pull/18809
* Auto merge of #18809 - Eijebong:bitflags, r=noxbors-servo2017-10-191-2/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update bitflags to 1.0 in every servo crate It still needs dependencies update to remove all the other bitflags versions. - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes do not require tests because it's a dependency update <!-- 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/18809) <!-- Reviewable:end -->
| * Update bitflags to 1.0 in every servo crateBastien Orivel2017-10-191-2/+1
| | | | | | | | | | It still needs dependencies update to remove all the other bitflags versions.
* | Stop relying on linking details of std’s default allocatorSimon Sapin2017-10-191-0/+1
|/ | | | | | | | | | | | We’ve been bitten before by symbol names changing: https://github.com/servo/heapsize/pull/46 and upstream is planning to stop using jemalloc by default: https://github.com/rust-lang/rust/issues/33082#issuecomment-309781465 So use the (relatively) new `#[global_allocator]` attribute to explicitly select the system allocator on Windows and jemalloc (now in an external crate) on other platforms. This choice matches current defaults.
* Replace all uses of the `heapsize` crate with `malloc_size_of`.Nicholas Nethercote2017-10-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Servo currently uses `heapsize`, but Stylo/Gecko use `malloc_size_of`. `malloc_size_of` is better -- it handles various cases that `heapsize` does not -- so this patch changes Servo to use `malloc_size_of`. This patch makes the following changes to the `malloc_size_of` crate. - Adds `MallocSizeOf` trait implementations for numerous types, some built-in (e.g. `VecDeque`), some external and Servo-only (e.g. `string_cache`). - Makes `enclosing_size_of_op` optional, because vanilla jemalloc doesn't support that operation. - For `HashSet`/`HashMap`, falls back to a computed estimate when `enclosing_size_of_op` isn't available. - Adds an extern "C" `malloc_size_of` function that does the actual heap measurement; this is based on the same functions from the `heapsize` crate. This patch makes the following changes elsewhere. - Converts all the uses of `heapsize` to instead use `malloc_size_of`. - Disables the "heapsize"/"heap_size" feature for the external crates that provide it. - Removes the `HeapSizeOf` implementation from `hashglobe`. - Adds `ignore` annotations to a few `Rc`/`Arc`, because `malloc_size_of` doesn't derive those types, unlike `heapsize`.
* Make usage of core_intrinsics optionalSimon Sapin2017-10-161-1/+1
|
* Make usage of unstable feature on_unimplemented optional.Simon Sapin2017-10-161-1/+1
|
* Remove usage of unstable features const_ptr_null and const_ptr_null_mutSimon Sapin2017-10-161-2/+0
|