| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
after invoking a callback.
|
| |
|
|
|
|
| |
We do not intend to implement the DOM in JS, so this code isn't necessary.
|
| |
|
| |
|
| |
|
|
|
|
| |
structured clone.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Notes:
* This adds `#![allow(missing_copy_implementations)]` to components/*/lib.rs. I'm not sure how to approach the missing Copy warnings (are there things for which Copy should NOT be implemented, and how can I tell?) so I stuck this in to make life easier when looking through the warnings. I can easily remove this if necessary.
* This leaves the following type of warnings, which I couldn't figure out how to approach (I'll investigate it later if no one else wants to).
```
css/matching.rs:72:23: 72:35 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:72 this_as_query.equiv(other)
^~~~~~~~~~~~
css/matching.rs:95:10: 95:49 warning: use of deprecated item: Use overloaded core::cmp::PartialEq, #[warn(deprecated)] on by default
css/matching.rs:95 impl<'a> Equiv<ApplicableDeclarationsCacheEntry> for ApplicableDeclarationsCacheQuery<'a> {
```
|
| | |
|
| | |
|
|\ \ |
|
| | | |
|
|\ \ \
| |_|/
|/| |
| | | |
Didn't do the `Vec<Temporary<T>>` banning since we might want to whitelist something there. I'll work on that next.
|
| | | |
|
|\ \ \ |
|
| | |/
| |/| |
|
|/ / |
|
| | |
|
|/ |
|
|
|
|
| |
They are to be removed from the language in the next rust upgrade.
|
|\
| |
| |
| | |
This is a start towards fixing #3868. Not all callers have been fixed yet, so the `Deref` implementation remains for now.
|
| | |
|
| | |
|
| |
| |
| |
| | |
This changes those calls that were already sound.
|
| |
| |
| |
| |
| | |
As it will be used much more widely after the upcoming changes, this limits
the effort reading and writing the method calls.
|
| |
| |
| |
| |
| | |
It does not add any safety, as the reference is constructed from a raw pointer
without limiting the lifetime in any way.
|
| |
| |
| |
| |
| | |
It does not add any safety, as the reference is constructed from a raw pointer
without limiting the lifetime in any way.
|
|/
|
|
|
| |
This method is deprecated in rust master; removing its users in advance will
make a future rust upgrade smoother.
|
|
|
|
|
|
|
|
| |
xmlhttprequest.rs, CodegenRust.py
replace into_string().to_jsval() to to_jsval()
conversions.rs
DOMString to_jsval() use as_slice().tojsval() now
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| |
| |
| |
| | |
This replaces the specialized TrustedXHRAddress and TrustedWorkerAddress code that was used for the same purpose. A non-zero refcount pins the given DOM object's reflector and prevents it from being GCed even when there are no other outstanding references visible to SpiderMonkey. This will enable us to implement asynchronous operations that refer to particular DOM objects (such as "queue a task to fire a simple event named load at the iframe element" from the spec) safely and conveniently, and paves the way for things like asynchronous network responses.
Some concerns about the resulting size of XHR progress messages have been expressed, but I believe optimizations to reduce that can be implemented in subsequent PRs.
r? @Ms2ger - note in particular the changes to the worker lifetime code. I couldn't figure out how to achieve an identical lifetime to the previous addref/release pairing, and I also was having trouble figuring out why the existing setup was safe. The new implementation now holds the main script task Worker object alive via the TrustedWorkerAddress field in the dedicated worker global scope, which is a significant difference.
|
| |
| |
| |
| | |
the ScriptMsg. This ensures that the main-thread Worker object is rooted for as long as there are events in flight or being processed.
|
| |
| |
| |
| | |
safe, asynchronous/cross-task references to pinned objects.
|
| |
| |
| |
| | |
Closes #4469.
|
|/ |
|
|\
| |
| |
| |
| |
| | |
Now `#[dom_struct]` also generates Reflectable impls, and there's another lint to ensure that a DOM struct only contains one bare DOM field (as the first field) or a Reflector.
A lot of this was generated by sed -- each autogenerated change has its own commit for easy review; these will be squashed later.
|
| | |
|
|/ |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
all generated code will pass it by value.
|
|/
|
|
|
|
| |
fixup! Replace XHR events for generic ones in ScriptTask
fixup! Replace XHR events for generic ones in ScriptTask
|
| |
|