Commit graph

10079 commits

Author SHA1 Message Date
bors-servo
1d66b090a2 Auto merge of #5770 - mmatyas:canvas_rect, r=jdm
A simple little patch.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5770)
<!-- Reviewable:end -->
2015-04-21 08:43:47 -05:00
Avi Weinstock
d4f7ec5b4e Update Cargo.lock files for cef/gonk. 2015-04-21 09:31:23 -04:00
Avi Weinstock
acb29201a9 Updated README.md to reflect Xmu dependency. 2015-04-21 09:31:22 -04:00
Avi Weinstock
503cc9e6d6 Moved clipboard integration from textinput to constellation, to facilitate sandboxing. 2015-04-21 09:31:20 -04:00
Mátyás Mustoha
5287cb7fba Canvas: implement rectangle drawing. 2015-04-21 15:21:30 +02:00
bors-servo
fe61cdc95d Auto merge of #5758 - dhananjay92:Issue#5735, r=jdm
Solves #5735.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5758)
<!-- Reviewable:end -->
2015-04-21 08:05:48 -05:00
Avi Weinstock
ba4c455438 Implement X11 clipboard integration (Issue #5376). 2015-04-21 08:36:15 -04:00
bors-servo
e4b620ea54 Auto merge of #5652 - dmarcos:webgl, r=jdm
@jdm @ecoal95 I'm working on making VR happen in the Browser and I want to bring to Servo the [webVR APIs](https://github.com/MozVR/webvr-spec/blob/master/webvr.idl) we already have in Gecko. Before anything happens we need a working implementation of WebGL (and also the [fullscreen API](https://fullscreen.spec.whatwg.org/)). My implementation is very basic and probably naive (I just recently started to contribute to Servo). My patch is just a starting point: 

- It only implements ```clearColor``` and ```clear``` methods of the [WebGL spec](https://www.khronos.org/registry/webgl/specs/latest/).
- It uses the readback strategy that ```canvasRenderingContext2D``` is using (The webgl task paints stuff independently on it's own buffer and the compositor task request the pixels back to the webgl task when it needs them) I'm sure there are much better ways to handle this. Latency and FPS are critical in VR so we have to figure out the fastest way to push pixels to the screen. I've read something about layerizing the canvas but I'm still not sure what that even means :)
- There's an included test you can try ```./mach run tests/ref/webgl-context/clearcolor.html``` 

@ecoal95 I know you'll be working on this for the next three months. With a foundation in place we will be able to make quick progress in parallel. This is exciting!

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5652)
<!-- Reviewable:end -->
2015-04-20 19:29:02 -05:00
bors-servo
99c6fbc3a4 Auto merge of #5765 - jdm:intermittentrestore, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5765)
<!-- Reviewable:end -->
2015-04-20 18:55:32 -05:00
Josh Matthews
a1c4f49da8 Disable intermittently-passing test pending further investigation. #5764 2015-04-20 19:54:38 -04:00
bors-servo
69a2c45b34 Auto merge of #5763 - mbrubeck:trace-layout-readme, r=glennw
r? @glennw

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5763)
<!-- Reviewable:end -->
2015-04-20 16:50:12 -05:00
Matt Brubeck
f6bd2cb48a Update layout viewer docs 2015-04-20 14:50:22 -07:00
Diego Marcos
c82485874d Kicks off a WebGL implementation 2015-04-20 14:29:39 -07:00
bors-servo
23945f2ea8 Auto merge of #5759 - Adenilson:visibleReturn01, r=pcwalton
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5759)
<!-- Reviewable:end -->
2015-04-20 15:01:44 -05:00
Adenilson Cavalcanti
8aa9427af0 Skip computing fragment position and return early if visibility property
is not set.
2015-04-20 12:17:38 -07:00
Dhananjay Nakrani
d0138443d5 Move actor_workers HashMap outside handle_new_global(). [Issue#5735] 2015-04-20 11:33:09 -07:00
bors-servo
ccc77caa79 Auto merge of #5752 - Ms2ger:cx-immutable, r=jdm
Since we drop the ScriptTask almost immediately after clearing the field,
there's little reason to do it manually.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5752)
<!-- Reviewable:end -->
2015-04-20 13:17:43 -05: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
bors-servo
b2585bee4d Auto merge of #5750 - Ms2ger:from_u32, r=jdm
This exposes another bug: "-0" failed to parse with str.parse(), and is now
successfully parsed into 0. However, input.size and textarea.{rows, cols} are
supposed to be "limited to only non-negative numbers greater than zero", so 0
is not actually supposed to be accepted.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5750)
<!-- Reviewable:end -->
2015-04-20 07:36:06 -05:00
Ms2ger
dd9351d722 Parse attributes according to the specification in AttrValue::from_u32.
This exposes another bug: "-0" failed to parse with str.parse(), and is now
successfully parsed into 0. However, input.size and textarea.{rows, cols} are
supposed to be "limited to only non-negative numbers greater than zero", so 0
is not actually supposed to be accepted.
2015-04-20 10:51:44 +02:00
bors-servo
8b8daa24b8 Auto merge of #5559 - glennw:iframe-focus, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5559)
<!-- Reviewable:end -->
2015-04-19 18:13:59 -05:00
bors-servo
9c7c289aca Auto merge of #5731 - mmatyas:canvas_saverestore, r=jdm
This patch enables the use of `save()` and `restore()` for the canvas context, which is used by *a lot* of sites and scripts.

