Bruno de Oliveira Abinader
b0e8f7cebf
Added Node's query_selector_all helper function
2014-06-10 12:11:20 -04:00
Ms2ger
406acd17af
Avoid reallocations with variadic arguments.
...
Thanks to huon for pointing that out.
2014-06-10 10:19:26 +02:00
Ms2ger
78f368d336
Support union variadic arguments and add tests.
2014-06-10 10:19:26 +02:00
Ms2ger
d89f867b14
Implement variadic arguments ( fixes #1985 ).
2014-06-10 10:19:26 +02:00
bors-servo
4b5fd956bd
auto merge of #2626 : pcwalton/servo/inline-get-element, r=jdm
...
8% improvement on style recalc on Wikipedia.
r? @Ms2ger
2014-06-09 23:13:34 -04:00
bors-servo
01a93d82bf
auto merge of #2618 : Ms2ger/servo/console-assert, r=jdm
2014-06-09 22:49:35 -04:00
bors-servo
0ff6a45709
auto merge of #2611 : Ms2ger/servo/webidl-parser-sync, r=jdm
2014-06-09 22:19:44 -04:00
Patrick Walton
7350cfb004
script: Inline is_element_for_layout
and friends.
...
8% improvement on style recalc on Wikipedia.
2014-06-09 19:15:56 -07:00
Matt Brubeck
89327aa5be
Outside of compositor, store window size in CSS px
...
This fixes an issue where the CSS viewport was too large on high-DPI displays
because it was set to the window size in device pixels, instead of px. This
patch ensures that the window size is converted from device pixels to px
before being passed to script/layout code.
The Window trait now exposes the window size in both device pixels and
density-independent screen coordinates, with clearer method names.
2014-06-09 15:46:51 -07:00
bors-servo
e98b03f581
auto merge of #2619 : Ms2ger/servo/onclick, r=jdm
2014-06-08 20:46:39 -04:00
Ms2ger
6308ed914c
Support GlobalEventHandlers.onclick.
2014-06-08 18:50:27 +02:00
Ms2ger
69fb7b0c94
Implement Console.assert.
2014-06-08 18:49:10 +02:00
bors-servo
1f41eda321
auto merge of #2613 : Manishearth/servo/xhr-wpt-methods, r=Ms2ger
...
For [XMLHttpRequest/open-method-case-sensitive.htm](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-case-sensitive.htm ), [XMLHttpRequest/XMLHttpRequest/open-method-insecure.htm](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-insecure.htm ), [XMLHttpRequest/XMLHttpRequest/open-method-responsetype-set-sync.htm ](https://github.com/w3c/web-platform-tests/blob/master/XMLHttpRequest/open-method-responsetype-set-sync.htm ) in particular. `getResponseHeader()` is used by a lot of other tests (the harness echoes most of the metadata in the response headers, which is tested on this side)
The sync changes fixes half of the timeouts to give meaningful results.
Blocks #2525
2014-06-08 12:22:31 -04:00
Manish Goregaokar
86594a752c
Empty methods are not allowed
2014-06-08 21:18:44 +05:30
Manish Goregaokar
30827bab4d
Make sync requests not crash / remove associated leak
2014-06-08 21:18:44 +05:30
Manish Goregaokar
e8de5f2f55
Support for extension methods, getResponseHeader(), and an extra error
2014-06-08 21:18:44 +05:30
Tetsuharu OHZEKI
a2a94d9421
Use RefCell for mutability of Element::style_attribute.
2014-06-08 23:36:38 +09:00
Manish Goregaokar
7843b7b317
Allow union types to be used as return values
2014-06-07 23:44:21 +05:30
Ms2ger
d5dd0a07b8
Remove unsupported extended attributes from IDL.
...
These were silently ignored so far.
2014-06-07 17:39:23 +02:00
Ms2ger
ef0ccd3e15
Add support for undefined default values for 'any'.
...
This also updates TestBinding to take into account the automatic default
for optional 'any' arguments and dictionary members.
2014-06-07 17:38:35 +02:00
Ms2ger
4786c30bce
Reinstate IDLCallbackType.module.
2014-06-07 17:27:02 +02:00
Ms2ger
4b65f47315
Remove support for external interfaces.
2014-06-07 17:22:54 +02:00
Ms2ger
278f47ad46
Import the WebIDL parser from Gecko.
2014-06-07 17:21:52 +02:00
bors-servo
f1194fc85b
auto merge of #2607 : bjz/servo/leeeeeak, r=jdm
...
Introduced by yours-truly in 7212c3573e
Oopsie.
2014-06-06 17:49:21 -04:00
bors-servo
b52fbe0a5f
auto merge of #2591 : brunoabinader/servo/document-queryselector-v3, r=jdm
...
This is a subtask for #2254 & #2576 .
Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselector
2014-06-06 17:22:25 -04:00
Bruno de Oliveira Abinader
c89112dabf
Fixed traversal issues
2014-06-06 13:40:08 -07:00
Brendan Zabarauskas
bf21217504
Fix leak
...
Introduced by yours-truly in 7212c3573e
Oopsie.
2014-06-06 12:26:30 -07:00
Ms2ger
1a2896a3f3
Bonus: Make Reflector::object private.
2014-06-06 20:57:56 +02:00
Ms2ger
3e3536cf39
Fix and disable some compile warnings.
2014-06-06 20:56:44 +02:00
bors-servo
eae9b94399
auto merge of #2599 : Ms2ger/servo/constantspec, r=jdm
2014-06-06 14:04:29 -04:00
bors-servo
c54baa663e
auto merge of #2598 : Ms2ger/servo/unsafe-deriving, r=jdm
2014-06-06 13:31:31 -04:00
bors-servo
60fba1055c
auto merge of #2597 : Ms2ger/servo/main, r=jdm
2014-06-06 13:04:35 -04:00
bors-servo
af9da5cc24
auto merge of #2596 : Ms2ger/servo/CreateProxyHandler-transmute, r=jdm
2014-06-06 12:34:58 -04:00
bors-servo
a575cb7d9e
auto merge of #2600 : saneyuki/servo/mut, r=Ms2ger
...
Related #2514
2014-06-06 12:01:45 -04:00
Tetsuharu OHZEKI
1f9f0a28ed
Use Cell for mutability of HTMLIFrameElement.sandbox.
2014-06-07 00:58:43 +09:00
Tetsuharu OHZEKI
2aa1554b0c
Remove needless '&self mut' from VirtualMethods trait.
2014-06-07 00:58:43 +09:00
bors-servo
e997090d8e
auto merge of #2590 : Manishearth/servo/xhr-json, r=jdm
2014-06-06 10:46:40 -04:00
Ms2ger
d882bb7cc0
Store a slice in ConstantSpec, rather than a raw pointer.
2014-06-06 14:23:09 +02:00
Ms2ger
ba68203ebf
Remove the pointless terminator from ConstantSpec slices.
2014-06-06 14:10:41 +02:00
Ms2ger
0c54cd1634
Pass slices to CreateInterfaceObjects2 rather than raw pointers.
2014-06-06 14:01:09 +02:00
Ms2ger
3dece6b7ab
Remove some code to support preffing off APIs.
...
We won't be using this feature in the near future, and the implementation is
not really Rustic.
2014-06-06 13:22:47 +02:00
Ms2ger
999fc973c0
Squash a warning about deriving traits on a struct that contains a raw pointer.
2014-06-06 13:10:28 +02:00
Manish Goregaokar
cfa20e9fba
JSON response support and some default headers
2014-06-06 16:10:54 +05:30
Ms2ger
e997d0bfbd
Remove htmlmainelement.rs again (re-fixes #2541 ).
2014-06-06 12:33:28 +02:00
Ms2ger
f0a87bcf64
Don't use mem::transmute for the argument to CreateProxyHandler.
2014-06-06 12:29:43 +02:00
Bruno de Oliveira Abinader
3601aebaa2
Implement querySelector for Element
2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
c874c6470c
Implement querySelector for DocumentFragment
2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
249c484c24
Implement querySelector for Document
2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
f0aadb790d
Added ParentNode.querySelector skeleton
2014-06-05 16:54:26 -07:00
Bruno de Oliveira Abinader
f78d04b620
Implement TNode for JS<Node>
2014-06-05 16:54:26 -07:00