Commit graph

13507 commits

Author SHA1 Message Date
Ms2ger
970b8aa8bc Remove the unused default implementation of Reflectable::init_reflector. 2015-10-23 17:21:04 +02:00
Ms2ger
9be52dc41a Implement GlobalRef::reflector as an inherent method.
Reflectable is meant for actual DOM objects, not for references to them.
2015-10-23 17:20:17 +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
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
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
Nathan Froyd
9e348e2e8e add premultiply table for PutImageData 2015-10-21 18:30:35 -04:00
bors-servo
12c618450b Auto merge of #8103 - frewsxcv:bump, r=nox
Upgrade some dependencies

Check each commit for a link to the changelog

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8103)
<!-- Reviewable:end -->
2015-10-21 16:02:20 -06:00
bors-servo
af6a64e176 Auto merge of #7761 - fiji-flo:input_caret, r=pcwalton
display input caret for textarea. fixes #7758

This adds the input caret for textareas. Although, it does not handle multiline textareas correctly. The caret gets displayed for each line.

I'll look into that but that will take more time. Some feedback on this small patch would be appreciated though.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7761)
<!-- Reviewable:end -->
2015-10-21 15:23:52 -06:00
Florian Merz
80e8a674e2 display input caret for textarea. fixes #7758 2015-10-21 22:38:23 +02:00
bors-servo
f9e17d33bb Auto merge of #8136 - mbrubeck:typo, r=jdm
Fix type in MutHeap docs



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8136)
<!-- Reviewable:end -->
2015-10-21 14:15:28 -06:00
Matt Brubeck
e9f9eaa61c Fix type in MutHeap docs 2015-10-21 12:27:04 -07:00
bors-servo
50ec235384 Auto merge of #8042 - bholley:dirty_siblings, r=pcwalton
Remove HAS_DIRTY_SIBLINGS.

This isn't doing anything right now, and we're not even setting it properly
in dirty_impl the |dirty_subtree(self)| was causing us to hit the skip case
for step 3.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8042)
<!-- Reviewable:end -->
2015-10-21 12:18:02 -06:00
Bobby Holley
228eff7272 Remove HAS_DIRTY_SIBLINGS.
This isn't doing anything right now, and we're not even setting it properly
in dirty_impl the |dirty_subtree(self)| was causing us to hit the skip case
for step 3.
2015-10-21 09:56:07 -07:00
bors-servo
3342cd9531 Auto merge of #8132 - akiss77:codegen-u8, r=Ms2ger
Fix char types in script binding codegen

Use `libc::c_char` instead of `i8` for character data since that's more
portable. (Some architectures, e.g. AArch64, have unsigned characters,
i.e. `u8`.)

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8132)
<!-- Reviewable:end -->
2015-10-21 10:44:14 -06:00
bors-servo
2de5407cda Auto merge of #7450 - benschulz:constellation-timer, r=jdm
Ordering guarantees for timers

This is an rough solution to the issue described in #3396. XHRs still do their own thing and an overall clean up is in order. Before I do that, though, I'd really like someone to sign off on the overall idea.

There's one major difference to what jdm layed out #3396: The timers remain with the window/worker and only the earliest expiring one is coordinated with the dedicated timer thread.
That means both the timer thread and the window/worker have to keep track of which timer expires next, which feels a bit wonky. However, the upshot is that there's no need for communication with the timer thread when a pipeline is frozen, thawed or dropped.

Most relvant parts are
 - the [`TimerScheduler`](6f5f661958 (diff-74137a6f50ab38e7a1e4d16920a66ce7R73)), which is the new per-constellation timer task and
 - the [`ActiveTimers`](6f5f661958 (diff-86707d952414a2860b78bcf6c1db8e2eR34)) which is what's left on the window/worker side.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7450)
<!-- Reviewable:end -->
2015-10-21 09:07:30 -06:00