Commit graph

1873 commits

Author SHA1 Message Date
Ms2ger
ecd3f4f80e Introduce a follow_hyperlink function to implement the "follow a hyperlink" algorithm. 2015-08-09 17:54:56 +02:00
bors-servo
6a8bc85284 Auto merge of #7092 - dzbarsky:putimagedata, r=jdm
Clean up and fix PutImageData



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7092)
<!-- Reviewable:end -->
2015-08-09 07:00:56 -06:00
bors-servo
dbce4c5bd8 Auto merge of #6975 - dzbarsky:get-tiny, r=jdm
Fix getImageData with sizes < 1 pixel



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6975)
<!-- Reviewable:end -->
2015-08-09 06:32:30 -06:00
bors-servo
f41834e321 Auto merge of #7063 - dzbarsky:caption, r=Ms2ger
Implement createCaption and deleteCaption on HTMLTableElement



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7063)
<!-- Reviewable:end -->
2015-08-09 04:45:28 -06:00
Adrián Arroyo Calle
68f6fdd8bc Removed unused object_to_string method 2015-08-09 11:26:15 +02:00
David Zbarsky
2f47bdff4b Fix getImageData with sizes < 1 pixel 2015-08-08 15:43:22 -04:00
David Zbarsky
51938d579f Switch PutImageData to using CopySurface 2015-08-08 15:35:08 -04:00
David Zbarsky
e24a867ab6 Implement createCaption and deleteCaption on HTMLTableElement
Update web-platform-tests expected data
2015-08-08 15:24:05 -04:00
bors-servo
530d4547c9 Auto merge of #7046 - Ms2ger:base-url, r=dzbarsky
Implement a base_url getter and use it for style attributes.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7046)
<!-- Reviewable:end -->
2015-08-08 06:53:32 -06:00
Ms2ger
6951119f5e Cache the first base element with an href attribute on the Document. 2015-08-08 14:10:35 +02:00
bors-servo
a0af7a1581 Auto merge of #7075 - Ms2ger:load_url, r=dzbarsky
Improve code around Window::load_url.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7075)
<!-- Reviewable:end -->
2015-08-08 06:09:13 -06:00
Ms2ger
bd31b51a87 Use the base URL to parse style attributes. 2015-08-08 11:26:34 +02:00
Ms2ger
7f2b21c06e Implement base_url and fallback_base_url methods. 2015-08-08 11:26:33 +02:00
Ms2ger
92e64e607c Implement VirtualMethods for HTMLBaseElement. 2015-08-08 11:26:31 +02:00
bors-servo
d8b4611a79 Auto merge of #7066 - Ms2ger:ws-event, r=metajack
Dispatch message events for WebSocket.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7066)
<!-- Reviewable:end -->
2015-08-08 03:00:50 -06:00
David Zbarsky
48c24f8492 Pass a Rect instead of an Option<Rect> to PutImageData 2015-08-08 04:50:55 -04:00
Ms2ger
352229b6fa Implement WebSocket#onmessage. 2015-08-08 10:29:03 +02:00
Harrison G
e40b141409 Fix requestAnimationFrame timestamps in queue
This resolves #7044 which involved callbacks
in a queue not receiving the same timestamp despite
the specification saying they should. An extra test
was added to verify the correct behavior.
2015-08-07 19:02:52 -04:00
bors-servo
361d94d23e Auto merge of #6415 - jgraham:dom_load, r=jdm
Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6415)
<!-- Reviewable:end -->
2015-08-07 11:30:33 -06:00
James Graham
36da7e2270 Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched. 2015-08-07 16:55:13 +01:00
bors-servo
29c12dfc56 Auto merge of #7000 - Ms2ger:space, r=nox
Remove some stray whitespace.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7000)
<!-- Reviewable:end -->
2015-08-07 09:40:50 -06:00
Ms2ger
7e179d9245 Handle url parse errors in Location#assign more gracefully. 2015-08-07 15:47:55 +02:00
Ms2ger
da88e9ad9f Inline Document::load_anchor_href into its only caller. 2015-08-07 15:24:13 +02:00
Ms2ger
40b5c4586e Push the url parsing out of Window::load_url.
This will allow the two callers to decide on the base url independently.
2015-08-07 15:19:16 +02:00
bors-servo
9ed2df3de7 Auto merge of #6993 - frewsxcv:rm-dead-codegen, r=Ms2ger
Remove dead Python code in binding generating code

Fixes #6956

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6993)
<!-- Reviewable:end -->
2015-08-07 04:51:31 -06:00
Ms2ger
2a97ab36f7 Dispatch message events for WebSocket. 2015-08-07 10:58:33 +02:00
bors-servo
17263a525b Auto merge of #7043 - pcwalton:th-width, r=Ms2ger
script: Make the legacy presentational attributes on `<td>` apply to `<th>` too.

Makes the Google SERPs not so narrow.

