Commit graph

1295 commits

Author SHA1 Message Date
Ms2ger
c331b200b1 Use Cell for Reflector::object. 2014-06-13 19:19:56 +02:00
bors-servo
4c5437c58b auto merge of #2652 : saneyuki/servo/root, r=jdm
fix #2650
2014-06-13 12:49:52 -04:00
Tetsuharu OHZEKI
e5a708f727 Make the conservertive stack scanner calculates Temporary<T> as root instead of calling root methods.
See: https://github.com/mozilla/servo/issues/2650
2014-06-14 01:32:18 +09:00
bors-servo
da668f53d9 auto merge of #2616 : Ms2ger/servo/attrvalue, r=jdm
Obsoletes #2073.
2014-06-13 11:41:13 -04:00
Ms2ger
b012c99e05 Implement parsed 'unsigned long' attributes.
This commit is partially based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:13:29 +02:00
Ms2ger
972c69883e Implement Element.classList (partially fixes #1717). 2014-06-13 14:13:00 +02:00
bors-servo
58b776e0b5 auto merge of #2646 : Manishearth/servo/cleartimeout-opt, r=jdm 2014-06-13 08:10:57 -04:00
Ms2ger
0803e5d0ac Implement support for parsed attributes.
This commit is heavily based on earlier work by Bruno Abinader in #2073.
2014-06-13 14:07:49 +02:00
Tetsuharu OHZEKI
28f8d16c87 Fix the assertion failure with inserting node contains child which has id into the document
https://github.com/mozilla/servo/issues/2630
2014-06-13 20:36:27 +09:00
Manish Goregaokar
e21faaaba7 Don't fail on clearing nonexistant timeouts 2014-06-13 16:54:24 +05:30
bors-servo
897e39dcf3 auto merge of #2640 : Ms2ger/servo/derefmut, r=jdm 2014-06-11 17:19:51 -04:00
Ms2ger
fa148e5ff4 Pass immutable self to HTMLBodyElement::SetOnunload. 2014-06-11 23:06:27 +02:00
Ms2ger
d6eae6ae8b Cleanup a mutable variable in dispatch_event. 2014-06-11 23:01:15 +02:00
Ms2ger
687722da2d Pass immutable self to Node::{SetNodeValue, SetTextContent}. 2014-06-11 22:53:53 +02:00
Ms2ger
34c42f6acb Use internal mutability for Document::idmap. 2014-06-11 22:39:52 +02:00
bors-servo
baa97fe6e5 auto merge of #2632 : brunoabinader/servo/document-queryselectorall, r=Ms2ger
Spec:
http://dom.spec.whatwg.org/#dom-parentnode-queryselectorall

Closes #851.
2014-06-11 16:05:04 -04:00
Ms2ger
04fe508e13 Use interior mutability for MouseEvent. 2014-06-11 21:51:42 +02:00
bors-servo
cc23f3c436 auto merge of #2633 : Ms2ger/servo/derefmut, r=jdm
Part of #1854.
2014-06-11 13:59:01 -04:00
Ms2ger
c41dd2477d Use internal mutability for HTMLImageElement. 2014-06-11 19:51:08 +02:00
Ms2ger
be375de91f Use internal mutability for FormData. 2014-06-11 19:51:08 +02:00
Ms2ger
23a6b6823b Use internal mutability for Document::{quirks_mode, encoding_name}. 2014-06-11 19:51:08 +02:00
Ms2ger
e9b64dc361 Use internal mutability for Window::{active_timers, next_timer_handle}. 2014-06-11 19:51:07 +02:00
Ms2ger
07c67a1d5a Use internal mutability for Window::browser_context. 2014-06-11 19:51:07 +02:00
Ms2ger
288e0bc877 Use internal mutability for CharacterData::data. 2014-06-11 19:51:07 +02:00
Ms2ger
d230077f9f Stop mutating Element::namespace. 2014-06-11 19:51:07 +02:00
Ms2ger
6df6a7d512 Use internal mutability for Node.flags. 2014-06-11 19:51:07 +02:00
Ms2ger
bb0cbb0a74 Use internal mutability for HTMLIFrameElement. 2014-06-11 19:51:07 +02:00
Ms2ger
9acba1477c Use internal mutability for EventTarget. 2014-06-11 19:51:06 +02:00
Ms2ger
2aefa3f805 Use internal mutability for UIEvent. 2014-06-11 19:51:06 +02:00
Ms2ger
781299aaa6 Use internal mutability for CustomEvent. 2014-06-11 19:51:06 +02:00
Ms2ger
0b364d13b6 Use internal mutability for Event. 2014-06-11 19:51:06 +02:00
bors-servo
6e2a916958 auto merge of #2637 : Ms2ger/servo/initids, r=larsbergstrom 2014-06-11 13:35:08 -04:00
Ms2ger
c12e18998e Remove unused InitIds function. 2014-06-11 15:18:04 +02:00
Ms2ger
44f57ae6da Pass a JSRef to RegisterBindings::Register.
JS<T> should only be used for members of traced structures; the correct type
for arguments is JSRef.
2014-06-11 12:40:12 +02:00
bors-servo
57e8be0c8f auto merge of #2627 : Ms2ger/servo/iframe-src, r=jdm 2014-06-10 12:32:17 -04:00
Bruno de Oliveira Abinader
95dcab66b2 Implement support for ParentNode's querySelectorAll 2014-06-10 12:11:20 -04:00
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
Ms2ger
d23407d9bc Implement HTMLIFrameElement.src. 2014-06-09 16:20:52 +02: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