Commit Graph

648 Commits

Author SHA1 Message Date
Ms2ger
b7f90cee85 servo: Merge #5790 - Store a Runtime object in ScriptTask (from Ms2ger:new_rt_and_cx); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 886805d76c206214047c475c6f8947c8c38c40b7
2015-04-22 07:08:41 -05:00
Avi Weinstock
effc56f690 servo: Merge #5547 - X11 clipboard support (from aweinstock314:x11-clipboard); r=jdm
Manual re-opening of #5479 (since it seems that GitHub disables re-opening with the same number after a rebase).

Source-Repo: https://github.com/servo/servo
Source-Revision: 9974ebb2f969d2de8959fe74844b7410a5acd54e
2015-04-21 14:41:32 -05:00
Anthony Ramine
c721dcf26a servo: Merge #5775 - Implement CSSStyleDeclaration.float (fixes #5101) (from nox:cssstyledeclaration-float); r=jdm
It just needs to be prefixed by an underscore.

Source-Repo: https://github.com/servo/servo
Source-Revision: 7fa1a6a42621a8bd46137b3417a7623a6b3ed2d1
2015-04-21 13:33:03 -05:00
Maciej Skrzypkowski
0b9bc60a59 servo: Merge #5594 - Refactoring, added conversion to lowercase for get_attribute_by_name method. (fixes #5561) (from mskrzypkows:get_attribute_by_name); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: a3dafe49999d24e12b2f6b5cc74b468e58b7384a
2015-04-21 10:23:03 -05:00
Mátyás Mustoha
5201431aa6 servo: Merge #5770 - Canvas: implement rectangle drawing (from mmatyas:canvas_rect); r=jdm
A simple little patch.

Source-Repo: https://github.com/servo/servo
Source-Revision: 1d66b090a2b25203f751455d9f0f4985a77ccd64
2015-04-21 08:43:47 -05:00
Diego Marcos
00f99e2944 servo: Merge #5652 - Kicking off a WebGL implementation (from 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!

Source-Repo: https://github.com/servo/servo
Source-Revision: e4b620ea54c94e03095e4108bce94ec750416bba
2015-04-20 19:29:02 -05:00
Ms2ger
b71bc6d55d servo: Merge #5750 - Parse attributes according to the specification in AttrValue::from_u32 (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: b2585bee4d483f8a9ae93f3a017e97c0277421d1
2015-04-20 07:36:06 -05:00
Glenn Watson
0eccf68b72 servo: Merge #5559 - Support focus management and keyboard events for iframes (from glennw:iframe-focus); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 8b8daa24b8d25c531ea74a70b4b6e25cb3d7d58c
2015-04-19 18:13:59 -05:00
Mátyás Mustoha
958c5b446c servo: Merge #5731 - Canvas: implement context state save/restore (from 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.

Source-Repo: https://github.com/servo/servo
Source-Revision: 9c7c289acae3ea012338a5b25bc50a10e7f7074d
2015-04-19 17:40:33 -05:00
Ms2ger
32965e105e servo: Merge #5741 - Use get_attr_for_layout more (from Ms2ger:attr-for-layout); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e5ec55f0d8d4ec17aab3682e6d3048c88c6f458e
2015-04-19 09:37:29 -05:00
Bogdan Cuza
8a20ec7f7a servo: Merge #5567 - Make mouse_over_targets a RootedVec (from boghison:document_rootedvec); r=jdm
Fixes #5539

Source-Repo: https://github.com/servo/servo
Source-Revision: 331708f0f6d4bff8cec608e963fb24f79cf1ffca
2015-04-19 09:05:23 -05:00
Corey Farwell
7a0c4a962f servo: Merge #5729 - Don't link to specific WHATWG multipage page (from 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`

Source-Repo: https://github.com/servo/servo
Source-Revision: d90fe2b0889dee4eb27693aca7670969d5253424
2015-04-17 08:57:33 -05:00
Marcus Klaas
15769105c8 servo: Merge #5733 - Remove unnecessary clone in Document constructor (from marcusklaas:issue-5719); r=Manishearth
This closes issue https://github.com/servo/servo/issues/5719.

