Commit graph

14672 commits

Author SHA1 Message Date
Corey Farwell
5953387cb0 Move font_advance.html to wpt reftests. 2015-10-23 10:26:38 -04:00
Corey Farwell
5455821701 Move font_style.html to wpt reftests. 2015-10-23 10:26:37 -04:00
Corey Farwell
5892aa71d5 Move img_block_display_a.html to wpt reftests. 2015-10-23 10:26:36 -04:00
Corey Farwell
d6bd162268 Move img_dynamic_remove.html to wpt reftests. 2015-10-23 10:26:35 -04:00
Corey Farwell
4ac7f9d944 Move inline_block_border_intrinsic_size_a.html to wpt reftests. 2015-10-23 10:26:30 -04:00
Corey Farwell
bd41c67f3e Move img_padding_a.html to wpt reftests. 2015-10-23 09:52:58 -04:00
Corey Farwell
8ca235c1e5 Move img_width_attribute_intrinsic_width_a.html to wpt reftests. 2015-10-23 09:52:57 -04:00
Corey Farwell
ed09b2bc94 Move incremental_text_color_a.html to wpt reftests. 2015-10-23 09:52:55 -04:00
Corey Farwell
79288fd584 Move inline_block_baseline_a.html to wpt reftests. 2015-10-23 09:52:54 -04:00
Axel Solis Trompler
2cb6972d14 Implement document.createEvent(TouchEvent) 2015-10-23 15:30:26 +02:00
bors-servo
94aa8ca80a Auto merge of #8167 - Ms2ger:util, r=nox
Various cleanup in util.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8167)
<!-- Reviewable:end -->
2015-10-23 07:00:09 -06:00
Paul Rouget
4fd3df8c6d hacking quickstart 2015-10-23 14:37:18 +02:00
bors-servo
28f4dd4f48 Auto merge of #8163 - mbrubeck:glutin-multitouch, r=glennw
Enable multitouch in Glutin.

This tells Glutin's Android and iOS back-ends to send events for more than one
pointer at a time.

r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8163)
<!-- Reviewable:end -->
2015-10-23 06:13:28 -06:00
bors-servo
51ab0abb7f Auto merge of #8161 - A-deLuna:fix-#8154, r=jdm
Fixes #8154 Convert match to `if let` in handle_window_event 



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8161)
<!-- Reviewable:end -->
2015-10-23 05:35:33 -06:00
bors-servo
4d737b51bb Auto merge of #8155 - Ms2ger:join, r=jdm
Remove Window::layout_join_port.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8155)
<!-- Reviewable:end -->
2015-10-23 04:50:38 -06:00
bors-servo
44e4f1ee5e Auto merge of #8153 - jdm:wptdoc, r=Ms2ger
Add documentation for writing new tests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8153)
<!-- Reviewable:end -->
2015-10-23 04:10:56 -06:00
Anthony Ramine
a1b15d36c9 Remove Rc<T> usage from Range
I initially used this to correctly handle ranges when their respective containers
are mutated, to get weak references of Range objects. I now realise that the weak
references should be handled at a lower-level, closer to the JS-managed object.
2015-10-23 11:12:02 +02:00
Ms2ger
4297a44435 Remove a pointless closure from spawn_named. 2015-10-23 10:35:58 +02:00
Ms2ger
cfc80582c8 Associate documentation comments for LogicalPoint's fields with the correct field. 2015-10-23 10:35:35 +02:00
Ms2ger
d20ef3b6d8 Use a where clause for rect_contains_point to bring the line under 100 columns. 2015-10-23 10:35:11 +02:00
Matt Brubeck
11d2bf3137 Enable multitouch in Glutin.
This tells Glutin's Android and iOS back-ends to send events for more than one
pointer at a time.
2015-10-22 15:09:15 -07:00
bors-servo
dcd207f9bf Auto merge of #7204 - mbrubeck:touchevent, r=jdm
Very basic touch events and touch scrolling

This implements just enough of [Touch Events](http://w3c.github.io/touch-events/) to enable scrolling on Android without regressing basic single-touch interaction like clicking on links.

Dragging a page will scroll it, unless the page calls `preventDefault` on the "touchstart" event.

Does **not** yet support pinch zooming or other multi-touch gestures or events.

Includes a `-Z convert-mouse-to-touch` command line flag for testing on non-touch platforms.  This is also enabled by default on Android because Glutin currently translates touch input to mouse events on Android.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7204)
<!-- Reviewable:end -->
2015-10-22 15:54:01 -06:00
Antonio de Luna
69273f2642 Fixes #8154 2015-10-22 12:20:56 -07:00
Matt Brubeck
316802e206 Implement Document.createTouch 2015-10-22 10:49:30 -07:00
Matt Brubeck
817eed22d1 Add a "-Z convert-mouse-to-touch" debug argument.
This is enabled by default on Android, because Glutin currently sends mouse
events instead of touch events on Android.  It's also useful for testing on
non-touch platforms.
2015-10-22 10:37:04 -07:00
Matt Brubeck
fe7460f34d Dispatch touch events and perform default touch actions.
This is currently limited to simple single-touch actions. It does not include
momentum scrolling or pinch zooming.
2015-10-22 10:37:03 -07:00
Matt Brubeck
4ed15a8853 Add bindings for TouchEvent DOM interfaces 2015-10-22 10:35:11 -07:00
bors-servo
e05999ea9f Auto merge of #8150 - Ms2ger:select-layout, r=jdm
Use the select!{} macro in LayoutTask::handle_request.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8150)
<!-- Reviewable:end -->
2015-10-22 11:14:52 -06:00
bors-servo
79f300f038 Auto merge of #8144 - nerith:clippy, r=Manishearth
Add `clippy` as a command to mach

