bors-servo
246c9759be
auto merge of #2555 : brson/servo/warnings, r=metajack
...
Depends on https://github.com/mozilla-servo/rust-fontconfig/pull/19 , https://github.com/mozilla-servo/rust-harfbuzz/pull/21 , https://github.com/mozilla-servo/rust-hubbub/pull/23 , https://github.com/mozilla-servo/rust-layers/pull/68 , https://github.com/mozilla-servo/sharegl/pull/29 , https://github.com/mozilla-servo/rust-mozjs/pull/85 .
2014-06-02 20:46:25 -04:00
Brian Anderson
c85e2c9594
Eliminate some warnings
2014-06-02 17:42:10 -07:00
Ms2ger
97efd122a3
Rename BindingDeclarations to Bindings.
2014-06-02 19:48:42 +02:00
Ms2ger
c675421279
Remove low-level pointer stitching methods from Node.
...
There is no good reason for the additional abstraction here.
This commit also adds assertions that were suggested in XXX comments.
2014-06-02 13:33:59 +02:00
Tetsuharu OHZEKI
3819ebb740
Remove needless '&mut self' from node.rs.
2014-06-02 04:28:04 +09:00
Tetsuharu OHZEKI
25a6deda4d
Remove needless lifetime parameter from LayoutNodeHelpers.
2014-06-02 00:40:09 +09:00
Tetsuharu OHZEKI
106627e6eb
"JS<T>::from_raw" should accept "*T" instead of "*mut T"
2014-05-31 01:10:19 +09:00
Tetsuharu OHZEKI
b4463c1fb2
Use Cell/RefCell for interior mutability of Node.
2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
b0239b5a5a
Use Cell/RefCell for interior mutability of Element.
2014-05-30 03:53:07 +09:00
Ms2ger
d5cb4377ef
Use *mut T for the T* pointers in SpiderMonkey.
2014-05-26 18:19:44 +02:00
Ms2ger
eaedeb07cb
Update Rust.
2014-05-22 16:36:40 -06:00
bors-servo
fbcfe78bf6
auto merge of #2388 : zwarich/servo/cssom, r=jdm
...
Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.
This is the first step towards #1721 .
2014-05-12 16:46:10 -04:00
Cameron Zwarich
0e67202bc2
Move the computed style to a new SharedLayoutData struct.
...
Implementing the CSSOM requires giving the script task access to the
computed style for a node. Moving it into a new SharedLayoutData struct
member of LayoutDataRef seems to be the best way to achieve this.
This is the first step towards #1721 .
2014-05-09 13:22:50 -07:00
Martin Robinson
300004f3e9
Use == instead of match for tests against a single enum value
...
The performance of using == should now equal that of match, so many
identity methods can be simplified to a single line.
Fixes #1596 .
2014-05-08 17:11:00 -07:00
Glenn Watson
51ef2f06ba
Rename from_unrooted to from_temporary. Fixes #2332 .
2014-05-07 09:25:32 +10:00
Harry Maclean
6f310a5c20
Implement ChildNode.remove()
2014-05-05 14:04:25 -04:00
Ms2ger
25542e3f7e
Replace most ~"string"s with "string".to_owned().
2014-05-04 09:39:07 +02:00
Ms2ger
243814022e
Replace all ~"" with "".to_owned().
2014-05-03 22:17:45 +02:00
Josh Matthews
91278da9dd
Address review comments.
2014-05-03 14:18:31 -04:00
Josh Matthews
46a33b4b38
Fix up the virtual method unsoundness.
2014-05-03 14:18:31 -04:00
Josh Matthews
0f2d0b1dc3
Address review comments.
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
109410900c
Move all methods on T to JSRef<T> or JS<T> as appropriate.
2014-05-03 14:18:30 -04:00
Josh Matthews
7daa97c7e5
Remove abstract_self.
2014-05-03 14:18:30 -04:00
Josh Matthews
76783b029e
Move WebIDL methods to traits implemented by JSRef types.
2014-05-03 14:18:30 -04:00
Josh Matthews
dfdda0098a
Remove JS::get/get_mut to enforce sound rooting practices.
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
31cf10c006
Node::GetParentElement should use and_then instead of filtered/map.
2014-05-02 13:22:50 +09:00
Tetsuharu OHZEKI
78856c87a4
Remove the 'pub use self::BindingDeclarations::*;' export.
2014-05-01 18:49:16 +09:00
Ms2ger
cc7d04702d
Use Vec in Node mutation methods.
2014-04-28 23:06:26 +02:00
Ms2ger
02bcf97fd0
Make get_content_boxes return Vec.
2014-04-28 23:06:26 +02:00
Ms2ger
a1ec0cec11
Make TreeIterator::nodes a Vec.
2014-04-28 23:06:25 +02: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
Harry Maclean
9e1f63e147
Ensure Node.Normalize() acts on all descendants by recursively calling it on all non-text child nodes.
2014-04-24 17:41:30 +01:00
Tetsuharu OHZEKI
7d511f4baf
Add NodeHelpers::get_content_boxes().
2014-04-24 14:37:02 +09:00
Tetsuharu OHZEKI
dce92dc44a
Add NodeHelpers::get_bounding_content_box().
2014-04-24 14:36:43 +09: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
Tetsuharu OHZEKI
b2fa6fa221
Make Attr::SetValue to reflect attribute change.
2014-04-22 16:15:15 +09:00
Sankha Narayan Guria
36bf23de20
Implement Element.prefix ( Fixes #1737 )
2014-04-22 00:27:06 +05:30
Josh Matthews
742f73ded5
Add transparent Traceable and Untraceable types to aid proper rooting practices, and replace ad-hoc Untraceable structs with empty Encodable implementations.
2014-04-17 17:41:09 -04:00
Matt Brubeck
28a013cfc5
Move child_inserted into VirtualMethods.
...
Follow-up from #1984 .
2014-04-14 13:39:11 -07:00
Matt Brubeck
8c794c6739
Move inline stylesheet parsing out of HTML parser.
...
Instead, use shared code to parse stylesheet content when it is inserted,
whether during parsing or dynamically by script.
Based on work by sanools in #1350 .
2014-04-14 11:14:07 -07:00
Josh Matthews
6388dec996
Add overridable tree binding/unbinding behaviour.
2014-04-10 10:27:32 +02:00
Josh Matthews
ca6cfb5bca
Add support for trait-based virtual methods on Nodes, and use it for before_remove_attr and after_set_attr.
2014-04-10 10:27:28 +02:00
bors-servo
d7f450dbd7
auto merge of #2045 : Manishearth/servo/pub-struct-2044, r=SimonSapin
...
See #2044
2014-04-09 10:40:26 -04:00
Ms2ger
ed18e4c948
Merge Attr::new_ns and Attr::new.
2014-04-08 20:17:15 +02:00
lpy
77941dc996
Move Node.namespaceURI to Element.( fixes #2059 )
2014-04-08 22:13:28 +08:00