Source-Repo: https://github.com/servo/servo
Source-Revision: c3ed0fd57377c617ef877cd685d3248ce37d1710
2015-04-17 07:53:06 -05:00
Anthony Ramine
9dc8518d21 servo: Merge #5721 - Finish implementation of ChildNode and ParentNode (from nox:nodeorstring); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 4fd4370a9680f4845f05efd43ce9cb26c7433f05
2015-04-16 14:47:32 -05:00
Ms2ger
e374ed8222 servo: Merge #5717 - Fix URLSearchParams formatting (from Ms2ger:usp); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: e26219828bfd71c5dfce411f93f2ea5dbb131d7a
2015-04-16 14:15:16 -05:00
Md. Enzam Hossain
48f39ecb25 servo: Merge #5650 - Implement node::LookupPrefix and add test (from ienzam:issue/1826); r=jdm
Tracking issue #1826 - implemented one of the three methods.

This is follow up of #5402. Rebased and squashed and made the method iterative.

Source-Repo: https://github.com/servo/servo
Source-Revision: e3756f9e3fe8c042f5e6a02b9d4d6a2310aeda04
2015-04-16 13:07:20 -05:00
Josh Matthews
3e5cee10f5 servo: Merge #5156 - Support opt-in async network events (from jdm:asyncnet); r=pcwalton,Manishearth
This implements a framework for opting in to receiving network events asynchronously. It also converts XMLHttpRequest to use them, and paves the way for better support for synchronous XHR using on-demand, targeted event loops instead of spinning the global event loop. This gives us complete feature parity with the existing XHR implementation, using fewer threads than before in the async case.

Source-Repo: https://github.com/servo/servo
Source-Revision: 3151497d498b001b4a783dce0595615c6fc40936
2015-04-16 11:33:06 -05:00
Mátyás Mustoha
4c0d815c42 servo: Merge #5701 - Add specification links to canvas line cap and line join (from mmatyas:canvas_linecapjoin_url); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 045831748e08f0b82ca84bd7d93844cb1c7eab60
2015-04-15 10:44:42 -05:00
Corey Farwell
1d84128a7b servo: Merge #5693 - Add/update comments with links to spec (from frewsxcv:spec-links); r=jdm
Extracted out of #5649

* add more hyperlinks to associated specification for structs/methods
* follow redirects and update links
* replace broken links
* removal of WHATWG multipage page name since the page name is not
  guaranteed to be stable

Source-Repo: https://github.com/servo/servo
Source-Revision: 3dc25af9e121db010e4385efb3863ba45b0e0bcf
2015-04-14 17:16:55 -05:00
Mátyás Mustoha
bccbfe6a0d servo: Merge #5635 - Canvas: added lineCap and lineJoin support (from mmatyas:canvas_linecapjoin); r=jdm
This patch adds support for setting the line cap and join. However, it seems there's a problem on the azure-side, as the line cap setting doesn't work. Changing either the default values or using the new function has no effect. Line join works fine though.

Source-Repo: https://github.com/servo/servo
Source-Revision: fe81ce942a36b08ece8ef6d58de72624a961eeaa
2015-04-14 12:57:48 -05:00
Aneesh Agrawal
ebfa505f58 servo: Merge #5659 - Add RangeError and use it in the constructors for TextEncoder and TextDecoder (from aneeshusa:add-range-errors-use-for-textencoder-textdecoder); r=jdm
Fixes #5620, and adds a few extra test cases.

Currently waiting on a few upstream PRs in rust-encoding to land.

Source-Repo: https://github.com/servo/servo
Source-Revision: f7c3544d75f277f8ac82c54f075d53042761b344
2015-04-14 09:44:21 -05:00
Anthony Ramine
a5d01b30fc servo: Merge #5674 - Remove unnecessary uses of get_unsound_ref_forever() (from nox:get_unsound_ref_forever-misc); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 2dfa28f18670dec249d00978a61f1119afa3b839
2015-04-14 04:56:08 -05:00
Ms2ger
527ad1e2b3 servo: Merge #5680 - Update some URLs (from Ms2ger:urls); r=Manishearth
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).

Source-Repo: https://github.com/servo/servo
Source-Revision: 894b19526f1903f398c7817567b7d1b1e34998ed
2015-04-14 03:52:08 -05:00
Corey Farwell
a0f726ff70 servo: Merge #5677 - Update WHATWG links to use HTTPS (from frewsxcv:https); r=Ms2ger
Extracted this out of #5649

This commit was created with the following commands:

```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)whatwg.org/https:\1whatwg.org/g'
```

Source-Repo: https://github.com/servo/servo
Source-Revision: 4997d3a112354a407365fede1ab1944834a2e13c
2015-04-14 02:57:41 -05:00
Aneesh Agrawal
e995123d66 servo: Merge #5642 - Switch Arc<Box<Image>> to Arc<Image> for perf boost (from aneeshusa:arc-box-image-to-arc-image); r=Ms2ger
Image used to be a trait, but no longer is, so boxing it is no longer
necessary. Fixes #5639.

