Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00
Sean McArthur
375e475f99
make Node.type_id field private
2014-09-05 12:22:56 -07:00
Clark Gaebel
dafd0b652d
Added a fast no-message RPC interface to the layout task.
2014-09-04 14:10:07 -07:00
Ms2ger
ce9e5ae213
Make some of Node's members private.
2014-09-03 13:02:17 +02:00
Gilles Leblanc
d12243df0d
Share code between HTMLScriptElement:Text and Node:GetTextContent
...
Added a function in Node called collect_text_contents which is called
from both places.
Fixes #3157
2014-08-30 20:34:08 -04:00
Bruno de Oliveira Abinader
09633ed84d
Nuke Node's TLayoutData
...
LayoutData{Ref} structs replaced its usage for quite some time now.
2014-08-26 12:21:26 -04:00
Ms2ger
1c1216de5c
Merge pull request #3099 from Ms2ger/attr-local_name-atom
...
Make Attr::local_name an Atom; r=abinader
2014-08-19 17:04:39 +02:00
Ms2ger
9501d2e451
Make Attr::local_name an Atom.
2014-08-16 12:13:02 +02:00
Simon Sapin
5f3dc55f72
Make more things private to the style crate.
2014-08-16 08:32:47 +01:00
Simon Sapin
639a6c51bf
Fix case sensitivity of local name selectors.
2014-08-16 08:31:23 +01:00
Simon Sapin
9564d91b5e
Use Result/Err(()) in Selector parsing.
...
… get rid of some custom `enum` types for parsing return values.
`Option<Option<T>>` was ridiculous, but `Result<Option<T>, ()>`
make perfect sense.
Also, we can now take advantage of the `try!()` macro.
2014-08-16 08:31:16 +01:00
Manish Goregaokar
6b78b93be1
node.textContent and node.nodeValue should not throw
2014-08-14 18:33:31 +05:30
Jack Moffitt
7a4321d649
Upgrade Rust.
2014-08-08 19:11:53 -06:00
James Graham
0b802ab018
Fix getElementsByTagName[NS] support to match the spec.
2014-08-08 14:30:34 +01:00
Jack Moffitt
fedccdb473
Fix the NodeFlags methods that are called by layout.
...
They should never borrow.
2014-08-07 10:30:17 -06:00
Bruno de Oliveira Abinader
b0f7ad2240
Using NodeFlags ctor to set InEnabledState when needed
2014-08-06 10:53:54 -04:00
Bruno de Oliveira Abinader
10a20e69fd
Implement support for :enabled CSS selector
2014-08-05 11:01:53 -04:00
Bruno de Oliveira Abinader
7771350898
Implement support for :disabled CSS selector
2014-08-05 11:01:53 -04:00
Jack Moffitt
b91e6f30e0
Upgrade Rust.
2014-08-02 21:11:47 -06:00
Ms2ger
944d8b00b0
Call the generated rather than the hand-written traits ( fixes #2936 ).
2014-07-27 23:00:17 +02:00
Matt Brubeck
377bcb53b9
Update comments about Node::layout_data
2014-07-24 22:42:28 -07:00
Bruno de Oliveira Abinader
7457750901
Prefer direct member access than type_id()
2014-07-23 09:12:55 -04:00
glennw
c3e6d956ff
Merge pull request #2844 from glennw/atom-element
...
Convert element name to be stored as atom instead of string.
2014-07-18 10:13:24 +10:00
Glenn Watson
560e380767
Fix comments and variable names for atom wrapper.
2014-07-17 08:31:31 +10:00
Bruno de Oliveira Abinader
aea4ccf849
Added 'parent is/was in tree' param to bind_to_tree/unbind_from_tree
...
According to a talk with Ms2ger, both bind_to_tree / unbind_from_tree
should be called regardless if the tree is part of a Document. This
information is now passed as a parameter to their respective virtual
methods.
2014-07-16 08:59:56 -04:00
Glenn Watson
dddd3346a6
Convert element name to be stored as atom instead of string.
2014-07-16 07:33:29 +10:00
Ms2ger
829259fb79
Introduce abstractions for global scopes.
...
Part of #2811 .
2014-07-15 15:33:57 +02:00
Ms2ger
439bc78cab
Return a Temporary from *Binding::Wrap.
...
Returning a JS<T> is GC-unsafe.
This commit also includes some cleanup around Node and Document reflection.
2014-07-10 16:45:41 +02:00
Patrick Walton
78eeb8e2e7
Revert "Implement Element.matches()."
...
This reverts commit b6edd5318f
.
2014-07-09 14:58:38 -07:00
Tetsuharu OHZEKI
b6edd5318f
Implement Element.matches().
2014-07-05 23:27:40 +09:00
Ms2ger
362feaa4a9
Mark some unused fields.
2014-06-28 17:08:57 +02:00
Ms2ger
924031135e
Remove some into_owned calls.
2014-06-28 17:07:47 +02:00
Manish Goregaokar
f5b5b337d3
Upgrade to latest Rust.
2014-06-27 18:50:32 -06:00
Tetsuharu OHZEKI
975fee82da
Remove needless mutabilities from script crate.
2014-06-22 21:22:58 +09:00
Ms2ger
c90a8529c5
Use internal mutability for Attr::value.
2014-06-22 20:39:21 +09:00
Manish Goregaokar
53d0e4ec04
Use Traceable for NodeFlags
2014-06-16 22:04:17 +05:30
Ms2ger
bb0efdd5a2
Make some locals immutable.
2014-06-13 21:41:28 +02: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
bors-servo
da668f53d9
auto merge of #2616 : Ms2ger/servo/attrvalue, r=jdm
...
Obsoletes #2073 .
2014-06-13 11:41:13 -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
bors-servo
897e39dcf3
auto merge of #2640 : Ms2ger/servo/derefmut, r=jdm
2014-06-11 17:19:51 -04:00
Ms2ger
687722da2d
Pass immutable self to Node::{SetNodeValue, SetTextContent}.
2014-06-11 22:53:53 +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
23a6b6823b
Use internal mutability for Document::{quirks_mode, encoding_name}.
2014-06-11 19:51:08 +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