Josh Matthews
f5b5079e2a
Use the browsing context from the document where appropriate.
...
This should not change behaviour.
2016-02-20 18:47:11 +01:00
Josh Matthews
7045056173
Make it possible for XMLDocuments to have a browsing context.
2016-02-20 18:03:14 +01:00
bors-servo
c68fbee03e
Auto merge of #9689 - saurvs:master, r=jdm
...
Update some canvas properties as enums instead of DOMString
Fixes https://github.com/servo/servo/issues/9617
I'm going to incrementally rollout commits and squash them finally.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9689 )
<!-- Reviewable:end -->
2016-02-20 00:40:28 +05:30
bors-servo
94d28bfecf
Auto merge of #9700 - servo:xhr-to-owned, r=KiChjang
...
Avoid some spurious string copies in XHR.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9700 )
<!-- Reviewable:end -->
2016-02-19 22:23:35 +05:30
Saurav Sachidanand
939560bd6e
Update some canvas properties as enums instead of DOMString
2016-02-19 22:19:09 +05:30
bors-servo
0209d42b7b
Auto merge of #9701 - Ms2ger:listener-is-some, r=KiChjang
...
Use if-let in set_inline_event_listener.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9701 )
<!-- Reviewable:end -->
2016-02-19 21:34:22 +05:30
bors-servo
2676307793
Auto merge of #9633 - GuillaumeGomez:has_instance, r=nox
...
All interface objects now share the same hasInstance
r? @nox
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9633 )
<!-- Reviewable:end -->
2016-02-19 19:49:33 +05:30
bors-servo
aae6525f7d
Auto merge of #9684 - danlrobertson:i9655, r=KiChjang
...
Add methods to move ByteStrings underlying bytes
Add methods to move the underlying `Vec<u8>` for `ByteString`.
I saw this as at least two methods. One to "move and replace with and empty Vec<u8> (`bytes`), and one to take ownership of the whole object (`own_bytes`). I typically also don't like adding methods with out unit tests. If you think they're unnecessary, just let me know.
As always, please let me know if you have any comments, critiques, or nits!
Fixes #9655
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9684 )
<!-- Reviewable:end -->
2016-02-19 17:21:14 +05:30
bors-servo
361bb24a49
Auto merge of #9610 - liviuba:Fix-9553, r=KiChjang
...
Bypass GetResponseXML to better match spec
Resolves https://github.com/servo/servo/issues/9553
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9610 )
<!-- Reviewable:end -->
2016-02-19 15:39:59 +05:30
liviuba
347f3c15b2
Add caching to document_response
2016-02-19 11:30:09 +02:00
Ms2ger
18e6a63851
Avoid some spurious string copies in XHR.
2016-02-19 09:31:35 +01:00
bors-servo
ee158cc65f
Auto merge of #9603 - Ms2ger:document-bc, r=jdm
...
Store a pointer to the browsing context in the Document.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9603 )
<!-- Reviewable:end -->
2016-02-19 12:49:35 +05:30
bors-servo
2374e9d30e
Auto merge of #9526 - schuster:node-remove, r=nox
...
My updates so far for issue #8465 . See comments there for more information.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9526 )
<!-- Reviewable:end -->
2016-02-19 03:14:28 +05:30
bors-servo
96d185359d
Auto merge of #9383 - KiChjang:xhr-cleanup, r=Ms2ger
...
Clean up XHR API
I've also added annotations about the steps that we're performing within each method.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9383 )
<!-- Reviewable:end -->
2016-02-19 02:25:18 +05:30
Daniel Robertson
72f74c27ef
Convert unwrapping of ByteString to self.0
...
Convert traditional unwrapping of the tuple struct ByteString to
self.0
2016-02-18 19:41:03 +00:00
Daniel Robertson
d23774d3d7
Add methods to move ByteStrings underlying bytes
...
Add methods to move the underlying Vec<u8> for ByteString.
2016-02-18 19:40:24 +00:00
bors-servo
ab07b06823
Auto merge of #9589 - glennw:webrender, r=pcwalton
...
Add WebRender integration to Servo.
WebRender is an experimental GPU accelerated rendering backend for Servo.
The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used).
WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9589 )
<!-- Reviewable:end -->
2016-02-19 00:54:06 +05:30
bors-servo
fe70efe07f
Auto merge of #8952 - KiChjang:planned-navigation, r=Manishearth
...
Implement planned navigation
Fixes #3648 .
Note that I have only implemented "mutate action URL" and "get action URL". The remaining ones can have E-less easy issues created for them.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8952 )
<!-- Reviewable:end -->
2016-02-18 22:26:19 +05:30
Keith Yeung
ace5b7a2e8
Implement planned navigation
2016-02-18 06:37:32 -05:00
zakorgyula
6d6f23a69d
Fixing issue with uniontypes not created with primitive types
...
refer to #9531
2016-02-18 11:08:47 +01:00
bors-servo
07cb6599d0
Auto merge of #9678 - servo:debug-enum, r=KiChjang
...
Derive the Debug trait for WebIDL-generated enums.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9678 )
<!-- Reviewable:end -->
2016-02-18 09:51:57 +05:30
bors-servo
d8ffa3d0b8
Auto merge of #9529 - paulrouget:focusEvents, r=asajeffrey
...
Implement focus, blur, focusin and focusout events
Based on https://github.com/servo/servo/pull/7985
Fixes https://github.com/servo/servo/issues/7981
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9529 )
<!-- Reviewable:end -->
2016-02-18 09:03:42 +05:30
Paul Rouget
c7195cb456
Implement focus and blur events
2016-02-18 03:49:31 +01:00
Glenn Watson
c0531c312f
Add WebRender integration to Servo.
...
WebRender is an experimental GPU accelerated rendering backend for Servo.
The WebRender backend can be specified by running Servo with the -w option (otherwise the default rendering backend will be used).
WebRender has many bugs, and missing features - but it is usable to browse most websites - please report any WebRender specific rendering bugs you encounter!
2016-02-18 10:35:29 +10:00
bors-servo
63dc161b77
Auto merge of #9683 - kmuszyn:9561-more-thread-source-renamings, r=jdm
...
Issue #9561 continued - renamed *_thread_source to *_task_source
components/script/dom/bindings/global.rs modified -> all *_thread_source occurrences renamed to *_task_source to comply with spec
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9683 )
<!-- Reviewable:end -->
2016-02-18 04:59:32 +05:30
bors-servo
bc034845b7
Auto merge of #9662 - rebstar6:websocket_cookies, r=jdm
...
Add support for websocket cookies
Addresses both cookies in request and response. Resolves #9540 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9662 )
<!-- Reviewable:end -->
2016-02-18 02:44:01 +05:30
Kamil Muszyński
c6dfd7e2fa
Issue #9561 continued - renamed *_thread_source to *_task_source in global.rs and related files
2016-02-17 21:25:12 +01:00
Rebecca
cf6fd6dafe
Add support for websocket request and response cookies
...
Also change expected behavior to pass for all in tests/wpt/web-platform-tests/websockets/cookies
2016-02-17 14:50:52 -05:00
Keith Yeung
066c5ea73a
Clean up XHR API
2016-02-17 12:44:54 -05:00
Ms2ger
eede44984d
Derive the Debug trait for WebIDL-generated enums.
2016-02-17 16:29:37 +01:00
bors-servo
61f09cce4e
Auto merge of #9676 - nox:domexception, r=KiChjang
...
Support [ExceptionClass]
Use it on DOMException.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9676 )
<!-- Reviewable:end -->
2016-02-17 18:51:47 +05:30
Anthony Ramine
c21a164396
Support [ExceptionClass]
...
Use it on DOMException.
2016-02-17 13:58:58 +01:00
bors-servo
ab381cf951
Auto merge of #9664 - danlrobertson:i9654, r=KiChjang
...
Implement RootedReference<T> for Option<JS<T>>
A basic implementation of `RootedReference for Option<JS<T>>` based off of
other implementations of `RootedReference` for `Option` wrapped types.
Really I just wanted an excuse to read more in `bindings` 😄 Let me know
if you have any comments or critiques.
Fixes #9654
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9664 )
<!-- Reviewable:end -->
2016-02-17 17:54:15 +05:30
bors-servo
8d63eff463
Auto merge of #9632 - peterjoel:issue_1716, r=KiChjang
...
Addresses Issue #1716 . Indicated part of the document.
Fixes #1716 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9632 )
<!-- Reviewable:end -->
2016-02-17 15:23:21 +05:30
bors-servo
c075092fe0
Auto merge of #9657 - zakorgy:refactor, r=KiChjang
...
Move parse_integer and parse_unsigned_integer from util::str to style::attr
Fixes #9637
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9657 )
<!-- Reviewable:end -->
2016-02-17 14:35:26 +05:30
zakorgyula
43d527fcc8
Move parse_integer and parse_unsigned_integer from util::str to style::attr
2016-02-17 07:05:39 +01:00
Guillaume Gomez
bb9d3692c7
All interface objects now share the same hasInstance
2016-02-17 06:37:52 +01:00
Peter
e39e59ef18
#1716 The indicated part of the document.
...
Interactive test for fragid resolution.
Added HTML tests for scrolling to fragid
Applied algorithm from whatwg spec
https://html.spec.whatwg.org/multipage/#the-indicated-part-of-the-document
Changes following code review
2016-02-17 00:51:46 +00:00
Daniel Robertson
7a35ef1555
Implement RootedReference<T> for Option<JS<T>>
...
An implementation of RootedReference for Option<JS<T>> based off of
other implementations of RootedReference for Option wrapped types.
2016-02-16 22:40:03 +00:00
bors-servo
c388c83dcd
Auto merge of #9625 - danlrobertson:i9547, r=KiChjang
...
Implement step 9 of XHR Open method
Implement step 9 of the [XMLHttpRequest Open](https://xhr.spec.whatwg.org/#dom-xmlhttprequest-open ) method. Thanks to @KiChjang for all the help!
As always, comments and critiques are welcomed!
Fix : #9547
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9625 )
<!-- Reviewable:end -->
2016-02-17 02:51:44 +05:30
bors-servo
5f8cfcd512
Auto merge of #9647 - Jayflux:hotfix/9638, r=nox
...
refactor, moving functions into attr and htmlfontelemend fixes #9639 …
…#9638
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9647 )
<!-- Reviewable:end -->
2016-02-16 04:33:01 +05:30
Jayflux
d169d7bd9e
refactor, moving functions into attr and htmlfontelemend fixes #9639 #9638
2016-02-15 22:33:14 +00:00
bors-servo
3ef0bb4b37
Auto merge of #9648 - psdh:fixnodeiseual, r=Manishearth
...
fix Node-isEqualNode.html test failure
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9648 )
<!-- Reviewable:end -->
2016-02-16 02:35:47 +05:30
Prabhjyot Singh Sodhi
ae80b9bcf0
fix Node-isEqualNode.html test failure
2016-02-16 00:24:35 +05:30
bors-servo
5ee5ce07ba
Auto merge of #9621 - KiChjang:xhr-response-json, r=Ms2ger
...
Cache XHR JSON responses
Fixes #3919 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9621 )
<!-- Reviewable:end -->
2016-02-15 21:52:49 +05:30
Anthony Ramine
ae72d1dfbe
Fix the hasInstance hook of interface objects
...
Step 2 wasn't properly implemented.
2016-02-15 14:12:53 +01:00
Anthony Ramine
e08f817058
Clean up imports in script::dom::bindings::interface
2016-02-15 12:59:18 +01:00
Daniel Robertson
10e7af50fe
Implement step 9 of XHR open method
...
Implement step 9 of the Open method for XMLHttpRequest.
2016-02-15 04:57:24 +00:00
Keith Yeung
6be5218d3c
Cache XHR JSON responses
2016-02-14 23:55:43 -05:00
bors-servo
e8ae7e4773
Auto merge of #9629 - danlrobertson:i9623, r=KiChjang
...
Implement Blob response for XMLHttpRequest: #9623
My first attempt at implementing the Blob response for XMLHttpRequest. The expected result for the response `tests/wpt/web-platform-test/HMLHttpRequest/response-blob-data.htm` is also changed to `PASS`. Please let me know if you see any areas in which I can improve this PR!
Fixes #9623
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9629 )
<!-- Reviewable:end -->
2016-02-15 08:53:27 +05:30