Source-Repo: https://github.com/servo/servo
Source-Revision: b7f59a36461e6c9eb08b8e48760168d3cb26a400
2015-04-14 01:57:07 -05:00
Shing Lyu
5a29a7ef77 servo: Merge #5593 - 4873 - Support the image map processing for <img ismap/> inside an <a/> (from shinglyu:ismap); r=jdm
This implements issue 4873

Source-Repo: https://github.com/servo/servo
Source-Revision: 4fac8b6810d9d748fffc025cfd1bb1d2b6c5655d
2015-04-14 00:10:08 -05:00
Chris Paris
ed0933cf97 servo: Merge #5675 - Use NodeFilterConstants from NodeFilterBinding (from ChrisParis:treewalker-nodefilter); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 55de52d76ad0c864b7875c561df5c5f3867b2d73
2015-04-13 18:27:46 -05:00
Chris Paris
02a799ffa4 servo: Merge #5672 - Uncomment NodeFilter constants (from ChrisParis:nodefilter); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: b9b4389628951b51e7e88fdd062220014c6c3595
2015-04-13 17:18:40 -05:00
Adenilson Cavalcanti
ca82d9f697 servo: Merge #5673 - Squashing a few compiler warnings (from Adenilson:squashWarnings); r=SimonSapin
Source-Repo: https://github.com/servo/servo
Source-Revision: 92991f807021fa99b844f03a6458f97fe86bf5c6
2015-04-13 16:47:09 -05:00
Chris Paris
90dab66a49 servo: Merge #3726 - Support callback interfaces with constants (from ChrisParis:callback-constants); r=jdm
This addresses https://github.com/servo/servo/issues/3149. The immediate purpose is to support the constants in NodeFilter. The changes mostly follow the current Gecko Codegen.py. The main gist is that the generation of certain code artifacts is now gated by hasInterfaceObject() or hasInterfacePrototypeObject(), rather than by isCallback().

Source-Repo: https://github.com/servo/servo
Source-Revision: 1f9c2f9b34dede8182f45655b03380f8c26f3475
2015-04-13 14:34:39 -05:00
Guro Bokum
b33284109c servo: Merge #5636 - Firefox timeline integration #4957 (from JIoJIaJIu:timeline); r=jdm
Available markers only:

Reflow
DOMEvent
Also need to implement:

Style marker
Paint marker
Javascript marker
frames reply, depends on getting javascript stack
I decided to make pull request before implemented another markers for getting feedback.
mb it would be better to create separated tasks.

Notices:
Marker doesn't fill stack and stackEnd
MemoryActor sends fake data because there is no memory profiler per tab
FramerateActor sends empty Vec, need implement http://mxr.mozilla.org/mozilla-central/source/dom/base/nsGlobalWindow.cpp#5240

Source-Repo: https://github.com/servo/servo
Source-Revision: 74c847a17fb560dd4cd62069778776f6f06df19f
2015-04-13 12:44:49 -05:00
Anthony Ramine
7d4feeae2e servo: Merge #5645 - Use a simple Temporary value in TreeIterator (from nox:treeiterator-temporary); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 1e45d025b381390f346e8f24db615cb698033844
2015-04-13 04:52:32 -05:00
Ms2ger
aad762eb32 servo: Merge #5647 - Use if let remove_inline_style_property (from Ms2ger:remove_inline_style_property); r=Manishearth
It makes little sense to use map() in a case where we don't care about the
return value.

