Commit graph

1964 commits

Author SHA1 Message Date
Simon Sapin
2a50755c8a Move selector matching to an external library, for use outside Servo. 2015-02-23 16:29:34 +01:00
Ms2ger
ada6a088d1 Split the 'Execute a script block' code out of prepare().
This also adds comments for missing steps.

The only change in behaviour should be the debug message when an external
script fails to load.
2015-02-23 10:28:49 +01:00
bors-servo
2e1adb3fa6 auto merge of #5016 : jdm/servo/canvas-for-svg, r=jdm
the tiger.

Rebased from #4623.
2015-02-22 20:33:45 -07:00
Patrick Walton
55a0ee6ec7 script: Implement enough 2D canvas support to render basic SVGs such as the tiger. 2015-02-22 22:29:58 -05:00
bors-servo
fe7db9d8d0 auto merge of #5023 : saneyuki/servo/script, r=Ms2ger
Fix #5021
2015-02-22 14:57:44 -07:00
bors-servo
0ea9dafa63 auto merge of #5019 : jdm/servo/serializerfix, r=Ms2ger 2015-02-22 13:51:45 -07:00
Tetsuharu OHZEKI
36722182c0 Introduce dom::htmlscriptelement::EventDispatcher. 2015-02-23 05:35:26 +09:00
Josh Matthews
4c67acfb4a The HTML serializer depth can change on each iteration. 2015-02-22 15:02:20 -05:00
bors-servo
287f390c4a auto merge of #5020 : jdm/servo/canvas, r=jdm
Rebase of #4639.
2015-02-22 11:48:46 -07:00
Edit Balint
325400dce4 Implement Canvas pixel manipulation 2015-02-22 13:41:58 -05:00
bors-servo
3ea09bf2ea auto merge of #5017 : Ms2ger/servo/unused-args, r=jdm 2015-02-22 10:15:47 -07:00
Ms2ger
931d535f52 Mark some unused arguments as unused in bindings. 2015-02-22 17:54:08 +01:00
bors-servo
e68d6d2924 auto merge of #5004 : Ms2ger/servo/handle_click_event, r=jdm 2015-02-22 09:36:46 -07:00
Ms2ger
957c89b101 Reindent handle_click_event. 2015-02-22 17:22:11 +01:00
Ms2ger
c12b4029aa Only unwrap the object once when finalizing.
Previously, we had 'value' and 'this' locals, both storing a pointer to the
DOM object, for no good reason.
2015-02-22 16:32:36 +01:00
Prabhjyot Singh Sodhi
cc48797999 Fixing Intermittent failure in pages with timers
Fixes #4923
2015-02-22 00:27:16 +05:30
bors-servo
b589735b47 auto merge of #4997 : saneyuki/servo/doc, r=jdm
Fix #4987
2015-02-21 09:24:47 -07:00
bors-servo
0be6389158 auto merge of #4939 : KiChjang/servo/script-element-error-events, r=jdm
Fixes #4506
2015-02-21 08:42:46 -07:00
Tetsuharu OHZEKI
749ebbba71 Move DocumentProgressHandler to document.rs. 2015-02-22 00:29:05 +09:00
Keith Yeung
52f8b0ceb7 Script elements now fire async error events (fixes #4506) 2015-02-21 22:59:48 +08:00
bors-servo
1ad9c678f7 auto merge of #4931 : KiChjang/servo/worker-error-event, r=jdm
Fixes #4511
2015-02-21 07:39:51 -07:00
Keith Yeung
61086d6ee5 Worker now fires errorevent when url fetching failed, fixes #4511 2015-02-21 21:51:35 +08:00
bors-servo
aad6cc03b8 auto merge of #4999 : KiChjang/servo/refactor-handle-click-event, r=jdm
Fixes #4983
2015-02-21 05:42:53 -07:00
Keith Yeung
b855bc4716 Changed js_runtime to be of type *mut JSRuntime 2015-02-21 20:01:27 +08:00
Ms2ger
10ddb86d61 Remove the implementation of ToJSValConvertible for JS<T>.
It is unused and doesn't serve a purpose.
2015-02-21 11:09:06 +01:00
Keith Yeung
e715f0958b Moved handle_click_event from script_task.rs to document.rs 2015-02-21 17:58:23 +08:00
Shing Lyu
f4a2afc3a6 Bug 4236: Moved anchorelement click event to activation behaviour 2015-02-21 09:26:39 +08:00
bors-servo
e39e75865b auto merge of #4865 : psdh/servo/prepscript, r=Ms2ger
#4176
2015-02-20 17:03:53 -07:00
Prabhjyot Singh Sodhi
44e2e2747c implementing step 12 of 'prepare a script' algorithm 2015-02-21 04:58:27 +05:30
bors-servo
172db80703 auto merge of #4882 : chmanchester/servo/stringifiers, r=Ms2ger 2015-02-20 13:01:02 -07:00
Chris Manchester
00f863b4fe Add stringifier method support to CodegenRust.py (fixes #1986)
Add a stringifier to URLUtils (Location). (fixes #4605)

wpt metadata updates for #4605
2015-02-20 11:35:16 -08:00
Ms2ger
6d30ec77c8 Replace uint/int by usize/isize in various places. 2015-02-20 14:45:47 +01:00
Ms2ger
9c863a6bd4 Pass isize to ptr.offset(). 2015-02-20 14:45:47 +01:00
Ms2ger
a3fedee46e Return usize from IDLInterface::get_prototype_depth.
It is used as an index into an array.
2015-02-20 14:45:47 +01:00
Ms2ger
c84dfa0f1d Change the representation of DOMErrorName to u16.
This matches the IDL definitions.
2015-02-20 14:45:47 +01:00
Ms2ger
a65a1088a4 Change the representation of EventPhase to u16.
This matches the IDL definitions.
2015-02-20 14:45:46 +01:00
Ms2ger
21a1143dd1 Use u32 for reserved slot indices.
This is what the JSAPI expects.
2015-02-20 14:45:46 +01:00
Ms2ger
03408d69fb Remove the unused Worker::refcount field. 2015-02-20 14:45:46 +01:00
Ms2ger
f75f279804 Stop casting the right-hand side of shifts to uint.
This is no longer required.
2015-02-20 14:45:46 +01:00
Ms2ger
81eab460b1 Use the try macro to initialize dictionaries. 2015-02-20 10:39:40 +01:00
Ms2ger
c58213b698 Remove the Option<Self> arguments from IDLInterface. 2015-02-19 09:52:48 +01:00
bors-servo
dc31d96f65 auto merge of #4951 : glennw/servo/set-title, r=jdm 2015-02-18 14:42:49 -07:00
Prabhjyot Singh Sodhi
ca146ccfa6 Porting Gecko's JSToNativeConversionInfo changes to Servo's codegen
Fixes #4800
2015-02-18 19:37:17 +05:30
Glenn Watson
56eedbaebe Change window title to reflect document title 2015-02-18 10:51:37 +10:00
Tetsuharu OHZEKI
abd591b96e XMLHttpRequestEventTarget should not be [NoInterfaceObject]. 2015-02-18 02:38:23 +09:00
Ms2ger
aaed4a54c7 Use rustc-serialize rather than the built-in deprecated serialize. 2015-02-17 13:24:15 +01:00
Ms2ger
0e11178d66 Replace the FooCast traits by structs.
This should allow us to remove most type annotations in the DOM.
2015-02-16 00:20:16 +01:00
Ms2ger
c54e79b2f2 Fix indentation in InheritTypes. 2015-02-16 00:19:18 +01:00
Ms2ger
746c3ebd7d Improve the formatting for FromJSValConvertible implementations in UnionTypes. 2015-02-15 23:18:37 +01:00
Ruud van Asseldonk
1452614e28 Do not glob-export DevtoolsControlMsg variants. 2015-02-13 14:51:10 +01:00