Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00
Josh Matthews
015b07f1e0
Decouple compositing and script crates.
2014-08-08 16:17:17 -04:00
Jack Moffitt
b91e6f30e0
Upgrade Rust.
2014-08-02 21:11:47 -06:00
Ms2ger
944d8b00b0
Call the generated rather than the hand-written traits ( fixes #2936 ).
2014-07-27 23:00:17 +02:00
Ms2ger
d40b97ea73
Implement MessageEvent.
2014-07-16 14:53:22 +02:00
Ms2ger
829259fb79
Introduce abstractions for global scopes.
...
Part of #2811 .
2014-07-15 15:33:57 +02:00
Ms2ger
f963ed99ac
Rename variables that refer to global objects.
...
This clarifies whether those variables will point to a Window object or an
arbitrary global object.
Note in particular that all IDL Constructors will accept an arbitrary global
object.
2014-07-15 15:33:56 +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
Matt Brubeck
4fef0d1c1c
Separate "desktop" and "mobile" zoom calculations.
...
This ensures that the layout viewport responds to each type of zoom correctly,
and lays the ground for CSS Media Queries and CSS Device Adaption.
Until we have proper touch support, mobile-style "pinch" zoom can be simulated
by holding Ctrl while scrolling with a mousewheel or trackpad gesture.
2014-06-20 16:33:57 -07:00
Manish Goregaokar
ee56b45a8c
Use Traceable for primitive types and DOMString
2014-06-16 21:59:01 +05:30
Ms2ger
e09ed14362
Remove Reflectable::mut_reflector.
2014-06-13 19:19:58 +02:00
Ms2ger
0b364d13b6
Use internal mutability for Event.
2014-06-11 19:51:06 +02:00
Matt Brubeck
89327aa5be
Outside of compositor, store window size in CSS px
...
This fixes an issue where the CSS viewport was too large on high-DPI displays
because it was set to the window size in device pixels, instead of px. This
patch ensures that the window size is converted from device pixels to px
before being passed to script/layout code.
The Window trait now exposes the window size in both device pixels and
density-independent screen coordinates, with clearer method names.
2014-06-09 15:46:51 -07:00
Jack Moffitt
629c4c6afe
Upgrade Rust.
2014-06-05 09:58:59 -06:00
Ms2ger
97efd122a3
Rename BindingDeclarations to Bindings.
2014-06-02 19:48:42 +02:00
Ms2ger
d896442a4a
Implement Event::new_initialized and initialize the event in Event::new.
2014-05-31 10:42:21 +02:00
Tetsuharu OHZEKI
f78e561746
Use Cell/RefCell for interior mutability of Event.
2014-05-30 03:53:07 +09:00
Manish Goregaokar
4c997e8934
Implement CustomEvent ( #2173 )
2014-05-24 02:51:22 +05:30
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
Manish Goregaokar
2f376a1104
Add ProgressEvent interface
2014-05-08 20:41:51 +05:30
Ms2ger
243814022e
Replace all ~"" with "".to_owned().
2014-05-03 22:17:45 +02:00
Josh Matthews
91278da9dd
Address review comments.
2014-05-03 14:18:31 -04:00
Josh Matthews
0f2d0b1dc3
Address review comments.
2014-05-03 14:18:31 -04:00
Josh Matthews
7b3e6d1f21
Remove all root collections.
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
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
Gulshan Singh
b1f4e04ee2
Removed unnecessary return and moved crate import to script.rs
2014-04-30 14:38:11 -04:00
Gulshan Singh
af548696bb
Make TimeStamp in event.rs return the actual timestamp
2014-04-30 13:35:15 -04:00
bors-servo
b6ed24621e
auto merge of #2233 : campadrenalin/servo/initialize-event-bubbling-to-false, r=Ms2ger
...
Fixes #2183 .
2014-04-28 04:55:31 -04: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
Philip Horger
6312ff38dc
#2183 Initialize Event::bubbles to false
2014-04-25 14:48:48 -07:00
Harry Maclean
7dbf69c223
set the right flags and attrs for InitEvent
2014-04-20 19:23:55 +01:00
Manish Goregaokar
a748e48f48
Rename Event::default_prevented -> Event::canceled to better match spec ( #2177 )
2014-04-19 16:02:14 +05:30
Manish Goregaokar
fa7bc7a686
Fix most defaultPrevented test failures ( #2172 )
2014-04-19 15:46:18 +05:30
Ms2ger
4e34fcd264
Remove trailing whitespace.
2014-04-07 11:41:58 +02:00
Josh Matthews
64c0de9fe7
Warning police.
2014-03-18 09:31:22 -05:00
Tetsuharu OHZEKI
7216eee31c
Use 'TConstants' instead of magic numbers.
2014-03-16 14:41:25 +09:00
Ms2ger
23b7277b54
Pass &JS<Window> to reflect_dom_object.
2014-03-04 14:13:58 +01:00
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
Ms2ger
0f5c9a35b9
Use DOMString more consistently.
2014-02-13 19:32:59 +01:00
HyunJune Kim
d2f8b593a9
compositor can get mouse point from window event
2014-02-10 11:14:29 +09:00
Jack Moffitt
a7ef1cd35e
Upgrade to latest Rust.
2014-01-12 19:45:45 -07:00
Ms2ger
d4a48995a2
Remove type_id arguments from Event::new and UIEvent::new.
2013-11-14 21:10:23 +01:00
Tetsuharu OHZEKI
f5ef4365f4
Stop passing DOMStrings via borrowed pointer. ( #1201 )
2013-11-14 20:35:36 +09:00