Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace script_plugins with a clippy like rustc driver (named crown) (#30508) | Samson | 2023-12-01 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove script_plugins * Use crown instead of script_plugins * crown_is_not_used * Use crown in command base * bootstrap crown * tidy happy * disable sccache * Bring crown in tree * Install crown from tree * fix windows ci * fix warning * fix mac libscript_plugins.dylib is not available anymore * Update components/script/lib.rs Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Update for nightly-2023-03-18 Mostly just based off https://github.com/servo/servo/pull/30630 * Always install crown it's slow only when there is new version * Run crown test with `mach test-unit` * Small fixups; better trace_in_no_trace tests * Better doc * crown in config.toml * Fix tidy for real * no sccache on rustc_wrapper * document rustc overrides * fixup of compiletest * Make a few minor comment adjustments * Fix a typo in python/servo/platform/base.py Co-authored-by: Samson <16504129+sagudev@users.noreply.github.com> * Proper test types * Ignore tidy on crown/tests --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com> | ||||
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -5/+6 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | Rename reflect_dom_object2. | Josh Matthews | 2023-05-31 | 1 | -2/+2 |
| | |||||
* | Formatting. | Josh Matthews | 2023-05-28 | 1 | -2/+6 |
| | |||||
* | Support arbitrary protos when wrapping DOM objects with constructors. | Josh Matthews | 2023-05-28 | 1 | -6/+40 |
| | |||||
* | Add trait DomObjectWrap to provide WRAP function | YUAN LYU | 2020-03-20 | 1 | -1/+1 |
| | |||||
* | alphabetized frozen supported entry types on the global, avoid moving Heap ↵ | Patrick Shaughnessy | 2020-02-14 | 1 | -4/+7 |
| | | | | into Option | ||||
* | Modify `script` to prevent further violations of snake_case | Kunal Mohan | 2020-01-18 | 1 | -0/+3 |
| | |||||
* | cache frozen array of ports | Gregory Terzian | 2020-01-12 | 1 | -1/+16 |
| | |||||
* | add a generic utility to convert a slice into a frozen array | Gregory Terzian | 2020-01-11 | 1 | -2/+2 |
| | |||||
* | use dom and new_inherited in (extendable)messageevent | Gregory Terzian | 2020-01-09 | 1 | -11/+39 |
| | |||||
* | Implement MessageEvent.InitMessageEvent | Kunal Mohan | 2019-12-18 | 1 | -12/+35 |
| | | | | | | InitMessageEvent had to be implemented as required by wpt. For this few keys of struct `MessageEvent` are now wrapped inside DomRefCell wrapper. | ||||
* | Use `#![register_tool]` instead of `#![register_attr]` | Simon Sapin | 2019-11-15 | 1 | -1/+1 |
| | | | | CC https://github.com/rust-lang/rust/issues/66079 | ||||
* | Store source as an enum | Kagami Sascha Rosylight | 2019-11-04 | 1 | -16/+50 |
| | |||||
* | Use MessageEventSource on MessageEvent IDL | Kagami Sascha Rosylight | 2019-11-04 | 1 | -18/+15 |
| | |||||
* | continue messageport, transferable, postmessage options | Gregory Terzian | 2019-10-19 | 1 | -13/+26 |
| | |||||
* | begin messageport, transferable objects, impl | Keith Yeung | 2019-10-19 | 1 | -9/+31 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Accept transfer argument for StructuredCloneData::write Allow structured clone reads to return a boolean Add Transferable trait Add basic skeletons to MessagePort Implement transfer and transfer-receiving steps on MessagePort Use transfer and transfer_receive in StructuredClone callbacks Implement MessageChannel Freeze the array object for the MessageEvent ports attribute Implement transfer argument on window.postMessage Use ReentrantMutex instead for MessagePortInternal Accept origin as a parameter in dispatch_jsval Fix BorrowMut crash with pending_port_message Detach port on closure and check for detached during transfer Enable webmessaging tests fix webidl fix | ||||
* | Convert CGTraitInterface to use safe JSContext instead of raw JSContext | marmeladema | 2019-07-24 | 1 | -5/+4 |
| | |||||
* | Remove mozjs dep from malloc_size_of. | Josh Matthews | 2019-05-02 | 1 | -0/+1 |
| | |||||
* | Provide the source window as part of postMessage events. | Josh Matthews | 2019-01-07 | 1 | -4/+26 |
| | |||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -12/+12 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -28/+43 |
| | |||||
* | Properly set the origin on websocket messages | Bastien Orivel | 2018-08-16 | 1 | -2/+3 |
| | |||||
* | Adapt Servo for mozjs 0.6 and the changes introduced in servo/rust-mozjs#393 | Marcin Mielniczuk | 2018-03-28 | 1 | -1/+2 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | | | http://www.robohornet.org gives a score of 101.36 on master, and 102.68 with this PR. The latter is slightly better, but probably within noise level. So it looks like this PR does not affect DOM performance. This is expected since `Box::new` is defined as: ```rust impl<T> Box<T> { #[inline(always)] pub fn new(x: T) -> Box<T> { box x } } ``` With inlining, it should compile to the same as box syntax. | ||||
* | Rename Root<T> to DomRoot<T> | Anthony Ramine | 2017-09-26 | 1 | -5/+5 |
| | | | | | | | In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned. | ||||
* | Rename dom::bindings::js to dom::bindings::root | Anthony Ramine | 2017-09-26 | 1 | -1/+1 |
| | |||||
* | Fix unsafe Heap constructor usage in DOM objects | Imanol Fernandez | 2017-05-04 | 1 | -2/+5 |
| | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Use RootedTraceableBox for dictionaries. | Ms2ger | 2017-02-16 | 1 | -5/+3 |
| | |||||
* | Use Heap for dictionary and union members. | Ms2ger | 2017-02-16 | 1 | -1/+1 |
| | |||||
* | Remove warnings about unnecessary mutability. | Alan Jeffrey | 2017-01-28 | 1 | -4/+2 |
| | |||||
* | script creates methods taking '*mut JSContext' unsafe | Abelardo E. Mendoza | 2016-11-14 | 1 | -1/+2 |
| | | | | rebase + marked the necessary new code as unsafe | ||||
* | Update to string-cache 0.3 | Simon Sapin | 2016-11-03 | 1 | -1/+1 |
| | |||||
* | Pass a &GlobalScope to WebIDL static methods and constructors | Anthony Ramine | 2016-10-06 | 1 | -3/+2 |
| | |||||
* | Make dispatch_jsval methods take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -2/+2 |
| | |||||
* | Make reflect_dom_object take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -7/+17 |
| | |||||
* | Switch to using the new rooted!/RootedGuard API for rooting. | Eduard Burtescu | 2016-07-04 | 1 | -2/+2 |
| | |||||
* | Move DOMString back to script | Anthony Ramine | 2016-05-24 | 1 | -1/+1 |
| | | | | This entirely removes the 'non-geckolib' feature of the util crate. | ||||
* | Implement From<DOMString> for Atom | Anthony Ramine | 2016-02-24 | 1 | -1/+1 |
| | |||||
* | Make Event's isTrusted attribute unforgeable | John DeSilva | 2015-12-13 | 1 | -0/+6 |
| | |||||
* | Remove unused imports. | Ms2ger | 2015-12-12 | 1 | -1/+0 |
| | |||||
* | Pass around event types as Atoms instead of Strings | Corey Farwell | 2015-12-10 | 1 | -4/+5 |
| | | | | | | `Event` internally stores the `type` as an `Atom`, and we're `String`s everywhere, which can cause unnecessary allocations to occur since they'll end up as `Atom`s anyways. | ||||
* | Replaced DOMString constructor by conversion functions. | Alan Jeffrey | 2015-11-12 | 1 | -2/+1 |
| | | | | | | Replaced DOMString(...) by DOMString::from(...). Replaced ....0 by String::from(...). Removed any uses of .to_owner() in DOMString::from("..."). | ||||
* | Make DOMString a newtype around String, rather than a typedef. | Ms2ger | 2015-11-04 | 1 | -1/+1 |
| | | | | | | | | | | This should make it somewhat easier to experiment with alternative representations in the future. To reduce churn, this commit leaves the String field public, though. Also, this will allow us to use the default String type to represent the IDL USVString type, which explicitly forbids unpaired surrogates, ans as such is a better match to the Rust String type. | ||||
* | Use DOMString::new() somewhat consistently. | Ms2ger | 2015-11-04 | 1 | -2/+5 |
| | |||||
* | rearrange imports to be in alphabetical order | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | more refactoring | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| | |||||
* | move Castable into dom::bindings::inheritance | rohan.prinja | 2015-10-30 | 1 | -1/+1 |
| |