Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00
Rohan Prinja
fd09df71a4
implement window.frames
2014-08-30 02:25:23 +05:30
Chris Paris
1c1db51ccf
Implement window.atob/btoa
2014-08-15 05:54:57 -10:00
Josh Matthews
015b07f1e0
Decouple compositing and script crates.
2014-08-08 16:17:17 -04:00
James Graham
881e4fcd6e
Support window.parent in the one-window case.
2014-07-29 15:42:25 +01:00
Ms2ger
944d8b00b0
Call the generated rather than the hand-written traits ( fixes #2936 ).
2014-07-27 23:00:17 +02:00
Ms2ger
9bd1f0408b
Remove some unnecessary uses of the serialize module.
2014-07-24 18:09:53 +02:00
Ms2ger
27f92239b0
Implement Window.screen.
2014-07-24 12:51:49 +02:00
Simon Sapin
6917fbf28e
Used rust-url directly instead of servo_util::url
...
The latter now only calls the former.
2014-07-21 20:22:29 +01:00
Edit Balint
0b5a1b2ad9
Move timer firing implemention into Window #1992
2014-07-16 11:36:18 +02:00
Ms2ger
829259fb79
Introduce abstractions for global scopes.
...
Part of #2811 .
2014-07-15 15:33:57 +02:00
Ms2ger
439bc78cab
Return a Temporary from *Binding::Wrap.
...
Returning a JS<T> is GC-unsafe.
This commit also includes some cleanup around Node and Document reflection.
2014-07-10 16:45:41 +02:00
Ms2ger
bba9e58df1
Make some DOM members private.
...
I have not reviewed if this is the complete set of members that can be made
private.
2014-06-28 16:27:36 +02:00
Manish Goregaokar
f5b5b337d3
Upgrade to latest Rust.
2014-06-27 18:50:32 -06:00
Manish Goregaokar
ee56b45a8c
Use Traceable for primitive types and DOMString
2014-06-16 21:59:01 +05:30
bors-servo
c0576108c5
auto merge of #2585 : ebalint/servo/2530, r=jdm
2014-06-13 14:04:45 -04:00
Edit Balint
94ec3cde8a
Split Page code out of script_task.rs #2530
2014-06-13 19:28:57 +02:00
Ms2ger
e09ed14362
Remove Reflectable::mut_reflector.
2014-06-13 19:19:58 +02:00
Manish Goregaokar
e21faaaba7
Don't fail on clearing nonexistant timeouts
2014-06-13 16:54:24 +05:30
Ms2ger
e9b64dc361
Use internal mutability for Window::{active_timers, next_timer_handle}.
2014-06-11 19:51:07 +02:00
Ms2ger
07c67a1d5a
Use internal mutability for Window::browser_context.
2014-06-11 19:51:07 +02:00
Ms2ger
9acba1477c
Use internal mutability for EventTarget.
2014-06-11 19:51:06 +02:00
Ms2ger
6308ed914c
Support GlobalEventHandlers.onclick.
2014-06-08 18:50:27 +02:00
Jack Moffitt
629c4c6afe
Upgrade Rust.
2014-06-05 09:58:59 -06:00
Tetsuharu OHZEKI
884346030c
Remove needless '&mut self' from WindowMethods.
2014-06-04 00:55:23 +09:00
Ms2ger
97efd122a3
Rename BindingDeclarations to Bindings.
2014-06-02 19:48:42 +02:00
Ms2ger
c1d2d700c5
Remove not-yet-implemented APIs, and update MouseEvent to specification.
2014-06-02 12:32:09 +02:00
Ms2ger
33e64c95d3
Include modules with only callbacks in BindingDeclarations.
...
This commit also includes improvements to the 'use' order in some of the
touched files.
2014-05-31 18:58:04 +02:00
Tetsuharu OHZEKI
1f8eda957d
Use Cell/RefCell for interior mutability of Window.
2014-05-30 03:54:24 +09:00
Josh Matthews
003e5bcd46
Port modern callback handling code from Gecko, and copy related WebIDL parser bits too.
2014-05-27 20:43:52 +02:00
Josh Matthews
2d6153772c
Add stubs for inline event handler manipulation.
2014-05-27 20:43:48 +02:00
Ms2ger
d5cb4377ef
Use *mut T for the T* pointers in SpiderMonkey.
2014-05-26 18:19:44 +02:00
Tetsuharu OHZEKI
46d31632e0
Initial spec-incompliant implementation of default click action for anchor elements.
...
This is cherry-picked from https://github.com/mozilla/servo/pull/1688 :
* Initial spec-incompliant implementation of default click action for anchor elements.
* Add documentation; gut the new document URL loading method
and move it all into the new Window method.
* Add test for default event prevention.
Original developer: Josh Matthews <josh@joshmatthews.net>
2014-05-23 23:30:09 +09:00
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
Ms2ger
44fb9eb28f
Avoid unnecessary Rc clone in Window::new.
2014-05-14 12:26:24 +02:00
Tetsuharu OHZEKI
facffe0966
Move Window helper methods to a WindowHelpers trait
2014-05-14 13:14:29 +09:00
Ms2ger
ab5bf80447
Drop the pointless indirection in Window::active_timers.
2014-05-12 17:15:35 +02:00
Ms2ger
30055d9820
Move debug functions to Window IDL.
...
This is a cleaner way to expose those functions, and makes it possible to
remove a significant amount code in rust-mozjs.
The assert() function is no longer exposed, as it was unused and not very
useful.
2014-05-09 14:44:07 +02:00
Gulshan Singh
fb0c433b70
Add Performance object to Window and implement Performance::Now()
2014-05-07 17:30:33 -04:00
Ms2ger
243814022e
Replace all ~"" with "".to_owned().
2014-05-03 22:17:45 +02:00
Josh Matthews
0f2d0b1dc3
Address review comments.
2014-05-03 14:18:31 -04:00
Josh Matthews
a09a4bd297
Root Temporary values for the duration of their lifetime.
2014-05-03 14:18:31 -04:00
Josh Matthews
522d3f167b
s/Unrooted/Temporary/g
2014-05-03 14:18:31 -04:00
Josh Matthews
7daa97c7e5
Remove abstract_self.
2014-05-03 14:18:30 -04:00
Josh Matthews
76783b029e
Move WebIDL methods to traits implemented by JSRef types.
2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c
Implement safe rooting strategy via Unrooted, Root, JSRef, and JS.
2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32
Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing.
2014-05-03 14:18:30 -04:00
Tetsuharu OHZEKI
78856c87a4
Remove the 'pub use self::BindingDeclarations::*;' export.
2014-05-01 18:49:16 +09:00
Ms2ger
3ecfb9197f
Remove unused support for passing extra arguments for timers.
2014-04-28 23:06:25 +02:00
Lars Bergstrom
948daf2422
This batch of changes upgrades Servo to work with the Rust upgrade as of
...
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
2014-04-27 15:46:12 -05:00