Commit graph

4747 commits

Author SHA1 Message Date
Martin Robinson
12097703ba Prevent child layers from overriding root background color
The first layer implicitly provides the size of the page, but child
layer background colors can still improperly override the body
background color. This commit ensures that layer background colors only
apply to layers with the same id and pipeline id. Additionally the root
layer's unrendered color is defined by the first layer's background
color, just like for size.
2014-05-30 13:16:24 -07:00
bors-servo
da896b8299 auto merge of #2515 : saneyuki/servo/raw, r=jdm
Fix #2511

@jdm r?
2014-05-30 13:16:09 -04:00
bors-servo
39e3c64ead auto merge of #2519 : Ms2ger/servo/exn, r=jdm 2014-05-30 12:22:02 -04:00
Ms2ger
b448972d52 Throw DOMExceptions where appropriate (fixes #2518). 2014-05-30 18:14:02 +02:00
Tetsuharu OHZEKI
106627e6eb "JS<T>::from_raw" should accept "*T" instead of "*mut T" 2014-05-31 01:10:19 +09:00
bors-servo
e511c04935 auto merge of #2490 : saneyuki/servo/js, r=jdm
This only change to make `JS<T> ` to a POD type about #1854, except using `Cell`/`RefCell` for interior mutability.

Fix #1854

@jdm r?
2014-05-29 16:21:57 -04:00
Tetsuharu OHZEKI
a1bf49c1ce Use Cell instead of RefCell for Page.fragment_node. 2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
b4463c1fb2 Use Cell/RefCell for interior mutability of Node. 2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
1f8eda957d Use Cell/RefCell for interior mutability of Window. 2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
fa286fb062 Use Cell/RefCell for interior mutability of XMLHttpRequest. 2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
4c167480d7 Use Cell/RefCell for interior mutability of UIEvent. 2014-05-30 03:54:24 +09:00
Tetsuharu OHZEKI
aaa8c838d2 Use Cell/RefCell for interior mutability of NodeList, Performance, TestBinding, and ValidityState. 2014-05-30 03:54:23 +09:00
Tetsuharu OHZEKI
2215e2ca80 Use Cell/RefCell for interior mutability of MouseEvent. 2014-05-30 03:54:23 +09:00
Tetsuharu OHZEKI
c03bdac6f0 Use Cell/RefCell for interior mutability of FormData, BlobData. 2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
f78e561746 Use Cell/RefCell for interior mutability of Event. 2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
92da2f16fc Implement OptionalSettable for 'Cell<Option<JS<U>>>'. 2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
b0239b5a5a Use Cell/RefCell for interior mutability of Element. 2014-05-30 03:53:07 +09:00
Tetsuharu OHZEKI
6d9dcd087a Make 'Cell<Option<JS<T>>>' traceable. 2014-05-30 03:41:06 +09: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
Tetsuharu OHZEKI
5ae7c4cbb1 Make 'RefCell<Vec<JS<T>>>' traceable. 2014-05-30 03:38:41 +09:00
Tetsuharu OHZEKI
bf05e6a9e2 Make 'Cell<JS<T>>' traceable. 2014-05-30 03:38:41 +09:00
Tetsuharu OHZEKI
da703d6a80 JS<T> contains '*T' instead of RefCell. 2014-05-30 03:38:40 +09:00
bors-servo
9690fa8234 auto merge of #2509 : zwarich/servo/remove-concurrent-map, r=pcwalton
ConcurrentHashMap is unused and has a lot of uses of transmute_mut, so
it's best to remove it.
2014-05-29 14:19:02 -04:00
Tetsuharu OHZEKI
3e558fdcb1 JSRef<T> & Root<T> contains '*T' instead of RefCell. 2014-05-30 03:18:40 +09:00
bors-servo
43b647feff auto merge of #2508 : SimonSapin/servo/direction, r=pcwalton 2014-05-29 13:46:05 -04:00
Cameron Zwarich
afeaa4bb8e Remove ConcurrentHashMap.
ConcurrentHashMap is unused and has a lot of uses of transmute_mut, so
it's best to remove it.
2014-05-29 10:38:32 -07:00
Simon Sapin
f4ed464149 Add the 'direction' property and fix one RTL layout corner case. 2014-05-29 18:01:46 +01:00
bors-servo
02e92d0457 auto merge of #2506 : Manishearth/servo/clickevent-warning, r=jdm 2014-05-29 12:52:01 -04:00
bors-servo
468752fd4d auto merge of #2505 : Manishearth/servo/events-events-events, r=jdm
events events events!

Blocks #2282
2014-05-29 12:19:28 -04:00
Manish Goregaokar
6f728cb2ca Enable inline event handlers for XHR, and add most progressevent calls 2014-05-29 21:39:15 +05:30
bors-servo
25920d8a50 auto merge of #2503 : metajack/servo/ext-deps-redux, r=mbrubeck
@mbrubeck r?
2014-05-29 10:40:10 -04:00
Manish Goregaokar
01ade04e01 Fix unused_result warning in script_task 2014-05-29 19:31:42 +05:30
bors-servo
43beda87b2 auto merge of #2504 : zwarich/servo/dont-implement-ne, r=jdm 2014-05-29 01:22:05 -04:00
Cameron Zwarich
abaf05a96a Don't implement ne for ImageResponseMsg, since it matches the default. 2014-05-28 21:21:10 -07:00
bors-servo
547ad2dc48 auto merge of #2497 : bjz/servo/rename-box-type, r=pcwalton
I tried to make sure to keep 'box' where it made sense, and alter comments so they still make sense.

r? @pcwalton
2014-05-28 20:34:06 -04:00
bors-servo
3a9552b5de auto merge of #2501 : mbrubeck/servo/host, r=pcwalton
Fixes broken requests caused by #2493.
2014-05-28 19:52:08 -04:00
Jack Moffitt
98b35721de Update submodules for EXT_DEPS dependency tracking. 2014-05-28 17:44:11 -06:00
Brendan Zabarauskas
4e27045687 Improve line index documentation 2014-05-28 16:35:15 -07:00
Brendan Zabarauskas
c6a60276d1 Improve naming of structs in inline.rs 2014-05-28 16:35:15 -07:00
Brendan Zabarauskas
bf9935abbe Rename box_.rs to fragment.rs 2014-05-28 16:35:15 -07:00
Brendan Zabarauskas
3ffce02b88 Rename functions, fields and adjust comments to use fragment instead of box
I tried to make sure to keep 'box' where it made sense, and alter comments so they still make sense.
2014-05-28 16:35:15 -07:00
Brendan Zabarauskas
c5fced4390 Convert usages of Box in type identifiers to Fragment 2014-05-28 16:35:15 -07:00
Brendan Zabarauskas
a578943b3c Prefix fragment types in inline.rs with Inline
This is to reduce confusion once we rename `servo::box_::Box` to `servo::fragment::Fragment`.
2014-05-28 16:16:30 -07:00
bors-servo
14ae870d75 auto merge of #2500 : bjz/servo/workqueue, r=pcwalton
cc. @pcwalton
2014-05-28 19:16:05 -04:00
Matt Brubeck
dda0a0afb3 Don't overwrite the "Host" request header
Fixes broken requests caused by #2493.
2014-05-28 16:15:06 -07:00
Brendan Zabarauskas
0761107daa Make the workqueue's type parameter names less terrible 2014-05-28 16:13:43 -07:00
bors-servo
23a63ef4ae auto merge of #2499 : mbrubeck/servo/unpub, r=metajack 2014-05-28 18:31:07 -04:00
Brendan Zabarauskas
69a3d100ad Make some scary things in the workqueue module private 2014-05-28 15:27:53 -07:00
bors-servo
50c2af8ef1 auto merge of #2478 : SimonSapin/servo/style-getters, r=metajack
This isolates layout code from upcoming refactoring in properties.rs.mako.
2014-05-28 17:49:05 -04:00
Matt Brubeck
418d9d2e44 Remove unnecessary pubs from script_task 2014-05-28 10:21:01 -07:00