Source-Repo: https://github.com/servo/servo
Source-Revision: d2522ea8bf36c39f3c978e7d92a9f09a5c0abd72
2015-04-12 13:45:28 -05:00
Josh Matthews
ce4ad02bf0 servo: Merge #5633 - Clean up CGImports a bit more (from jdm:codegencleanup); r=Ms2ger
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: b019df892790cba347ba848d0e72e3c24a311c18
2015-04-12 03:37:05 -05:00
Chris Paris
81283618a7 servo: Merge #5644 - Fix typo in NodeFilter.webidl (from ChrisParis:nodefilter-typo); r=saneyuki
Source-Repo: https://github.com/servo/servo
Source-Revision: f90959d8285ee523cc60f35f22e0df088afd40dd
2015-04-11 06:22:25 -05:00
Matt Brubeck
36877492ef servo: Merge #5592 - Don't allow disabled fields to be focused (from mbrubeck:focusable); r=jdm
This begins implementing parts of the [focusing steps](https://html.spec.whatwg.org/multipage/interaction.html#focusing-steps) algorithm. r? @jdm or @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: a8b0fb1e79ccc1a3da6ea4f58382b8482cdabd10
2015-04-10 12:25:42 -05:00
Ms2ger
34c2b82ced servo: Merge #5632 - Create a Runtime struct (from Ms2ger:runtime); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 35fb5166624faa13d8a7090ce3f2456726547e11
2015-04-10 08:44:38 -05:00
Corey Farwell
465166af10 servo: Merge #5621 - Spec links for script::dom::element & script::dom::event (from frewsxcv:more-spec); r=jdm
None

Source-Repo: https://github.com/servo/servo
Source-Revision: ec417a84b14c78e9ada08d7d489344a69f0eb09d
2015-04-10 05:44:35 -05:00
Anthony Ramine
4daace7eb9 servo: Merge #5617 - Implement Text::wholeText (from nox:wholetext); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 7d3ba8c7e22b1be3d042594958a102f7a6ef3bb6
2015-04-10 05:13:53 -05:00
Josh Matthews
fa572c3b6b servo: Merge #5619 - Remove glob import from generated bindings. Fixes #1788 (from jdm:bindglob); r=Manishearth
r? @Ms2ger

Source-Repo: https://github.com/servo/servo
Source-Revision: 596091e32c1577e2d77fa0ab0750280d9fe51f5d
2015-04-10 04:41:46 -05:00
Peter
edb0e70d49 servo: Merge #5622 - Renaming NodeChildren iterator to NodeSiblingIterator (from pgonda:NodeChildrenIterator-to-NodeSiblingIterator); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c9a413cb6e44a51d135f2b960cc6181706218929
2015-04-10 04:10:02 -05:00
Ms2ger
beb058a086 servo: Merge #5630 - Fix typo in the substringData implementation (from Ms2ger:substringData); r=Manishearth
Source-Repo: https://github.com/servo/servo
Source-Revision: ebf5a70b51a90724422e341cd5fdb8733b4f38d0
2015-04-10 03:38:08 -05:00
Anthony Ramine
86a0af1c90 servo: Merge #5627 - Cleanup ProcessingInstruction (from nox:cleanup-processinginstruction); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: c1b7c0c74a2f224a9c8cbf427e10b9591a693d84
2015-04-09 19:55:36 -05:00
Anthony Ramine
a2b4701232 servo: Merge #5611 - Cleanup CharacterData (from nox:cleanup-characterdata); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 51dd6984f7cc292d77b2330d404ffcff34981214
2015-04-09 10:10:20 -05:00
Mátyás Mustoha
f08601be8b servo: Merge #5613 - Canvas: added miterLimit support (from mmatyas:canvas_miterlimit); r=jdm
This exposes some other canvas tests which were marked as PASS before. Two strokeRect related tests are fixed by #5612, and lineCap/lineJoin will have an implementation soon.

Source-Repo: https://github.com/servo/servo
Source-Revision: 325899bfad2f87e2c46b96bc542110d8f0cada48
2015-04-09 09:37:44 -05:00
Anthony Ramine
00c6ccd6a4 servo: Merge #5609 - Implement NonDocumentTypeChildNode::*ElementSibling() (from nox:nondocumenttypechildnode); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: bbe1403b2724e3820bd29b163fd9b81ca31a3bad
2015-04-09 09:06:57 -05:00
Mátyás Mustoha
c670bf88fb servo: Merge #5612 - Canvas: moved Rect validation to a common function (from mmatyas:canvas_rectvalidation); r=jdm
These functions have the same input validation, and they also missed the width/height check.

Source-Repo: https://github.com/servo/servo
Source-Revision: 34251902225cd9538695f850e1e946aba712bc9b
2015-04-09 08:36:45 -05:00
Ms2ger
0f692b3065 servo: Merge #5606 - Adjust the assertions in throw_dom_exception (from Ms2ger:errors); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 1c0955739853b7d17f30e158206720d6b4979c9f
2015-04-08 21:07:18 -05:00
Keith Yeung
6ec8d8b7c4 servo: Merge #5599 - Implement TextDecoder (from servo:textdecoder); r=jdm
Source-Repo: https://github.com/servo/servo
Source-Revision: 254f2a3b5fb0ef59eff4b24cbf0f5c6ca90c4317
2015-04-08 20:00:40 -05:00
Anthony Ramine
1edd8dcb09 servo: Merge #5590 - Implement Document::CreateAttributeNS() (from nox:document-createattributens); r=Ms2ger
Source-Repo: https://github.com/servo/servo
Source-Revision: 9b7bf415d7340cdcac1d272fd1f1145df02c1f5d
2015-04-08 18:55:19 -05:00