r? @Ms2ger

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7043)
<!-- Reviewable:end -->
2015-08-07 00:40:54 -06:00
Manish Goregaokar
730ee4d341 Rollup merge of #7034 - Ms2ger:mem, r=jdm
Create a run_with_memory_reporting method to reduce the boilerplate a…

…ssociated with registering memory reporters.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7034)
<!-- Reviewable:end -->
2015-08-07 03:45:29 +05:30
bors-servo
522ebe7a3b Auto merge of #7027 - Ms2ger:lock-stderr, r=jdm
Lock stderr while printing the alert() message.

2a7f262b7d was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7027)
<!-- Reviewable:end -->
2015-08-06 12:46:31 -06:00
Ms2ger
c98d35ea6b Lock stderr while printing the alert() message.
2a7f262b7d was unsufficient for the case where
the interleaved output was actually on stderr rather than stdout, such as
output from the error macro.
2015-08-06 20:11:37 +02:00
Patrick Walton
df29b1e878 script: Make the legacy presentational attributes on <td> apply to
`<th>` too.

Makes the Google SERPs not so narrow.
2015-08-06 10:26:45 -07:00
bors-servo
0a8ea98183 Auto merge of #7002 - Ms2ger:eventtarget, r=jdm
Remove the unused WorkerGlobalScope::eventtarget method.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7002)
<!-- Reviewable:end -->
2015-08-06 10:31:58 -06:00
bors-servo
106361443d Auto merge of #6451 - jgraham:onkey_attributes, r=Ms2ger
Add onkey* global event handler attributes



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6451)
<!-- Reviewable:end -->
2015-08-06 07:44:51 -06:00
Ms2ger
bf3ecaa901 Create a run_with_memory_reporting method to reduce the boilerplate associated with registering memory reporters. 2015-08-06 15:24:27 +02:00
bors-servo
ddd2840eed Auto merge of #7001 - farodin91:filereader, r=Ms2ger
Remove Unnecessary Code in FileReader #6753

@jdm r?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7001)
<!-- Reviewable:end -->
2015-08-06 06:13:56 -06:00
David Zbarsky
fee8abe5a2 GetImageData should return un-premultiplied alpha values 2015-08-06 05:14:53 -04:00
David Zbarsky
8690414a47 Refactor DrawImage implementations to avoid code duplication 2015-08-06 00:52:28 -04:00
bors-servo
afe3d7e747 Auto merge of #6990 - Ms2ger:update-animatiom-timimg, r=saneyuki
Update Animation Timing links and terminology to the HTML specification.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6990)
<!-- Reviewable:end -->
2015-08-05 14:55:55 -06:00
bors-servo
debd7d87d6 Auto merge of #6974 - dzbarsky:tiny-create, r=jdm
Fix createImageData with sizes < 1 pixel



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6974)
<!-- Reviewable:end -->
2015-08-05 11:40:20 -06:00
bors-servo
95269bba39 Auto merge of #6971 - dzbarsky:negative-radius, r=Ms2ger
Make createRadialGradient throw for negative radii



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6971)
<!-- Reviewable:end -->
2015-08-05 10:42:57 -06:00
Ms2ger
9b084b604e Remove the unused WorkerGlobalScope::eventtarget method. 2015-08-05 18:41:54 +02:00
farodin91
41620421c3 Remove Unnecessary Code in FileReader #6753 2015-08-05 18:24:09 +02:00
Ms2ger
cf221c5daf Remove some stray whitespace. 2015-08-05 18:21:13 +02:00
bors-servo
b3d61878dc Auto merge of #6964 - Ms2ger:dwgs-eventloop, r=jdm
Cleanup DedicatedWorkerGlobalScope::run_worker_scope.

It was getting overcrowded.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6964)
<!-- Reviewable:end -->
2015-08-05 09:21:10 -06:00
bors-servo
8602d01af2 Auto merge of #6416 - jgraham:hosts_replaced, r=jdm
Use hosts-replaced URL only when loading resources



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6416)
<!-- Reviewable:end -->
2015-08-05 08:01:03 -06:00
Corey Farwell
a276bfa57c Remove dead Python code in binding generating code
Fixes #6956
2015-08-05 09:17:30 -04:00
bors-servo
0d8825c25c Auto merge of #6959 - servo:warnings_, r=jdm
Fix warnings

Adds on top of #6949.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6959)
<!-- Reviewable:end -->
2015-08-05 03:44:22 -06:00
James Graham
f52276d2cc Use hosts-replaced URL only when loading resources 2015-08-05 10:34:20 +01:00
Ms2ger
d2077dd245 Update Animation Timing links and terminology to the HTML specification. 2015-08-05 09:21:08 +02:00
bors-servo
ac533b1466 Auto merge of #6944 - r0e:testing, r=jdm
Fix for issue #6768. Refactor ReadData and BlobBody

Fix for issue #6768.

Merge common fields of ReadData and BlobBody to avoid passing redundant information to functions.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6944)
<!-- Reviewable:end -->
2015-08-04 20:21:35 -06:00