Depends on servo/rust-azure#153.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5731)
<!-- Reviewable:end -->
2015-04-19 17:40:33 -05:00
bors-servo
4474321829 Auto merge of #5744 - dhananjay92:Issue#5738, r=Manishearth
*This PR solves Issue #5738*

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5744)
<!-- Reviewable:end -->
2015-04-19 17:00:56 -05:00
Glenn Watson
18d465bcd2 Support focus management and keyboard events for iframes. 2015-04-20 07:52:22 +10:00
Mátyás Mustoha
5b8416a2b6 Canvas: implement context state save/restore. 2015-04-19 21:12:13 +02:00
Dhananjay Nakrani
7cdfc76ea9 Change parse_progress() take JSRef by value. [Issue#5738] 2015-04-19 11:24:45 -07:00
bors-servo
f164cc253e Auto merge of #5742 - marcusklaas:issue-5718, r=jdm
This closes issue https://github.com/servo/servo/issues/5718.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5742)
<!-- Reviewable:end -->
2015-04-19 10:10:57 -05:00
bors-servo
e5ec55f0d8 Auto merge of #5741 - Ms2ger:attr-for-layout, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5741)
<!-- Reviewable:end -->
2015-04-19 09:37:29 -05:00
bors-servo
331708f0f6 Auto merge of #5567 - boghison:document_rootedvec, r=jdm
Fixes #5539

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5567)
<!-- Reviewable:end -->
2015-04-19 09:05:23 -05:00
Marcus Klaas
c1f25bbfe4 Replace usage of ResponseSenders by LoadConsumer 2015-04-19 13:26:56 +02:00
Ms2ger
0042f78aa7 Use get_attr_for_layout in get_classes_for_layout.
This fixes a bug with elements with multiple class attributes. In this case,
the class attribute in the null namespace would only be considered if it was
the first class attribute in the list.
2015-04-18 17:51:03 +02:00
Ms2ger
21d3ddabbf Add a test for the class selector with multiple class attributes. 2015-04-18 17:50:25 +02:00
Ms2ger
bdb8657cf6 Use get_attr_for_layout in ghas_class_for_layout.
This fixes a panic if this code was ever called on an element with a class
attribute in a non-null namespace. In this case, the attribute would not have
been parsed into a list of tokens, so value_tokens_forever() would have
returned None.