This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8144)
<!-- Reviewable:end -->
2015-10-22 10:27:02 -06:00
Josh Matthews
29cdab217f Add documentation for writing new tests. 2015-10-22 11:40:59 -04:00
bors-servo
128e12f011 Auto merge of #8133 - Ms2ger:update-tests, r=Ms2ger
Update tests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8133)
<!-- Reviewable:end -->
2015-10-22 09:39:20 -06:00
Ms2ger
92e90e6633 Update web-platform-tests to revision 4b25d322ac6ed466f992669e5408b15d37d56436 2015-10-22 16:41:47 +02:00
bors-servo
0d4641b640 Auto merge of #8121 - paulrouget:disableControls, r=jdm
make it possible to disable default keybindings

For browser.html, we want to let the top level webpage handle these keybindings.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8121)
<!-- Reviewable:end -->
2015-10-22 08:38:01 -06:00
Ms2ger
1608450e4e Remove Window::layout_join_port.
It is only used in Window::force_reflow.
2015-10-22 16:12:59 +02:00
Ms2ger
9ad69586d1 Remove the ConstellationControlMsg::ReflowComplete message. 2015-10-22 16:12:58 +02:00
Ms2ger
2456ddf4ba Remove Window::handle_reflow_complete_msg and ScriptTask::handle_reflow_complete_msg.
Code on the script thread can only observe self.layout_join_port being Some()
between the time it is set in force_reflow, and the join_layout call later in
that function, and no significant code is called in that code.

Since these functions do nothing useful if layout_join_port is None, there is
no point in keeping them.
2015-10-22 16:12:58 +02:00
Ms2ger
7cd3870977 Inline Window::join_layout into its only caller.
I do not know if the FIXME comment is correct; I just copied it.
2015-10-22 16:12:57 +02:00
Ms2ger
9d739cf684 Remove layout_is_idle.
Code on the script thread can only observe self.layout_join_port being Some()
between the time it is set in force_reflow, and the join_layout call later in
that function, and no significant code is called in that code.

This implies that layout_is_idle will always return true, so there is no
reason for the function to exist.
2015-10-22 16:12:56 +02:00
Ms2ger
af448374f9 Remove pointless join_layout calls.
Code on the script thread can only observe self.layout_join_port being Some()
between the time it is set in force_reflow, and the join_layout call later in
that function, and no significant code is called in that code.

As join_layout does nothing when called if self.layout_join_port is None,
these two calls are useless.
2015-10-22 16:12:55 +02:00
bors-servo
04c574967f Auto merge of #8149 - nxnfufunezn:compositor_panics-8102, r=jdm
Fixes #8102 Removed unwrap on result of send call

@jdm

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8149)
<!-- Reviewable:end -->
2015-10-22 06:53:09 -06:00
Ms2ger
28c738455e Use the select!{} macro in LayoutTask::handle_request. 2015-10-22 14:18:22 +02:00
nxnfufunezn
fe2a4ac444 Fixes #8102 Removed unwrap on result of send call 2015-10-22 07:41:33 -04:00
bors-servo
e62ece80a2 Auto merge of #8148 - Ms2ger:charset, r=nox
Fix charset declarations in border radius tests.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8148)
<!-- Reviewable:end -->
2015-10-22 05:30:18 -06:00
Ms2ger
ff59858686 Fix charset declarations in border radius tests. 2015-10-22 11:33:37 +02:00
Ms2ger
6a4ad433a2 Update CSS tests to revision 465c03e3d8d42ce98b9dfa0c8d8e7b4b8d48ebd7 2015-10-22 10:19:14 +02:00
Paul Rouget
e60f02c3ba Remove zoom-on-ctrl-scroll and make quit-on-escape preventable 2015-10-22 09:08:01 +02:00
bors-servo
ea000471d3 Auto merge of #8143 - frewsxcv:new-wpt-tests-missing-assets, r=Manishearth
Add a few missing assets lost in reftest migration

These are used in:

* tests/wpt/mozilla/tests/css/background_size_ref.html
* tests/wpt/mozilla/tests/css/background_size_a.html

Relevant to #5618

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8143)
<!-- Reviewable:end -->
2015-10-21 18:42:48 -06:00
bors-servo
9a34decec2 Auto merge of #8086 - froydnj:premultiply-tables, r=jdm
add (un)premultiply tables for canvas {Get,Put}ImageData operations

Pretty straightforward use of lookup tables to replace a bunch of expensive float operations.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8086)
<!-- Reviewable:end -->
2015-10-21 17:48:49 -06:00
Brandon Fairchild
d1c2e79c89 Add clippy as a command to mach
This gives mach the ability to run clippy with `./mach clippy`.

Fixes #8134.
2015-10-21 19:21:20 -04:00
Corey Farwell
08bd5bc0c1 Add a few missing assets lost in reftest migration
These are used in:

* tests/wpt/mozilla/tests/css/background_size_ref.html
* tests/wpt/mozilla/tests/css/background_size_a.html

Relevant to #5618
2015-10-21 19:03:55 -04:00