Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Strict import formatting (grouping and granularity) (#30325) | Samson | 2023-09-11 | 1 | -4/+6 |
| | | | | | * strict imports formatting * Reformat all imports | ||||
* | remove `extern crate` (#30311) | Samson | 2023-09-08 | 1 | -1/+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> | ||||
* | Support arbitrary protos when wrapping DOM objects with constructors. | Josh Matthews | 2023-05-28 | 1 | -1/+4 |
| | |||||
* | Implements HTMLDetailsElement toggle | Vincent Ricard | 2020-09-26 | 1 | -1/+6 |
| | |||||
* | Add trait DomObjectWrap to provide WRAP function | YUAN LYU | 2020-03-20 | 1 | -2/+0 |
| | |||||
* | Update MPL license to https (part 3) | Jan Andre Ikenmeyer | 2018-11-19 | 1 | -1/+1 |
| | |||||
* | Unify the task source and task canceller API | Agustin Chiappe Berrini | 2018-11-14 | 1 | -1/+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 Sapin | 2018-11-08 | 1 | -2/+2 |
| | |||||
* | Reorder imports | Pyfisch | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | Sort `use` statements | Simon Sapin | 2018-11-06 | 1 | -1/+1 |
| | |||||
* | `cargo fix --edition` | Simon Sapin | 2018-11-06 | 1 | -13/+13 |
| | |||||
* | Format script component | chansuke | 2018-09-19 | 1 | -13/+20 |
| | |||||
* | Remove use of unstable box syntax. | Simon Sapin | 2017-10-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | 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 | -2/+2 |
| | | | | | | | 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 |
| | |||||
* | Introduce TaskOnce | Anthony Ramine | 2017-09-20 | 1 | -1/+1 |
| | | | | | Having both TaskBox and TaskOnce allows us to remove the superfluous inner boxing from CancellableTask<T>. | ||||
* | Use task! for the details notification steps | Anthony Ramine | 2017-09-18 | 1 | -26/+11 |
| | |||||
* | Move Task to its own module | Anthony Ramine | 2017-09-18 | 1 | -1/+1 |
| | |||||
* | Rename Runnable to Task | Anthony Ramine | 2017-09-16 | 1 | -6/+6 |
| | | | | | | | | | | | | The changes are: * `*Runnable` -> `*Task`; * `RunnableMsg` -> `Task`; * `RunnableWrapper` -> `TaskCanceller`; * `MainThreadRunnable` -> `MainThreadTask`; * `wrap_runnable` -> `wrap_task`; * `get_runnable_wrapper` -> `task_canceller`; * `handler` -> `run`; * `main_thread_handler` -> `run_with_script_thread`. | ||||
* | move name implementation as default implementation to the trait and remove ↵ | toidiu | 2017-09-03 | 1 | -2/+0 |
| | | | | overrides. | ||||
* | Solving merge conficts related to the html5ever_atoms -> html5ever change | Christian Poveda | 2017-05-03 | 1 | -1/+1 |
|\ | |||||
| * | Upgrade to html5ever 0.16 | Simon Sapin | 2017-05-02 | 1 | -1/+1 |
| | | |||||
* | | Changed all prefixes from DOMString to the atomic Prefix from html5ever | Christian Poveda | 2017-05-03 | 1 | -4/+3 |
|/ | |||||
* | Make #[dom_struct] a proc_macro attribute | Anthony Ramine | 2017-02-24 | 1 | -0/+1 |
| | |||||
* | Migrate `EventTarget` event firing functions to use `Atom`s. | Corey Farwell | 2016-11-03 | 1 | -1/+1 |
| | | | | This allows us to utilize more `atom` macros. | ||||
* | Remove "fire a simple event" concept, refactor event firing API. | Corey Farwell | 2016-11-03 | 1 | -1/+1 |
| | | | | | "fire a simple event" concept was removed in https://github.com/whatwg/html/pull/1933. | ||||
* | Update to string-cache 0.3 | Simon Sapin | 2016-11-03 | 1 | -4/+4 |
| | |||||
* | Make TaskSource::queue take a &GlobalScope | Anthony Ramine | 2016-10-06 | 1 | -2/+1 |
| | |||||
* | Most of the code refactoring needed to be done is done with this commit. | Arthur Marble | 2016-09-18 | 1 | -4/+4 |
| | |||||
* | Make task queue API usable from non-main threads. | Josh Matthews | 2016-07-14 | 1 | -1/+2 |
| | |||||
* | Inline DOM element creation into box expressions in components/script/dom/ | Kuba Birecki | 2016-07-14 | 1 | -2/+3 |
| | |||||
* | Move boxing to runnable initialization | Connor Brewster | 2016-07-13 | 1 | -1/+1 |
| | |||||
* | Make all task source runnables cancellable | Connor Brewster | 2016-07-13 | 1 | -4/+2 |
| | | | | Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable | ||||
* | Add event runnables | Connor Brewster | 2016-07-11 | 1 | -1/+1 |
| | | | | Make tasks a wrapper over runnables | ||||
* | Add name method for Runnable trait into DetailsNotificationRunnable | Changwan Hong | 2016-07-08 | 1 | -0/+2 |
| | |||||
* | Combined DOMManipulationTask runnable variants into a single variant | Connor Brewster | 2016-07-06 | 1 | -1/+1 |
| | |||||
* | Clean up DOMManipulationTaskSource | Keith Yeung | 2016-06-02 | 1 | -0/+1 |
| | |||||
* | Move DOMString back to script | Anthony Ramine | 2016-05-24 | 1 | -1/+1 |
| | | | | This entirely removes the 'non-geckolib' feature of the util crate. | ||||
* | Rename ToggleEventRunnable to DetailsNotificationRunnable | Keith Yeung | 2016-05-04 | 1 | -4/+4 |
| | |||||
* | Remove extraneous script_chan parameter from Trusted::new | Keith Yeung | 2016-04-28 | 1 | -4/+2 |
| | |||||
* | refactors entities from script_thread into script_runtime | Rahul Sharma | 2016-04-06 | 1 | -1/+2 |
| | |||||
* | Add task_source directory | Keith Yeung | 2016-03-10 | 1 | -17/+13 |
| | | | | Use DOMManipulationTaskSource whenever possible | ||||
* | Issue #9561 Renamed *_thread_source to *_task_source and ThreadSource to ↵ | Kamil Muszyński | 2016-02-14 | 1 | -1/+1 |
| | | | | TaskSource | ||||
* | Remove the global argument to EventTarget::{fire_event, fire_simple_event}. | Ms2ger | 2016-02-08 | 1 | -5/+1 |
| | |||||
* | Implement HTMLDetailsElement. Fixes #9216 | Lanza | 2016-01-20 | 1 | -0/+107 |