However, this function is, as far as I can tell, never called, because of the
way selectors are evaluated in layout. ('Return the selectors that match this
node' rather than 'return the nodes that match this selector'; the latter
uses only each_class.)
2015-04-18 16:56:54 +02:00
Ms2ger
39e3ace817 Use get_attr_for_layout in get_attr_atom_for_layout.
The code is equivalent.
2015-04-18 16:53:05 +02:00
Ms2ger
d67d6bfa3a Give get_attr_for_layout a more useful signature. 2015-04-18 16:51:57 +02:00
Bogdan Cuza
e0724ec9a9 Make mouse_over_targets a RootedVec 2015-04-18 15:54:25 +03:00
bors-servo
40ee41ca92 Auto merge of #5739 - frewsxcv:style-docs, r=SimonSapin
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5739)
<!-- Reviewable:end -->
2015-04-18 05:44:50 -05:00
Corey Farwell
9f6d94e107 Add links to the spec for components/style 2015-04-17 21:29:08 -04:00
bors-servo
e78683430f Auto merge of #5736 - servo:larsbergstrom-gonk-readme, r=Manishearth
The bootstrap binaries have been approved for public use, so we do not need to request that everyone rebuild B2G in order to try out the B2S build.

r? @manishearth

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5736)
<!-- Reviewable:end -->
2015-04-17 16:26:39 -05:00
bors-servo
ca8c0f353c Auto merge of #5728 - Adenilson:optimDL01, r=metajack
This DL is created at paint time, per tile. To dump, pass -Z dump-display-list-optimized at startup.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5728)
<!-- Reviewable:end -->
2015-04-17 15:33:06 -05:00
Lars Bergstrom
52e6df435e Update Gonk README with bootstrap information
The bootstrap binaries have been approved for public use, so we do not need to request that everyone rebuild B2G in order to try out the B2S build.

r? @manishearth
2015-04-17 14:56:13 -05:00
bors-servo
2b3acd1f5d Auto merge of #5734 - marcusklaas:issue-5709, r=jdm
This closes issue https://github.com/servo/servo/issues/5709.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5734)
<!-- Reviewable:end -->
2015-04-17 09:52:46 -05:00
Marcus Klaas
0d482e36e6 Fix compiler warnings in net unit tests 2015-04-17 16:44:51 +02:00
bors-servo
d90fe2b088 Auto merge of #5729 - frewsxcv:whatwg-multipage-redirects, r=Manishearth
"Links to the multipage version of the specification are unfortunately
likely to break over time."
-- https://html.spec.whatwg.org/multipage/asefij.html

This commit removes all references to the specific pages when viewing
WHATWG using multipage mode. I went through all these links and they
redirect fine.

Regex used to generate this commit:

`s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5729)
<!-- Reviewable:end -->
2015-04-17 08:57:33 -05:00
bors-servo
b296c72186 Auto merge of #5732 - Ms2ger:content, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5732)
<!-- Reviewable:end -->
2015-04-17 08:24:12 -05:00
bors-servo
c3ed0fd573 Auto merge of #5733 - marcusklaas:issue-5719, r=Manishearth
This closes issue https://github.com/servo/servo/issues/5719.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5733)
<!-- Reviewable:end -->
2015-04-17 07:53:06 -05:00
Marcus Klaas
5bcf2e0a6c Remove unnecessary clone in Document constructor 2015-04-17 14:43:45 +02:00
Ms2ger
25e8bc8ed8 Move the lookupPrefix content test. 2015-04-17 13:53:18 +02:00
Corey Farwell
8b08c6f43f Don't link to specific WHATWG multipage page
"Links to the multipage version of the specification are unfortunately
likely to break over time."
-- https://html.spec.whatwg.org/multipage/asefij.html

This commit removes all references to the specific pages when viewing
WHATWG using multipage mode. I went through all these links and they
redirect fine.

Regex used to generate this commit:

`s_whatwg.org/multipage/.*#_whatwg.org/multipage/#_g`
2015-04-16 22:39:25 -04:00
Adenilson Cavalcanti
ad62ff599a Allow dumping the optimized display list (DL).
This DL is created at paint time, per tile. To dump,
pass -Z dump-display-list-optimized at startup.
2015-04-16 17:10:39 -07:00