Commit graph

530 commits

Author SHA1 Message Date
thiagopnts
271aa277e9 Replace XHR events for generic ones in ScriptTask
fixup! Replace XHR events for generic ones in ScriptTask

fixup! Replace XHR events for generic ones in ScriptTask
2014-12-23 23:53:38 -02:00
Ms2ger
dc63735ca7 Revert PR #4038 for causing WPT failures. 2014-12-23 09:53:12 +01:00
bors-servo
a773bd5c45 auto merge of #4454 : amwatson/servo/global_update, r=jdm
Changed fn_wrap argument in reflect_dom_object() and reflect_node() to pass GlobalRef by value rather than by reference.  Fixes #4165
2014-12-20 17:51:44 -07:00
bors-servo
6efa7eedbc auto merge of #4452 : Ms2ger/servo/_obj_toString, r=jdm 2014-12-20 17:24:44 -07:00
Amanda Watson
582ba9d796 GlobalRef passed by value in reflect_dom_object, reflect_node #4165 2014-12-20 16:20:53 -08:00
bors-servo
b4025f167f auto merge of #4451 : Ms2ger/servo/bytestring-doc, r=jdm 2014-12-20 16:57:43 -07:00
Ms2ger
8b3d64f8e3 Reindent _obj_toString. 2014-12-20 16:44:24 +01:00
Ms2ger
ef3901fceb Simplify _obj_toString by using JS_NewStringCopyN. 2014-12-20 16:40:20 +01:00
bors-servo
661144d285 auto merge of #4450 : Ms2ger/servo/domrefcell-doc, r=jdm 2014-12-20 08:36:43 -07:00
Ms2ger
ca2ce8e5b8 Require documentation for ByteString. 2014-12-20 16:12:13 +01:00
bors-servo
1f74e54bb2 auto merge of #4038 : brunoabinader/servo/dataset, r=Ms2ger
Spec: https://html.spec.whatwg.org/multipage/dom.html#dom-dataset

