Commit graph

5232 commits

Author SHA1 Message Date
Ms2ger
da2cf6cbd7 Implement Window::get_cx() to reduce code repetition. 2013-10-13 12:06:32 +02:00
Ms2ger
f4edbb6b2e Remove some type variables and an explicit dereference. 2013-10-12 16:08:45 +02:00
Ms2ger
438d121cd8 Implement DocumentFragment. 2013-10-12 15:14:09 +02:00
Keegan McAllister
3f11523610 Add CONTRIBUTING.md
Fixes #1026
2013-10-11 16:52:55 -07:00
Keegan McAllister
e0fc4d252e Make rust-png depend on libpng
Fixes #1014.
2013-10-11 16:52:55 -07:00
Keegan McAllister
346591e41a configure: Prevent in-tree builds
Fixes #251.
2013-10-11 16:52:55 -07:00
Keegan McAllister
5289d35145 Fix eviction in MonoCache::find_or_create 2013-10-11 13:50:58 -07:00
bors-servo
fc9fdf30a6 auto merge of #1018 : ttaubert/servo/nodelist, r=jdm
This should fix #652 and #775. I'm not sure if that's all that is needed to properly implement NodeList? Should we add tests somewhere? Sorry for any stupid stuff I might have done :)

r? @jdm
2013-10-11 07:51:59 -07:00
Tim Taubert
9fe9145be4 implement NodeList and consolidate common scope and context retrieval 2013-10-11 07:34:38 -07:00
bors-servo
bc3eeb6f1c auto merge of #1036 : Ms2ger/servo/createComment, r=jdm 2013-10-11 03:53:14 -07:00
Ms2ger
98cdf5c118 Implement Document.createComment. 2013-10-11 12:40:35 +02:00
bors-servo
3690c375cd auto merge of #1037 : kmcallister/servo/data-url, r=jdm 2013-10-11 01:28:08 -07:00
Keegan McAllister
68e4e1c9a2 Add tests for data: URLs 2013-10-10 19:24:57 -07:00
Keegan McAllister
a9ed37189b Comment out some failing tests for now
I'll open a ticket about these and make sure that they and/or the code under
test get fixed eventually.
2013-10-10 18:18:39 -07:00
Keegan McAllister
b33af8852e Fix bitrotten tests 2013-10-10 18:18:39 -07:00
Keegan McAllister
bb4b9d6195 Run tests from non-main crates
Fixes #1035
2013-10-10 18:18:39 -07:00
Keegan McAllister
4bd1ea8760 Makefile: Consolidate lib crate rules 2013-10-10 18:18:39 -07:00
Keegan McAllister
10bc45226d Add a data: URL test page 2013-10-10 18:18:39 -07:00
Keegan McAllister
2aa05e8d23 make_url: Drop whitespace within data: URLs 2013-10-10 18:18:39 -07:00
Keegan McAllister
3824a01dc5 Add support for data: URLs
Fixes #778
2013-10-10 18:18:39 -07:00
Keegan McAllister
f73e48b32f Extract content type and character set from HTTP response headers
We don't use this information anywhere, yet.
2013-10-10 18:18:39 -07:00
Keegan McAllister
ec2111edbf Use rust-http typed headers 2013-10-10 18:18:39 -07:00
Keegan McAllister
48af4e53a9 Refactor resource loader protocol to send metadata first 2013-10-10 18:18:39 -07:00
Keegan McAllister
cb67a50a95 Fix indentation in URL loaders 2013-10-10 18:18:39 -07:00
Keegan McAllister
05901f8761 Simplify ResourceTask creation 2013-10-10 18:18:39 -07:00
bors-servo
368d512b99 auto merge of #1034 : Ms2ger/servo/nodeName-Value, r=kmcallister 2013-10-10 14:10:36 -07:00
Ms2ger
cfc9f4956a Reindent some match expressions. 2013-10-10 23:05:30 +02:00
Ms2ger
a5233f2bc4 Support Node.nodeType and Node.nodeValue. 2013-10-10 22:09:34 +02:00
bors-servo
9d04be98e5 auto merge of #1032 : bholley/servo/unsafe_reflector_casts, r=jdm
r? @jdm
2013-10-10 04:28:00 -07: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
e6be738d97 Fix infinite-looping reflector() implementation for WindowProxy. 2013-10-10 13:11:24 +02:00
bors-servo
b0ac5911ec auto merge of #1027 : Ms2ger/servo/owner-document, r=jdm
I'm not happy about `is_in_doc`, but that should improve once @jdm lands his document-as-node changes.
2013-10-10 02:27:59 -07:00
Ms2ger
40106841f8 Address review comment and add fixmes. 2013-10-10 10:57:38 +02:00
Ms2ger
04319fdb68 Issue #888 - Node's owner document should never be None. 2013-10-10 10:57:38 +02:00
bors-servo
59d2d345c8 auto merge of #1013 : huonw/servo/text-iter, r=pcwalton
And 3 other minor clean-ups: removing a redundant `if`, a redundant function call, and using `slice_from` where it is possible.
2013-10-09 16:19:24 -07:00
bors-servo
46e81f6caa auto merge of #1031 : luisbg/servo/master, r=kmcallister
HTMLFormElementTypeId, ElementNodeTypeID and Node are not used anymore in htmlformelement.rs

The compiler was giving a warning error about unused imports.
2013-10-09 13:37:16 -07:00
Luis de Bethencourt
5801f948e3 Remove unused imports in htmlformelement 2013-10-09 16:33:04 -04:00
bors-servo
89dd9dd8eb auto merge of #1028 : bholley/servo/reflector_rename, r=jdm
There are still a few instances of "wrapper"-ish names scattered throughout the code, but this is a good start.
2013-10-09 05:40:12 -07:00
Bobby Holley
5ed8b9e83f Rename |wrapper| to |reflector_| in Reflectable implementations for DOM objects. 2013-10-09 12:21:38 +02:00
Bobby Holley
92e91c58da Rename the |wrapper| field in Reflector. 2013-10-09 12:18:17 +02:00
Bobby Holley
549ac6a29b Rename some local variables and shorten some lines.
This was done manually, and might benefit from a more careful review.
2013-10-09 12:15:56 +02:00
Bobby Holley
622aa76515 Rename WrappableDocument stuff. 2013-10-09 12:13:18 +02:00
Bobby Holley
6bf740d967 Rename {get,set}_wrapper to {get,set}_jsobject. v1 2013-10-09 12:13:18 +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
bors-servo
77f8dba48b auto merge of #1016 : Ms2ger/servo/ownerdoc, r=jdm 2013-10-08 05:16:01 -07:00
bors-servo
9cd2494d5a auto merge of #1023 : Ms2ger/servo/cleanup, r=jdm 2013-10-07 07:52:04 -07:00
Ms2ger
388f685549 Cleanup some code. 2013-10-07 16:30:34 +02:00
Ms2ger
e43505d641 Remove Document::set_root.
All callers have an AbstractDocument, and this makes my life easier later.
2013-10-07 15:17:47 +02:00