Commit graph

4808 commits

Author SHA1 Message Date
Ms2ger
61e8351f28 Rewrite CharacterData-insertData.html to be more extensible. 2015-04-28 23:39:56 +02:00
Ms2ger
51b06bcbaf Test a non-ASCII argument to CharacterData#appendData. 2015-04-28 23:39:54 +02:00
Ms2ger
173c9721c5 Extend semantics/interfaces.html. 2015-04-28 23:39:52 +02:00
Ms2ger
474a4a5dcb Make semantics/interfaces.html more extensible. 2015-04-28 23:39:47 +02:00
Ms2ger
f69a315123 Remove createElement_script.html.
This test is coevered by old-tests/submission/Opera/script_scheduling/016.html
in web-platform-tests.
2015-04-28 23:39:45 +02:00
bors-servo
ae98f76048 Auto merge of #5883 - servo:dialog, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5883)
<!-- Reviewable:end -->
2015-04-28 10:56:06 -05:00
Dave Hodder
50ea68206d Add attributes to the HTMLDialogElement interface. 2015-04-28 17:47:37 +02:00
bors-servo
01925f0f8f Auto merge of #5845 - snf:defineProperty_fix, r=jdm
This patch should get rid of #5223.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5845)
<!-- Reviewable:end -->
2015-04-28 07:51:31 -05:00
bors-servo
cac6ef8077 Auto merge of #5874 - nox:hasfeature, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5874)
<!-- Reviewable:end -->
2015-04-28 01:30:51 -05:00
snf
cdcd6670ba fix defineproperty for cases with namedsetter 2015-04-27 23:47:22 +01:00
Anthony Ramine
6e75889e41 Fix DOMImplementation.hasFeature() 2015-04-27 23:11:53 +02:00
bors-servo
9ec2ce0dec Auto merge of #5868 - nox:document-legacy, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5868)
<!-- Reviewable:end -->
2015-04-27 13:06:29 -05:00
Ms2ger
93b883e1db Update web-platform-tests to revision acdb8bf3e4714528b6b5f9ff038dc80ee4fb7dcf 2015-04-27 18:48:44 +02:00
Anthony Ramine
16973624c8 Implement Body.bgColor and Document.bgColor 2015-04-27 15:28:37 +02:00
bors-servo
50eb08bcf7 Auto merge of #5841 - jdm:compositeopflaky, r=Ms2ger
...further investigation.

#5803 has been frustrating recently.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5841)
<!-- Reviewable:end -->
2015-04-25 09:45:04 -05:00
Josh Matthews
43ec47fa6e Disable canvas_compositing_globalcompositeoperation_001-ref.htm pending further investigation. 2015-04-25 10:34:09 -04:00
bors-servo
1f9de5ee2c Auto merge of #5779 - nox:css-escape, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5779)
<!-- Reviewable:end -->
2015-04-25 05:42:41 -05:00
Anthony Ramine
31a26fa384 Implement the CSS interface 2015-04-25 12:36:38 +02:00
James Graham
291ac06c01 Update web-platform-tests expected data to revision 2a9fd810bb18610b422dbc3998ab74aa1bffae95 2015-04-24 18:31:05 +01:00
James Graham
f837e575fe Update to latest wptrunner (036c9931). 2015-04-24 15:37:45 +01:00
Dhananjay Nakrani
731411660c Implement HTMLMetaElement.{name,content} (fixes #5663). 2015-04-24 14:45:51 +02:00
bors-servo
1b08211a5e Auto merge of #5806 - nox:splittext, r=Ms2ger
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5806)
<!-- Reviewable:end -->
2015-04-23 09:38:48 -05:00
Anthony Ramine
163d97d270 Implement Text.splitText() 2015-04-23 16:36:50 +02: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
bors-servo
e278e5b9a2 Auto merge of #5757 - mmatyas:canvas_globalcomposite, r=jdm
Implements https://html.spec.whatwg.org/multipage/scripting.html#dom-context-2d-globalcompositeoperation.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5757)
<!-- Reviewable:end -->
2015-04-22 14:15:28 -05:00
Mátyás Mustoha
a8343a0750 Canvas: implement global composition and blending. 2015-04-22 20:54:27 +02:00
bors-servo
9ae3cad31e Auto merge of #5781 - jdm:reparent, r=Ms2ger
Fixes html5test.com.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5781)
<!-- Reviewable:end -->
2015-04-22 13:01:32 -05:00
nithin murali
c5e101b6e5 Implement child reparenting and node removal during parsing. 2015-04-22 13:47:28 -04:00
Mátyás Mustoha
6fd6eefb35 Canvas: add clipping path support. 2015-04-22 16:25:02 +02:00
bors-servo
c8cb62058c Auto merge of #5761 - dhananjay92:Issue#5754, r=jdm
Solves Issue #5754.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5761)
<!-- Reviewable:end -->
2015-04-21 12:25:42 -05:00
Dhananjay Nakrani
72ab06a6ec Add test for createDocument(). [Issue#5754]. 2015-04-21 10:13:55 -07:00
Mátyás Mustoha
5287cb7fba Canvas: implement rectangle drawing. 2015-04-21 15:21:30 +02: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
Josh Matthews
a1c4f49da8 Disable intermittently-passing test pending further investigation. #5764 2015-04-20 19:54:38 -04:00
Diego Marcos
c82485874d Kicks off a WebGL implementation 2015-04-20 14:29:39 -07: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
Mátyás Mustoha
5b8416a2b6 Canvas: implement context state save/restore. 2015-04-19 21:12:13 +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
25e8bc8ed8 Move the lookupPrefix content test. 2015-04-17 13:53:18 +02:00
bors-servo
4fd4370a96 Auto merge of #5721 - nox:nodeorstring, r=jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5721)
<!-- Reviewable:end -->
2015-04-16 14:47:32 -05:00
Anthony Ramine
45e1b9628e Finish implementation of ChildNode and ParentNode 2015-04-16 20:31:34 +02:00
Ms2ger
9df501afd9 Fix URLSearchParams formatting. 2015-04-16 19:36:31 +02:00
bors-servo
0307caa4bb Auto merge of #5715 - Ms2ger:wpt_20150416, r=jdm 2015-04-16 12:03:54 -05:00
Ms2ger
2d49203b9c Update web-platform-tests to revision 000905d008db2538360020335bc2dbba16d322b5. 2015-04-16 18:58:53 +02:00
Josh Matthews
61891843ff Disable intermittently passing test pending further investigation. #5714 2015-04-16 11:52:00 -04:00
Ms2ger
4cc4e210b4 Move disabled content tests under wpt. 2015-04-16 11:09:55 +02:00
Ms2ger
48ac95c171 Move content tests into the Servo wpt tree (fixes #5686). 2015-04-15 22:08:38 +02:00
Mátyás Mustoha
ccfff159e7 Canvas: added lineCap and lineJoin support. 2015-04-14 18:26:41 +02:00
bors-servo
f7c3544d75 Auto merge of #5659 - 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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/5659)
<!-- Reviewable:end -->
2015-04-14 09:44:21 -05:00