Simon Sapin
02e1901bc1
Upgrade to rustc 1.19.0-nightly (ced823e26 2017-05-07)
2017-05-08 12:46:03 +02:00
SendilKumar N
2996d3a413
removing mutHeapJs references
...
changes as per comments
2017-03-07 17:37:44 +08:00
Ms2ger
3613e8f231
Implement JSTraceable for more types.
2017-02-16 11:03:22 +01:00
Anthony Ramine
1327ebd52f
Remove HeapGCValue
...
It could be used to have mutable JSVal fields without GC barriers.
With the removal of that trait, MutHeap and MutNullableHeap can respectively
be replaced by MutJS and MutNullableJS.
2016-12-12 10:47:54 -10:00
Corey Farwell
449f6337d4
Rename Reflectable
to DomObject
.
...
Fixes https://github.com/servo/servo/issues/8473 .
2016-12-08 08:50:35 -10:00
Anthony Ramine
620a67ff14
Mark JSTraceable and its method as unsafe
2016-12-06 13:15:06 -10:00
Anthony Ramine
a3da819d10
Make ServoParser::pending_input hold onto a BufferQueue
2016-11-18 10:12:06 +01:00
Simon Sapin
5bb4c6c884
Use heapsize_derive instead of heapsize_plugin
2016-11-03 01:10:32 +01:00
bors-servo
cd2f950de3
Auto merge of #13056 - KiChjang:transition-event, r=mbrubeck
...
Implement transition event and infrastructure
Fixes #10245 .
<!-- 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/13056 )
<!-- Reviewable:end -->
2016-10-12 02:08:37 -05:00
Keith Yeung
668163ec5c
Emit TransitionEnd events in the layout thread and process it in the script thread
2016-10-11 19:36:06 -07:00
Anthony Ramine
3a547cc113
Generalise RootedVec::<JS<T>>::r as [JS<T>]::r
2016-10-11 19:44:33 +02:00
Anthony Ramine
45c9aa7487
Generalise RootedReference
...
It now becomes RootedReference<'root> and includes an associated type for
the return type of its 'r' method.
This removes the need for OptionalRootedReference.
2016-10-11 19:44:33 +02:00
Anthony Ramine
0b3ab875f4
Remove intrinsic Root::r()
2016-10-11 19:44:32 +02:00
Josh Matthews
ef501603bf
Ensure Promise "reflector" is not GCed before the Rust object.
2016-09-22 16:16:54 -04:00
Josh Matthews
a1091772ec
Implement binding support for returning and accepting Promises in WebIDL.
2016-09-22 16:16:48 -04:00
Ms2ger
5ae29b02b6
Stop using mem::transmute_copy.
2016-09-05 09:54:40 +02:00
Ms2ger
307d1ced3c
Move thread_state to style.
2016-08-22 16:08:56 +02:00
Ms2ger
68d603a6d0
Move TrustedNodeAddress to script_layout_interface.
2016-06-20 19:08:06 +02:00
Anthony Ramine
919a4774dd
Avoid a literal "&Root<T>" in its PartialEq impl
2016-05-31 14:57:47 +02:00
Anthony Ramine
d95f5edc2d
Cleanup RootCollection methods
...
The methods `root` and `unroot` should both be unsafe and take
a `*const Reflector`.
2016-05-31 14:52:55 +02:00
Anthony Ramine
b45f1918d1
Remove JS::from_rooted
2016-05-31 14:43:58 +02:00
Matt Brubeck
eaf4c5e5c5
Fix unused import warning in script::dom::bindings::js
2016-05-16 09:19:55 -07:00
Josh Matthews
293d465c59
Make debug logging for tracing JS objects more informative.
2016-05-11 08:34:48 -04:00
bors-servo
bbcbd35095
Auto merge of #10546 - stjepang:fix-typo-in-jsrs, r=Ms2ger
...
Fix typo: `cannot not outlive` -> `cannot outlive`
A `Root` cannot outlive the `RootCollection` it is recorded in.
The docs were saying otherwise.
r? @jdm
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg " height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10546 )
<!-- Reviewable:end -->
2016-04-13 06:30:59 +05:30
Stjepan Glavina
524bf440e7
Fix typo: cannot not outlive
-> cannot outlive
2016-04-12 19:20:44 +02:00
Ms2ger
0d732ebb5f
Implement Clone for Root.
2016-04-11 10:29:13 +02:00
Daniel Robertson
7a35ef1555
Implement RootedReference<T> for Option<JS<T>>
...
An implementation of RootedReference for Option<JS<T>> based off of
other implementations of RootedReference for Option wrapped types.
2016-02-16 22:40:03 +00:00
Anthony Ramine
cb5cd8d881
Say farewell to in-tree HeapSizeOf
2016-02-04 22:03:32 +01:00
Ms2ger
ff0992401e
Remove remaining reference to the long-disappeared JSRef type.
2016-01-18 09:52:23 +01:00
rohan.prinja
1f02c4ebbb
task -> thread
2016-01-10 17:58:13 +09:00
Johannes Linke
6b215f38ee
Fix a bunch of clippy lints
2016-01-02 23:27:15 +01:00
Ms2ger
0c61be7a57
Rustfmt some of script.
2015-11-18 11:14:05 +01:00
bors-servo
92f9e58310
Auto merge of #8286 - eefriedman:no-move, r=nox
...
Remove unnecessary uses of #[no_move]
The patch makes RootCollection a bit safer by making the StackRootTLS hold
it in place.
RootedVec was doing an extremely delicate dance and just hoping nobody
messed it up; switch to a Box to be safe.
CodeGenRust seemed to be using no_move for no particularly good reason.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8286 )
<!-- Reviewable:end -->
2015-11-08 12:51:00 +05:30
Eli Friedman
1a50fce67c
Clean up some code related to #[no_move].
...
The patch makes RootCollection a bit safer by making the StackRootTLS hold
it in place.
The use of no_move in CodeGenRust was leftover from when roots couldn't
be moved.
2015-11-07 21:17:24 -08:00
David Zbarsky
722aa86c89
Get rid of a bunch of explicit derefs
2015-11-03 19:51:46 -08:00
rohan.prinja
6e774ea6eb
merge from master
2015-11-03 19:01:23 +09:00
nxnfufunezn
d8ef3809a6
Removed JS::root Fixes #8251
2015-10-31 18:15:16 +05:30
rohan.prinja
51df8e310b
rearrange imports to be in alphabetical order
2015-10-30 20:28:59 +09:00
rohan.prinja
45224028db
more refactoring
2015-10-30 20:26:29 +09:00
rohan.prinja
bb2536cd01
move Castable into dom::bindings::inheritance
2015-10-30 20:24:42 +09:00
rohan.prinja
4a4f041948
remove get_rooted() and replace all references to it with references to get()
2015-10-29 21:48:39 +09:00
Ms2ger
85a57b5111
Add thread assertions to js.rs.
2015-10-29 11:56:17 +01:00
Bobby Holley
630b9f8fa0
Implement Hash and Eq for JS<T> and LayoutJS<T>.
2015-10-27 12:41:14 -07:00
bors-servo
6b95c3957b
Auto merge of #8097 - wenderen:8090-partialeq-for-mutheap, r=nox
...
implement PartialEq for MutHeap<JS<T>> and MutNullableHeap<JS<T>>
for #8090
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8097 )
<!-- Reviewable:end -->
2015-10-26 06:08:01 -05:00
Rohan Prinja
c1abb4fdb2
clean code as per code review
2015-10-26 03:52:05 +09:00
Eli Friedman
81ecf7824c
Make unrooted_must_root a bit more aggressive.
...
Basically, instead of trying to check for specific kinds of statements,
just check the types of all local variables.
Also included are some commented-out proposals for some slightly more
aggressive lints which might be useful (but trigger a little too
frequently at the moment).
2015-10-23 14:43:44 -07:00
Rohan Prinja
fe59b62db7
make changes according to code review ( #8097 )
2015-10-24 01:42:22 +09:00
Matt Brubeck
e9f9eaa61c
Fix type in MutHeap docs
2015-10-21 12:27:04 -07:00
Rohan Prinja
d9f8f68615
add equal() methods for comparisons with other types
2015-10-22 03:05:13 +09:00
Rohan Prinja
5e8dc366de
in PartialEq impls, use Self instead of explicitly naming the struct type
2015-10-22 01:05:48 +09:00