Anthony Ramine
c95855c7ea
Implement [LegacyUnenumerableNamedProperties] in the WebIDL parser
...
http://github.com/heycam/webidl/issues/82
2016-02-23 17:06:13 +01:00
bors-servo
3550993075
Auto merge of #9728 - nox:lazy-preliminaries, r=Ms2ger
...
Preliminary commits for lazy interface objects in #9652
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9728 )
<!-- Reviewable:end -->
2016-02-23 20:13:45 +05:30
Anthony Ramine
0af373cef6
Just pass global to CreateInterfaceObjects
...
The receiver parameter is useless here.
2016-02-23 15:42:45 +01:00
Anthony Ramine
96e28086e3
Clean up CGDOMJSClass
2016-02-23 15:42:44 +01:00
Anthony Ramine
144e215548
Don't use the hasOwn hook anymore in browsingcontext
...
There is no [[HasOwnProperty]] hook in the ES spec, we should just define
the has proxy trap.
https://bugzilla.mozilla.org/show_bug.cgi?id=980565
2016-02-23 15:42:43 +01:00
Anthony Ramine
a734b8fa21
Reorder js imports in browsingcontext
2016-02-23 15:42:42 +01:00
Anthony Ramine
ebae503a24
Bump phf to 0.7.12
2016-02-23 15:42:38 +01:00
bors-servo
90c7b78b12
Auto merge of #9727 - Ms2ger:xhr-import, r=KiChjang
...
Remove an unused import from xmlhttprequest.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9727 )
<!-- Reviewable:end -->
2016-02-23 18:29:59 +05:30
Ms2ger
2547fcb1e9
Remove an unused import from xmlhttprequest.
2016-02-23 13:59:02 +01:00
bors-servo
dd5f338254
Auto merge of #9721 - servo:rustup, r=larsbergstrom,nox
...
Bump to Rust 2016-02-22
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9721 )
<!-- Reviewable:end -->
2016-02-23 07:15:04 +05:30
Anthony Ramine
dab9b4700c
Bump to Rust 2016-02-22
2016-02-23 02:43:57 +01:00
Lars Bergstrom
ef95eb3bbe
Fix for gonk bootstrapping
2016-02-23 02:29:06 +01:00
bors-servo
57a96ece0c
Auto merge of #9716 - servo:disable-intermittents, r=nox
...
Disable some intermittents
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9716 )
<!-- Reviewable:end -->
2016-02-22 16:42:13 +05:30
Keith Yeung
1b41f4544e
Disable some intermittents
2016-02-22 06:07:13 -05:00
bors-servo
8f278109ce
Auto merge of #8603 - benschulz:timers-clean-up, r=jdm
...
Timers clean up
This PR splits the `ActiveTimers` abstraction into
- `OneshotTimers` for scheduling "arbitrary" oneshot timers, such as XHR timeouts, and
- `JsTimers`, based on `OneshotTimers`, for scheduling JS timers (`setTimeout`/`setInterval`).
The result is mich cleaner and the timer initialization steps now closely resemble the specification.
**Notes**
- The second and third commit are strictly renames and code rearrangements.
- I'm not particularily happy with the `OneshotTimerCallback` enum and its circular dependency with `XHRTimeoutCallback`, but I couldn't come up with anything better.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8603 )
<!-- Reviewable:end -->
2016-02-21 21:43:28 +05:30
bors-servo
f5193ebd82
Auto merge of #9714 - servo:browsingcontext, r=nox
...
Improvements to Documents' browsing contexts.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9714 )
<!-- Reviewable:end -->
2016-02-21 04:33:32 +05:30
benshu
f2d4a7bbca
Clean up of script timer code.
...
The code was split into the following two abstractions.
- OneshotTimers can be used to schedule arbitrary oneshot timers, such
as XHR-Timeouts.
- JsTimers (`setTimeout` and `setInterval`) which use OneshotTimers to
schedule individual callbacks.
With this change the implementation (of JsTimers in particular) is in
much closer alignment with the specification.
2016-02-20 22:43:16 +01:00
bors-servo
581aa1a14f
Auto merge of #9713 - timvandermeij:move-persistent-list, r=nox
...
Move util::persistent_list to layout
Fixes #9694 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9713 )
<!-- Reviewable:end -->
2016-02-21 00:15:19 +05:30
Tim van der Meij
307f2915f2
Move util::persistent_list to layout
2016-02-20 19:20:38 +01:00
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
875f1e92cc
Auto merge of #9710 - paulrouget:fix9702, r=glennw
...
do not send mouseevent twice
Fix #9702
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9710 )
<!-- Reviewable:end -->
2016-02-20 11:33:06 +05:30
Paul Rouget
7ddb160f9c
do not send mouseevent twice
2016-02-20 05:03:10 +01:00
bors-servo
ff20a2d3dc
Auto merge of #9703 - djc:patch-1, r=larsbergstrom
...
Add instructions for OpenSSL on OS X 10.11
See #7930 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9703 )
<!-- Reviewable:end -->
2016-02-20 01:28:51 +05:30
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
Dirkjan Ochtman
a0458b7dcd
Add instructions for OpenSSL on OS X 10.11
...
See #7930 .
2016-02-19 15:23:28 +01:00
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
ddf5e9dba5
Auto merge of #9693 - glennw:update-wr, r=mbrubeck
...
Update webrender (perf fixes for demos).
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9693 )
<!-- Reviewable:end -->
2016-02-19 05:47:56 +05:30
Glenn Watson
4bab414929
Update webrender (perf fixes for demos).
2016-02-19 10:04:51 +10:00
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
bors-servo
83be388f59
Auto merge of #9668 - glennw:inline-accuracy, r=pcwalton
...
Ensure when calculating font metrics that the total line height matches requested line height.
This fixes rounding accuracy issues that could result in layout producing results off by a small number of Au.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9668 )
<!-- Reviewable:end -->
2016-02-18 17:48:15 +05:30
Keith Yeung
ace5b7a2e8
Implement planned navigation
2016-02-18 06:37:32 -05:00
bors-servo
9778e5e84d
Auto merge of #9580 - zakorgy:pythonfix, r=Ms2ger
...
Fixing issue with uniontypes not created with primitive types
Fixes #9531
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9580 )
<!-- Reviewable:end -->
2016-02-18 16:40:10 +05:30
zakorgyula
6d6f23a69d
Fixing issue with uniontypes not created with primitive types
...
refer to #9531
2016-02-18 11:08:47 +01:00
bors-servo
eee0d4efeb
Auto merge of #9686 - nox:mv-logical_geometry, r=Ms2ger
...
Move util::logical_geometry to style
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg " height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9686 )
<!-- Reviewable:end -->
2016-02-18 14:51:29 +05:30
Anthony Ramine
db8d502f41
Move util::logical_geometry to style
2016-02-18 10:17:13 +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