Lars Bergstrom
948daf2422
This batch of changes upgrades Servo to work with the Rust upgrade as of
...
April 10, 2014. The main changes are to privacy, to work around the
issues with incorrect bounds on the libstd `Arc<Mutex<T>>`, and the
various API changes strewn throughout the libraries.
2014-04-27 15:46:12 -05:00
bors-servo
3fc2c11910
auto merge of #2209 : lpy/servo/issue2188, r=Ms2ger
...
see #2188
2014-04-23 03:19:23 -04:00
lpy
dfe5215b88
Implement Element.localName.( fixes #2188 )
2014-04-23 11:00:03 +08:00
Tom Schuster
4c057deaf9
Implement ParentNode.children for Document and Element
...
Also implement it for DocumentFragment
2014-04-22 22:19:52 +02:00
Bruno de Oliveira Abinader
943743195f
Split class names using split_html_space_chars helper function
2014-04-04 09:08:36 -04:00
Bruno de Oliveira Abinader
3a8a0927e2
HTMLCollection::create returns live collections by default
2014-03-26 09:12:38 -04:00
Bruno de Oliveira Abinader
0bc59eb4de
Implemented HTMLCollection::create_live
2014-03-26 09:01:58 -04:00
Bruno de Oliveira Abinader
904e464824
Added CollectionFilter, CollectionTypeId
2014-03-26 08:59:59 -04:00
Ms2ger
038a195ead
Move attributes-related functions onto JS<Element>.
2014-03-20 19:42:42 +01:00
Tetsuharu OHZEKI
0fccf5e386
Split TCast::to into TCast::to_unchecked and TCast::to.
2014-03-20 23:41:59 +09:00
Bruno de Oliveira Abinader
d010861b75
Implemented {Document,Element}.getElementsByClassName
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
e1499b610e
Implemented {Document,Element}.getElementsByTagNameNS
2014-03-07 11:10:56 -04:00
Bruno de Oliveira Abinader
d22dbb53ca
Implemented {Document,Element}.getElementsByTagName
2014-03-07 11:10:55 -04:00
Bruno de Oliveira Abinader
c768097adc
Added HTMLCollection::create
...
This is a sub-task for #1662 .
2014-03-07 11:10:55 -04:00
Bruno de Oliveira Abinader
6cf0eb1115
Bumped HTMLCollection interface to latest
...
Spec:
http://dom.spec.whatwg.org/#interface-htmlcollection
This is a sub-task for #1662 .
2014-03-07 11:10:55 -04:00
Ms2ger
23b7277b54
Pass &JS<Window> to reflect_dom_object.
2014-03-04 14:13:58 +01:00
Saurabh Anand
5c5cb3e9a7
Move Error, Fallible, ErrorResult out of utils.rs ( fixes #1749 )
2014-02-28 13:32:00 +05:30
Josh Matthews
625325434b
Implement JSManaged for DOM objects.
2014-02-24 15:16:42 -05:00
Ms2ger
59184bf6e1
Move DOMString into servo_util.
2014-02-14 12:48:51 +01:00
Patrick Walton
be69a503fe
script: Eliminate the phantom type in favor of just whitelisting methods
...
that layout can safely call.
This is simpler. Currently, the set of methods is not safe, but I plan
to lock it down more soon.
2013-12-17 18:07:12 -08:00
Tetsuharu OHZEKI
f5ef4365f4
Stop passing DOMStrings via borrowed pointer. ( #1201 )
2013-11-14 20:35:36 +09:00
Ms2ger
08afc6d19d
Don't pass nullable strings to native DOM methods that want non-nullable strings. Fixes #1207 .
2013-11-12 13:57:18 +01:00
Ms2ger
803cd4b7cf
Make DOMString represent a non-nullable string.
2013-11-12 13:32:53 +01:00
Ms2ger
80a6103f7d
Remove Reflectable::GetParentObject.
2013-11-06 21:56:47 +01:00
Ms2ger
53731b62ae
Remove Reflectable::wrap_object_shared.
2013-11-06 16:40:16 +01:00
Ms2ger
8cb4976136
Cleanup HTMLCollection binding.
2013-10-23 20:59:14 +02:00
Ms2ger
321e0373fa
Merge BindingObject and Reflectable.
2013-10-18 17:02:16 +02:00
Ms2ger
25cae74093
Remove unused aTriedToWrap argument.
2013-10-17 16:43:28 +02:00
Bobby Holley
c4bbc4cd37
Introduce mutable/immutable variants of reflector() with named lifetimes, and kill unsafe casts.
2013-10-10 13:11:24 +02:00
Bobby Holley
5ed8b9e83f
Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects.
2013-10-09 12:21:38 +02:00
Bobby Holley
62ddac8b6f
Rename get_wrappercache() to reflector(). v1
...
I also updated some variable names in the codegen.
2013-10-09 12:11:25 +02:00
Bobby Holley
2cbe2d7ce9
Rename WrapperCache to Reflector.
...
I think the abstraction from the raw JSObject is still probably worthwhile for
now.
2013-10-09 12:07:41 +02:00
Bobby Holley
0a0599ad9b
Rename CacheableWrapper to Reflectable.
2013-10-09 12:03:18 +02:00
Keegan McAllister
73c1a12f30
bindings: Return errors in Result rather than setting an out parameter
...
Fixes #909 .
2013-09-18 18:07:37 -07:00
Josh Matthews
c9bc2046f6
Fill out various proxy binding traps as part of making setters work. Add named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660 .
2013-08-03 13:48:09 -04:00
Josh Matthews
a2bdab7989
Generate bindings for Window.
2013-07-30 16:30:46 -04:00
Josh Matthews
5546f2105b
Generate HTMLDocument bindings. Introduce invariant into generated bindings that associated DOM classes are named the same as their interfaces, so Event and Event_ need to be swapped.
2013-07-30 16:28:02 -04:00
Tim Kuehn
e9888b299c
structural changes to support Iframes
2013-07-29 11:03:17 -07:00
Jack Moffitt
870db39836
Update to latest Rust.
2013-07-09 14:37:53 -06:00
Brian Anderson
56e5ba1b82
Update for language changes
2013-06-26 13:44:26 -07:00
Patrick Walton
bf82bc54f3
Separate the DOM and layout into separate crates.
2013-05-28 17:13:40 -07:00