Commit graph

264 commits

Author SHA1 Message Date
Simon Sapin
8b522f2e7d Rename Au methods with f32/f64 instead of frac32/frac/subpx 2015-05-05 18:23:29 +02:00
Simon Sapin
32d5e24922 Replace Au-related free functions in util::geometry with Au methods. 2015-05-05 17:36:03 +02:00
Simon Sapin
ef8edd4e87 Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8. 2015-05-05 10:07:34 -04:00
Philip Munksgaard
fe1a334b11 Remove FIXME
Following the (short) in #5930 it was decided that we should remove this
FIXME.

Fixes #5930
2015-05-04 15:38:38 +02:00
bors-servo
88ed4e58e1 Auto merge of #5725 - pgonda:dispatch-mousedown-mouseup, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5725)
<!-- Reviewable:end -->
2015-04-30 12:22:03 -05:00
Peter
c069d1753e added dispatching for mousedown and mouseup events, fixes #5705 2015-04-29 21:32:18 -04:00
Prabhjyot Singh Sodhi
b980278d90 Uniformise the various Msg types [#5882] 2015-04-30 01:22:16 +05:30
Ms2ger
903305416a Implement Clone for Copy types. 2015-04-28 23:31:10 +02:00
Anthony Ramine
7197052c0d Uniformise root() methods
They now live in traits Rootable, OptionalOptionalRootable, OptionalRootable
and ResultRootable.
2015-04-28 09:22:45 +02:00
Manish Goregaokar
369a568264 Make RootedVec/RootCollection #[no_move]; improve code (fixes #5737) 2015-04-28 04:35:58 +05:30
Manish Goregaokar
dcb0a0eab6 Fix some no_move errors 2015-04-28 04:20:45 +05:30
Ms2ger
5fd753fda2 Factor out a handle_parsing_complete function from ScriptTask::Load. 2015-04-27 13:18:56 +02:00
James Graham
c2fc6e311a Add script execution support via WebDriver 2015-04-23 16:14:27 +01:00
bors-servo
43d666f94b Auto merge of #5802 - mmatyas:indentfix, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5802)
<!-- Reviewable:end -->
2015-04-22 19:49:30 -05:00
Glenn Watson
d8aef7208e Refactored image cache task - details below.
* Simpler image cache API for clients to use.
 * Significantly fewer threads.
   * One thread for image cache task (multiplexes commands, decoder threads and async resource requests).
   * 4 threads for decoder worker tasks.
 * Removed ReflowEvent hacks in script and layout tasks.
   * Image elements pass a Trusted<T> to image cache, which is used to dirty nodes via script task. Previous use of Untrusted addresses was unsafe.
   * Image requests such as background-image on layout / paint threads trigger repaint only rather than full reflow.
 * Add reflow batching for when multiple images load quickly.
   * Reduces the number of paints loading wikipedia from ~95 to ~35.
 * Reasonably simple to add proper prefetch support in a follow up PR.
 * Async loaded images always construct Image fragments now, instead of generic.
   * Image fragments support the image not being present.
 * Simpler implementation of synchronous image loading for reftests.
 * Removed image holder.
 * image.onload support.
 * image NaturalWidth and NaturalHeight support.
 * Updated WPT expectations.
2015-04-23 09:40:24 +10:00
Mátyás Mustoha
91b4246e1b Fix some irregular indentation. 2015-04-22 21:57:58 +02:00
Ms2ger
04b532e1fb Store a Runtime object in ScriptTask. 2015-04-22 11:17:09 +02:00
Ms2ger
cd7ec9912e Make ScriptTask::js_context immutable.
Since we drop the ScriptTask almost immediately after clearing the field,
there's little reason to do it manually.
2015-04-20 20:16:55 +02:00
Glenn Watson
18d465bcd2 Support focus management and keyboard events for iframes. 2015-04-20 07:52:22 +10:00
Bogdan Cuza
e0724ec9a9 Make mouse_over_targets a RootedVec 2015-04-18 15:54:25 +03:00
Josh Matthews
d0704d1797 Documentation. 2015-04-16 11:46:42 -04:00
Josh Matthews
01e66035ff Implement sync XHR by creating and spinning on-demand event loops. 2015-04-16 11:46:40 -04:00
Josh Matthews
1644436557 Start switching net/ to use abstractions over channels to allow introducing non-channel communication in the future. 2015-04-16 11:46:39 -04:00
Bogdan Cuza
19ffab82f1 Make Metadata use ContentType 2015-04-14 22:03:21 +03:00
Ms2ger
49393a8762 Update some URLs.
The HTML spec's division into pages is not stable, so it is safer to use the
URL without a specific page (which will redirect).
2015-04-14 10:44:51 +02:00
Adenilson Cavalcanti
a233cb5ef9 Using unwrap() as suggested in review. 2015-04-13 14:45:14 -07:00
Adenilson Cavalcanti
d2b7cbd4ef Squashing a few compiler warnings. 2015-04-13 14:25:42 -07:00
Guro Bokum
97714ec5ed Firefox timeline integration #4957 2015-04-13 21:08:07 +07:00
Anthony Ramine
e20d997b37 Use a simple Temporary value in TreeIterator 2015-04-13 11:01:02 +02:00
josiahdaniels
5e90299450 Use Page::window_for_script_deallocation in ScriptMemoryFailsafe
Also: Rename window_for_script_dealloation to window_for_script_deallocation
2015-04-12 17:38:38 -04:00
Ms2ger
95e4e25924 Move Runtime to rust-mozjs. 2015-04-10 14:53:24 +02:00
Ms2ger
2a5119ff37 Add rt and cx methods to Runtime. 2015-04-10 14:53:22 +02:00
Ms2ger
24ef5baf66 Create a Runtime struct to manage JSRuntime and JSContext.
I intend to move this struct into rust-mozjs, but I kept it here for easier
iteration for now.
2015-04-10 14:53:21 +02:00
Ms2ger
d46db6d7f1 Resume tracing our collections of roots.
The second JS_SetExtraGCRootsTracer call clobbered the first, so
trace_collections was no longer being called.
2015-04-10 14:53:18 +02:00
Gilles Leblanc
ba36a108c1 Split out shared networking code into net_traits crate
Fixes #4476
2015-04-03 13:38:10 -04:00
Ms2ger
6b127a8df8 Introduce a MouseButton enum. 2015-04-03 01:24:33 +02:00
Patrick Walton
1fe55a27b1 script: Stop destroying all flows on every mouse-over event. 2015-04-01 13:18:04 -07:00
snf
1cc5bd4287 broadcasting storage changes events 2015-03-31 21:51:41 +01:00
bors-servo
c1cc31b9d6 auto merge of #5428 : pcwalton/servo/squash-mouse-move, r=jdm
Otherwise they queue up if the event handler isn't 60FPS.

r? @jdm
2015-03-30 13:40:04 -06:00
bors-servo
39556cc832 auto merge of #5422 : bdero/servo/bdero/box-syntax, r=jdm
Closes #5417
2015-03-29 17:10:01 -06:00
Corey Farwell
d838fcce30 Remove some unnecessary uses of as_slice
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:

* `String` -> `str`
* `Atom` -> `str`

The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Brandon DeRosier
ccc55d658f Use box syntax instead of Box::new()
Closes #5417
2015-03-29 13:41:14 -04:00
Mukilan Thiyagarajan
e8a1e9eabb Implement RootedVec<T> 2015-03-29 11:58:25 +02:00
Ms2ger
54c006d159 Use u32 for reflow ids. 2015-03-28 15:36:36 +01:00
Patrick Walton
9695e09707 script: Squash mouse-move events just like resizes.
Otherwise they queue up if the event handler isn't 60FPS.
2015-03-27 19:07:42 -07:00
Thiago Pontes
1244f9e016 Notify devtools about new worker globals 2015-03-27 16:04:53 -03:00
bors-servo
432739164b auto merge of #5359 : aweinstock314/servo/moz-events, r=jdm
Addresses #5352.

This is based on https://github.com/glennw/servo/tree/moz-events
2015-03-25 20:00:54 -06:00
Avi Weinstock
cb9cfe2b22 Replace (String, Option<String>) with MozBrowserEvent in uses of MozBrowserEventMsg. 2015-03-25 17:07:59 -04:00
snf
e1f34b827d implementing MainThreadRunnable in ScriptTask 2015-03-25 19:31:36 +00:00
Glenn Watson
06a79243a7 Ensures that iframe navigation updates the parent iframe element subpage id.
This fixes the case of clicking a link in an iframe, going back, then clicking the link again.
2015-03-24 10:14:49 +10:00