Commit graph

41 commits

Author SHA1 Message Date
Ms2ger
b90766404c Replace Document::{with_base, with_mut_base} by Document::{document, mut_document}. 2013-10-21 17:57:44 +02:00
Ms2ger
321e0373fa Merge BindingObject and Reflectable. 2013-10-18 17:02:16 +02:00
Ms2ger
25cae74093 Remove unused aTriedToWrap argument. 2013-10-17 16:43:28 +02:00
Ms2ger
da2cf6cbd7 Implement Window::get_cx() to reduce code repetition. 2013-10-13 12:06:32 +02: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
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
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
Tim Kuehn
103cd6255d split script_task::ExitMsg into WindowExitMsg and PipelineExitMsg 2013-09-24 00:15:35 -04:00
Tim Kuehn
99f125bb64 script task only exits when the root pipeline exits 2013-09-24 00:03:52 -04:00
Tim Kuehn
c804db0f93 deactive profiler when not in use; use newtype structs for task chans 2013-09-20 17:25:08 -04:00
bors-servo
7ffcc29d54 auto merge of #955 : kmcallister/servo/bindings, r=metajack 2013-09-18 19:39:47 -07:00
James Graham
29a75daa66 Add support for clearTimeout. 2013-09-19 00:02:41 +01:00
Keegan McAllister
68ddc6b4ab Make DOMString an alias for Option<~str>
Fixes #898.
2013-09-18 14:46:42 -07:00
Josh Matthews
d465abdb1c Make all DOM manipulation wait until it's safe to do so (ie. all reflows for the page have completed). Fix a race where a newly-initiated reflow would be considered complete when receiving the completion notice for the previous reflow. 2013-09-16 23:41:34 -04:00
Patrick Walton
76d288fe62 script: Implement image source setting from script and write a demo for this. 2013-09-12 18:03:11 -07:00
Josh Matthews
8ae725146c Make Window store an @Page instead of a *Page and remove a bunch of unsafe code. 2013-09-12 14:45:47 -07:00
bors-servo
5aa207a7f7 auto merge of #912 : brson/servo/longcat, r=jdm
This also comes with a longcat demo, including about 35k of images that I don't know the copyright status of.
2013-09-11 23:49:02 -07:00
Brian Anderson
42c6a53148 Implement getters and setters for img width and height properties 2013-09-11 22:08:44 -07:00
Josh Matthews
636c30affe Add trace hooks for Window and Document, and remove explicit rooting for the root DOM node. Fixes #901. 2013-09-11 12:18:23 -07:00
Josh Matthews
da599c6ccf Make the global object be the Window object. Fixes #833. 2013-09-09 10:25:39 -07:00
Tom Schuster
e81fed7b58 Implement Navigator 2013-09-05 19:09:10 -04:00
Brian Anderson
1026556477 Update Rust 2013-08-29 15:36:36 -07:00
Keegan McAllister
fb3db6a72d Un-stub timer code 2013-08-15 13:56:29 -07:00
Keegan McAllister
e917ff353b Stub out some things that need changes for newrt
brson and I will work on these next.
2013-08-15 13:56:29 -07:00
Keegan McAllister
be061a9aa0 Library changes 2013-08-15 13:55:40 -07:00
Josh Matthews
c9bc2046f6 Fill out various proxy binding traps as part of making setters work. Add named getter and setter and indexed getter support, as well as proxy object expandos. Fixes #660. 2013-08-03 13:48:09 -04:00
Josh Matthews
a2bdab7989 Generate bindings for Window. 2013-07-30 16:30:46 -04:00
Tim Kuehn
2e6ad0a4a3 fix borrow check failures by reverting to storing *mut Page in window 2013-07-29 20:22:01 -07:00
Tim Kuehn
df5306e358 switched window.page from *mut Page to @mut Page 2013-07-29 14:14:31 -07:00
Tim Kuehn
e9888b299c structural changes to support Iframes 2013-07-29 11:03:17 -07:00
Jack Moffitt
870db39836 Update to latest Rust. 2013-07-09 14:37:53 -06:00
Tim Kuehn
fba7ec423c add pipeline.rs, modularized pipelines communicating with constellation 2013-07-01 11:03:31 -07:00
Brian Anderson
56e5ba1b82 Update for language changes 2013-06-26 13:44:26 -07:00
Tim Kuehn
b5dac3f426 decouple script from compositor
communicate via layout
refactor channel wrappers from *Task --> *Chan

fix merge fallout
2013-06-14 21:46:29 -07:00
Tim Kuehn
7b28462193 Send status messages to the compositor 2013-06-12 11:02:52 -07:00
Patrick Walton
7a435fc6ed Refactor document damage to distinguish it from layout/style damage.
Also, standardize on the name "reflow" instead of "relayout" or "build".
2013-06-04 22:00:33 -07:00
Patrick Walton
bf82bc54f3 Separate the DOM and layout into separate crates. 2013-05-28 17:13:40 -07:00
Renamed from src/components/main/dom/window.rs (Browse further)