Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00
Bruno de Oliveira Abinader
e9f9afc324
Implemented Attribute's tokens() iterator
2014-08-25 13:58:42 -04:00
Bruno de Oliveira Abinader
592454defd
Fixed AttrValue::from_tokenlist indexes
...
The following issues were found:
- Single concatenated spaces were indexed as a single token;
- Last token, if not followed by an HTML space character, was ignored;
2014-08-25 13:58:42 -04:00
Bruno de Oliveira Abinader
9061942664
Make AttrValue::as_slice impl from Str
2014-08-22 08:09:49 -04:00
Bruno de Oliveira Abinader
608389132a
Use Attr::value() whenever possible
2014-08-22 08:09:49 -04:00
Ms2ger
1b543144f1
Pass an Atom to before_remove_attr and after_set_attr.
2014-08-16 12:32:19 +02:00
Ms2ger
9501d2e451
Make Attr::local_name an Atom.
2014-08-16 12:13:02 +02:00
Ms2ger
501b8b6bd2
Make Attr::owner immutable.
...
Nobody needs to change the element it's associated with, so there's no reason
to use a Cell here.
2014-08-06 09:57:07 +02:00
Tetsuharu OHZEKI
794ce9cd4d
Use atom to match id selector.
2014-07-30 06:22:09 +09:00
Tetsuharu OHZEKI
f2db7faf19
Port id
attribute to use atom.
2014-07-29 00:43:44 +09:00
Ms2ger
944d8b00b0
Call the generated rather than the hand-written traits ( fixes #2936 ).
2014-07-27 23:00:17 +02:00
Glenn Watson
036bd29ead
Port attribute name to use atom.
2014-07-24 11:33:59 +10:00
Ms2ger
829259fb79
Introduce abstractions for global scopes.
...
Part of #2811 .
2014-07-15 15:33:57 +02:00
Ms2ger
bba9e58df1
Make some DOM members private.
...
I have not reviewed if this is the complete set of members that can be made
private.
2014-06-28 16:27:36 +02:00
Manish Goregaokar
f5b5b337d3
Upgrade to latest Rust.
2014-06-27 18:50:32 -06:00
Ms2ger
c90a8529c5
Use internal mutability for Attr::value.
2014-06-22 20:39:21 +09:00
bors-servo
7ed5041891
auto merge of #2649 : ebalint/servo/2580_JS_T_unrooted_replace, r=jdm
...
removed .clone() calls
modified from_rooted method parameter: T to &T
2014-06-13 14:33:03 -04:00
Ms2ger
e09ed14362
Remove Reflectable::mut_reflector.
2014-06-13 19:19:58 +02:00
Edit Balint
bda29ade09
Replace uses of JS<T>.unrooted() with JS::from_rooted #2580
2014-06-13 19:06:28 +02: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
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
Ms2ger
efe69f3a82
Make Attr::value private.
2014-06-08 17:09:22 +02:00
Tetsuharu OHZEKI
2aa1554b0c
Remove needless '&self mut' from VirtualMethods trait.
2014-06-07 00:58:43 +09:00
Jack Moffitt
629c4c6afe
Upgrade Rust.
2014-06-05 09:58:59 -06:00
Ms2ger
97efd122a3
Rename BindingDeclarations to Bindings.
2014-06-02 19:48:42 +02:00
Tetsuharu OHZEKI
46ead90515
Use Cell/RefCell for interior mutability of Attr, AttrList, Blob,
...
BrowserContext, ClientRect, and ClientRectList.
2014-05-30 03:41:06 +09:00
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
Josh Matthews
46a33b4b38
Fix up the virtual method unsoundness.
2014-05-03 14:18:31 -04:00
Josh Matthews
7b3e6d1f21
Remove all root collections.
2014-05-03 14:18:31 -04:00
Josh Matthews
522d3f167b
s/Unrooted/Temporary/g
2014-05-03 14:18:31 -04:00
Josh Matthews
76783b029e
Move WebIDL methods to traits implemented by JSRef types.
2014-05-03 14:18:30 -04:00
Josh Matthews
d7b96db33c
Implement safe rooting strategy via Unrooted, Root, JSRef, and JS.
2014-05-03 14:18:30 -04:00
Josh Matthews
ffdc3f5b32
Turn on GC all the time. Fix rooting errors during parsing and storing timers. Fix borrow errors during tracing.
2014-05-03 14:18:30 -04:00
Tetsuharu OHZEKI
78856c87a4
Remove the 'pub use self::BindingDeclarations::*;' export.
2014-05-01 18:49:16 +09:00
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
Tetsuharu OHZEKI
cdbe179acb
Make Attr handles all setting value.
2014-04-22 16:15:15 +09:00
Tetsuharu OHZEKI
b2fa6fa221
Make Attr::SetValue to reflect attribute change.
2014-04-22 16:15:15 +09:00
Tetsuharu OHZEKI
a74397432e
Make Attr::SetValue uses the internal setter.
2014-04-22 16:15:15 +09:00
Ms2ger
ed18e4c948
Merge Attr::new_ns and Attr::new.
2014-04-08 20:17:15 +02:00
Ms2ger
23b7277b54
Pass &JS<Window> to reflect_dom_object.
2014-03-04 14:13:58 +01:00
Ms2ger
6291aac170
Pass &JS<Window> to some constructors.
2014-03-04 14:10:33 +01:00
Ms2ger
58b317837b
Cleanup Element::set_attribute.
2014-02-26 14:50:57 +01:00
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
Simon Sapin
5ae7aad6e2
Make Namespace::to_str() return a string.
2014-01-25 12:23:11 -08:00
Simon Sapin
624e2714d4
Move script::dom::namespace into util, in order to use it from style later.
2014-01-25 12:14:06 -08:00
Jack Moffitt
c443bcbfff
Change get_attr()
to get_attr_val_for_layout()
.
...
The old code was used by both layout and script, but was erroneously
borrowing for the layout case (which causes parallelism
problems). script now uses only `value_ref()` or `get_attribute()`, and
layout now has its own unsafe version that dances around the borrows of
`@mut Attr`.
2014-01-22 17:02:21 -07:00
Ms2ger
76a9d59632
Avoid mixing up local name and name when creating attributes.
2014-01-04 11:05:10 +01:00
Ms2ger
29897580e1
Remove the hashmap for attributes.
2014-01-03 18:24:00 +01:00
Simon Sapin
61c7f2f220
Change Namespace::to_str() to not allocate and return a reference.
2013-12-09 15:10:09 +00:00