Ms2ger
364256e359
Replace Node::{with_base, with_mut_base} by Node::{node, mut_node}.
2013-10-21 15:58:16 +02:00
bors-servo
accec9c113
auto merge of #1098 : jdm/servo/borrow-fix, r=metajack
...
Needed for #1067 .
2013-10-21 05:57:59 -07:00
bors-servo
16eb557978
auto merge of #1095 : Ms2ger/servo/FormData, r=metajack
2013-10-21 05:07:03 -07:00
Josh Matthews
fda77aa36b
Eagerly reflect the navigator object. Fixes #1042 .
2013-10-21 12:11:14 +02:00
Ms2ger
9f84c90754
Create FormData reflectors eagerly.
2013-10-19 22:34:25 +02:00
bors-servo
5c725b31af
auto merge of #1025 : saneyuki/servo/attr, r=metajack
2013-10-18 20:43:03 -07:00
bors-servo
8dd462c38c
auto merge of #1091 : marcoscaceres/servo/master, r=jdm
2013-10-18 19:22:08 -07:00
bors-servo
2e1cc08413
auto merge of #1090 : Ms2ger/servo/blob-eager-binding, r=jdm
2013-10-18 18:55:13 -07:00
Lars Bergstrom
8e669a3ed5
We were removing the Window from TLS and thus destroying it after terminating the
...
windowing system, which caused an error due to calling a glfw function when it
was not inititalized.
2013-10-18 20:23:33 -05:00
bors-servo
8f7f70cb5c
auto merge of #1087 : SimonSapin/servo/newnewcss, r=kmcallister
...
This is still not the big switch yet, but preparatory changes contained to the 'style' crate.
The current status of the actual port can be seen here: https://github.com/SimonSapin/servo/compare/newnewcss...break-all-the-things (moving as I push and rebase stuff.)
2013-10-18 14:25:34 -07:00
Marcos Caceres
faf53fd05c
Implemention of HTMLMainElement
2013-10-18 22:03:58 +01:00
Simon Sapin
ec711dac78
CSS: fix tests.
2013-10-18 20:57:16 +01:00
Ms2ger
40fde80e1a
Implement the no-argument Blob constructor.
2013-10-18 19:30:32 +02:00
Ms2ger
9046085506
Make Blob create its binding eagerly.
2013-10-18 19:28:21 +02:00
Simon Sapin
168261074c
CSS: Make sure computed values implement Eq and Clone.
2013-10-18 18:06:51 +01:00
Simon Sapin
6178451ce0
CSS: Add a ComputedValues::resolve_color() helper, for currentColor.
2013-10-18 17:23:22 +01:00
Simon Sapin
acb11343ce
Remove @pointers from Stylesheet to make it Sendable
...
… at the cost some extra copying.
This fixes #1081 .
2013-10-18 17:22:42 +01:00
bors-servo
284ad5ee8e
auto merge of #1086 : Ms2ger/servo/GetParentObject, r=jdm
2013-10-18 08:13:05 -07:00
Ms2ger
321e0373fa
Merge BindingObject and Reflectable.
2013-10-18 17:02:16 +02:00
Tetsuharu OHZEKI
41dda86557
Enable to update Element's attributes.
2013-10-19 00:00:43 +09:00
Tetsuharu OHZEKI
ecc68a5001
Add the test about Element attributes.
2013-10-19 00:00:43 +09:00
bors-servo
19c1b023e0
auto merge of #1085 : Ms2ger/servo/wrap_shared, r=jdm
2013-10-18 07:19:10 -07:00
Ms2ger
f585d218cb
Remove unused DerivedWrapper implementations.
2013-10-18 16:13:35 +02:00
Ms2ger
3da1a206d8
Remove DerivedWrapper::wrap_shared, as it's unused.
2013-10-18 15:56:35 +02:00
bors-servo
38cea1b2d5
auto merge of #1082 : kmcallister/servo/misc, r=jdm
2013-10-17 20:13:07 -07:00
Keegan McAllister
8bd9be7240
Add a spawn_with! macro and clean up some spawns
2013-10-17 19:51:50 -07:00
Keegan McAllister
5b1fede394
Factor out a convenience function load_whole_resource
...
Also remove an unnecessary spawn in js_script_listener, and remember the final
script URL after redirects.
2013-10-17 19:28:43 -07:00
Keegan McAllister
1cd5d9179d
Remove special-casing of URLs ending in ".js"
...
This was a very old (May 2012) testing feature which used
std::io::read_whole_file rather than our normal resource-loader mechanism.
We can implement javascript: URLs later.
2013-10-17 19:28:43 -07:00
Keegan McAllister
377a76ab1b
Enable DOMParser test case
...
Now that #1071 is fixed.
2013-10-17 19:28:43 -07:00
Keegan McAllister
1e4d3e2661
Print GLFW errors
2013-10-17 19:28:43 -07:00
Keegan McAllister
2babc8dde1
Provide a useful error message when we fail to create the GLFW window
2013-10-17 18:16:41 -07:00
bors-servo
ebe1c1353c
auto merge of #1077 : kmcallister/servo/jsstr, r=jdm
...
This doesn't resolve the big questions of how Servo will represent strings; it's just about doing the conversion correctly for our existing types.
2013-10-17 16:34:30 -07:00
Keegan McAllister
ff24707771
Fix broken testcase in rust-mozjs
2013-10-17 15:42:40 -07:00
Simon Sapin
e30a950e40
Add supported border styles to the CSS parser.
2013-10-17 22:45:20 +01:00
Simon Sapin
6ddc2c37d1
Add parsing a stylesheet form an iterator, a style attr form a string.
2013-10-17 22:44:55 +01:00
Keegan McAllister
f3533ecfc1
Update comment with spec link
2013-10-17 13:04:34 -07:00
Keegan McAllister
5f14ee617b
Check for allocation failure in domstring_to_jsval
2013-10-17 12:59:05 -07:00
bors-servo
79f4d9a47f
auto merge of #1080 : Ms2ger/servo/get_jsobject-cast, r=jdm
2013-10-17 10:40:27 -07:00
Ms2ger
f58c7874b2
Remove an unnecessary cast::transmute call.
2013-10-17 19:35:53 +02:00
bors-servo
c14c2cc63f
auto merge of #1066 : Ms2ger/servo/priv-owner-doc, r=jdm
...
When `Document` is a `Node`, we can only set its `owner_doc` after creating the `AbstractDocument`, and thus the `Document`, and thus the `Node`; i.e., when creating the `Node`, the `AbstractDocument` can't exist yet. That means that we'll need to turn `owner_doc` back into an `Option`. We don't want to expose that to everyone, though, so this adds encapsulation so we'll be able to just `unwrap` in the `owner_doc()` function rather than at all call sites.
2013-10-17 09:49:20 -07:00
Ms2ger
c08e4fe36b
Make Node.owner_doc private.
2013-10-17 18:44:26 +02:00
Simon Sapin
a4c2e9dcf1
CSS: rexport types and variants for computed values.
2013-10-17 17:38:33 +01:00
bors-servo
34f89b27b3
auto merge of #1078 : Ms2ger/servo/triedToWrap, r=jdm
2013-10-17 08:19:11 -07:00
Ms2ger
25cae74093
Remove unused aTriedToWrap argument.
2013-10-17 16:43:28 +02:00
Keegan McAllister
591ded06cb
Test non-ASCII tag names
2013-10-16 16:18:23 -07:00
Keegan McAllister
2c302a4627
Convert between JS and Rust strings in a way that handles Unicode
...
This doesn't handle invalid UTF-16 and may not be efficient. It's just a small
change to make things better until we decide what we're doing about strings in
the long run.
Fixes #1068 .
2013-10-16 16:18:12 -07:00
bors-servo
6db57e6f72
auto merge of #1075 : SimonSapin/servo/newnewcss, r=kmcallister
...
I believe this is all the preparatory work discussed in #1006 and #1057 : The new 'style' crate implements the whole style system (including parsing, matching and cascading) and only depends on cssparser and util, so that gfx, script and main can all depend on it.
Next: porting the layout code to this. (Really, this time! I think.)
2013-10-16 15:37:42 -07:00
Simon Sapin
a509755447
Failing for a blank line before the license, really?
2013-10-16 23:28:36 +01:00
Keegan McAllister
279ae53b7b
Pass scripts as ~str to support non-ASCII string literals etc.
...
Of course scripts on the Web are not always encoded as UTF-8 and we will have
to deal with that at some point.
2013-10-16 14:59:05 -07:00
Simon Sapin
b0f694d5b0
CSS: Use libutil’s traits in Selector matching to not depend on libscript.
2013-10-16 20:20:29 +01:00