Closes #2974.
2014-12-20 08:06:44 -07:00
Ms2ger
7ec11b22b4 Document DOMRefCell.
Based on the RefCell documentation.
2014-12-20 15:11:20 +01:00
Ms2ger
0274978a08 Remove the unused DOMRefCell::unwrap method. 2014-12-20 15:03:11 +01:00
Ms2ger
96180ec3ad Move unwrap_jsmanaged and related machinery to conversions.rs. 2014-12-20 14:51:14 +01:00
Ms2ger
73c236ce3b Use unwrap() when finalizing.
This allows us to duplicate a little less code.
2014-12-20 14:07:23 +01:00
Ms2ger
b8c2573f4d Remove the proto_{id,depth} arguments from unwrap_jsmanaged.
Instead, we infer them from the type we're unwrapping into. This will prevent
any mismatches between the type we return and the type we check for.
2014-12-20 13:48:21 +01:00
Ms2ger
e1dae2f59b Use the try macro in unwrap_jsmanaged. 2014-12-20 13:42:38 +01:00
Bruno de Oliveira Abinader
9686840ee7 Avoid duplicated code 2014-12-19 14:07:43 -04:00
Bruno de Oliveira Abinader
628ee92d73 Implement HTMLElement.dataset
Make DOMStringMap use related Element's custom attributes values.
2014-12-19 14:07:43 -04:00
Bruno de Oliveira Abinader
e1a7d99df7 Added Element::set_custom_attribute 2014-12-19 14:07:43 -04:00
Bruno de Oliveira Abinader
1533c07453 CodegenRust fixes for NamedGetter 2014-12-19 14:07:43 -04:00
Josh Matthews
8ff3e6bbdc Create a replacement for Cell<SM primitive>. Fixes #4337. 2014-12-19 11:17:02 -05:00
Ms2ger
bce3b172e7 Make the argument to dispatch_event_with_target non-optional.
The name of the method makes it clear it's supposed to be used with a target
override, so we might as well enforce that.
2014-12-19 11:34:11 +01:00
Eduard Burtescu
8394d4592a update to namespaced enums without re-exports 2014-12-19 06:37:39 +02:00
Eduard Burtescu
8ad4b97987 update past rustup and use DoesNotBubble instead of Bubbles 2014-12-19 06:29:04 +02:00
Eduard Burtescu
5cfa98d78d Trigger a load event after evaluating a <script>. 2014-12-19 06:29:04 +02:00
Eduard Burtescu
5059a1b2ac Handle getting/setting onload for any element. 2014-12-19 06:29:04 +02:00
Tetsuharu OHZEKI
a7bb436177 script: Remove glob imports added in #4405 2014-12-19 04:52:48 +09:00
bors-servo
824788649c auto merge of #4342 : jdm/servo/cssom, r=jdm,metajack
This does not implement any notion of CSSStyleDeclaration objects that do not have an owning element; there's no actual CSS object model in play here. This does support setting and getting properties of the style attribute for HTMLElement, and tries to implement the ambiguous CSS value serialization spec.
2014-12-18 11:54:52 -07:00
bors-servo
1f342638c4 auto merge of #4424 : saneyuki/servo/glob_style, r=SimonSapin
#4406
2014-12-18 11:03:55 -07:00
Josh Matthews
0a54665444 Add missing supported CSS properties. 2014-12-18 12:54:03 -05:00
Josh Matthews
6bffc10445 Address review comments. 2014-12-18 12:54:03 -05:00
Josh Matthews
c8557c44a9 Merge CSS2Properties and CSSStyleDeclaration. 2014-12-18 12:54:03 -05:00
Josh Matthews
fab2e63b59 Slight simplification. 2014-12-18 12:54:02 -05:00
Josh Matthews
3cfe8ab53e Address review comments. 2014-12-18 12:54:02 -05:00
Josh Matthews
9d82e06e64 Implement RemoveProperty, SetProperty, and supported property indices. 2014-12-18 12:54:02 -05:00
Josh Matthews
abca00009c Add z-index support. 2014-12-18 12:54:02 -05:00
Josh Matthews
5ca61c00b9 Add a ton of properties and improve a bunch of serialization. 2014-12-18 12:54:02 -05:00
Josh Matthews
755ebd6528 Improve color serialization by retaining author-specified keywords. 2014-12-18 12:54:02 -05:00
Josh Matthews
6f8a9b6d46 Implement setting element style properties. Improve serialization to return initial values when unspecified. 2014-12-18 12:54:02 -05:00
Josh Matthews
505e1855a3 Implement something like CSS value serialization. Fetch actual inline style declarations from owning elements. 2014-12-18 12:54:02 -05:00
Josh Matthews
2e14b653bf Add a style property to HTMLElement. 2014-12-18 12:54:02 -05:00
Josh Matthews
2cfa8e85a6 Stub in some uses of getPropertyValue and sketch out its implementation. 2014-12-18 12:54:02 -05:00
Josh Matthews
4da0ca8ace Add stub CSS2Properties type. 2014-12-18 12:54:02 -05:00
Cameron Zwarich
1c5d58180d Add the basic CSSStyleDeclaration CSSOM interface.
This just includes the .webidl file (with some of the functionality
commented out) and the stub implementations for the bindings.

This is another step towards #1721.
2014-12-18 12:54:02 -05:00
Tetsuharu OHZEKI
135ee60f5a style: Remove glob imports added in #4405 2014-12-19 01:49:24 +09:00
Matt McCoy
e4b029623f This fixes #4407. This removes all unnecessary clones when calling fire_timer. 2014-12-18 10:57:15 -05:00
Ms2ger
e2b75670bd Rename the PrototypeList enums to fix case build warnings. 2014-12-18 10:33:57 +01:00
Chris Paris
96f73d67d4 Use parse_html in DOMParser. 2014-12-17 17:40:38 -10:00
Ms2ger
466faac2a5 Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d. 2014-12-17 15:19:45 -05:00