Commit graph

77 commits

Author SHA1 Message Date
Ms2ger
b6b2606c96 Make Document::root private, in preparation for removing it as part of making Document a Node. 2013-10-13 14:08:37 +02:00
Ms2ger
04319fdb68 Issue #888 - Node's owner document should never be None. 2013-10-10 10:57:38 +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
0a0599ad9b Rename CacheableWrapper to Reflectable. 2013-10-09 12:03:18 +02:00
Ms2ger
179582d939 Remove unnecessary mutability. 2013-10-06 09:15:38 +02:00
Ms2ger
c93d13b0da Don't require passing a root element to Document::new (needed for issue #888). 2013-10-05 21:42:13 +02:00
Josh Matthews
92f6599854 Wait for any layout tasks to complete in a page tree before a handling a pipeline's exit message. 2013-10-02 01:43:08 -04:00
Brian Anderson
38ea00074c Run script in its own thread to avoid starving other tasks 2013-10-01 15:43:45 -07:00
bors-servo
b7d186dec2 auto merge of #977 : kmcallister/servo/redirect, r=jdm 2013-09-24 12:45:44 -07: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
Keegan McAllister
1c6de361b7 Handle HTTP 3xx redirects
Fixes #973.
2013-09-23 14:50:50 -07:00
Tim Kuehn
5f600f0ec0 fix constellation being inundated with messages from script.
script task sent RendererReadyMsg after every reflow.
now, the renderer sends RendererReady at the appropriate time,
and _only_ if it doesn't have paint permission.
2013-09-20 18:36:26 -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
Tim Kuehn
6c28b5cc9c use spawn_with in lieu of cells 2013-09-19 17:28:49 -04:00
James Graham
29a75daa66 Add support for clearTimeout. 2013-09-19 00:02:41 +01: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
Josh Matthews
21b0fc35b6 Allow image prefetching to occur during parsing when no window or document is present. Fixes #939. 2013-09-13 23:10:31 -07:00
Josh Matthews
7b239bd246 Move border computation into unpruned traversal. Get rid of extraneous explicit initial reflow. Fixes #935. 2013-09-13 16:40:13 -07:00
bors-servo
3c7a837ee6 auto merge of #927 : pcwalton/servo/image-src-set, r=pcwalton
r? @metajack
2013-09-12 18:24:50 -07: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
bors-servo
4494935139 auto merge of #928 : kmcallister/servo/resize, r=pcwalton 2013-09-12 18:00:56 -07:00
Keegan McAllister
5b684659ff Combine resize events for each pipeline and process when layout is idle 2013-09-12 17:09:48 -07:00
Josh Matthews
6bd4306d70 Fix a dynamic borrow error when executing timer callbacks. 2013-09-12 16:58:30 -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
Josh Matthews
4ec428b9d6 Trigger a reflow when nodes are appended and removed from the document. Fixes #907. 2013-09-12 10:17:00 -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
9640324721 Make sandboxed iframes run with different script tasks. 2013-09-11 11:57:40 -07:00
Josh Matthews
da599c6ccf Make the global object be the Window object. Fixes #833. 2013-09-09 10:25:39 -07:00
Josh Matthews
79444596d1 Make querying layout for content boxes an infallible operation. 2013-09-04 11:07:11 -04:00
Tom Schuster
a0d900e1f6 Pass the javscript file url to the evaluate function 2013-08-31 20:07:08 -04:00
Brian Anderson
9624148f18 Merge remote-tracking branch 'origin/master' into HEAD
Conflicts:
	src/components/script/dom/bindings/proxyhandler.rs
	src/components/script/dom/bindings/text.rs
2013-08-29 16:04:52 -07:00
Brian Anderson
1026556477 Update Rust 2013-08-29 15:36:36 -07:00
Josh Matthews
32ed715055 Make window.close() close the window. 2013-08-28 15:48:38 -04:00
Tim Kuehn
14fc16af2e remove commented out code from compositor_layer::from_frame_tree 2013-08-19 19:38:12 -04:00
Tim Kuehn
666c29480e refactor iframe element fields to support sending size to the constellation 2013-08-19 19:11:11 -04:00
Tim Kuehn
86f0aacb3d reorganized constellation.
compositor routes dom events via constellation.
constellation handles iframe sizing and resizing.
2013-08-19 19:11:11 -04:00
Jack Moffitt
dd45751368 Fix macos interators, warnings, and updating submodules. 2013-08-16 14:30:34 -06:00
Keegan McAllister
a2d9810b69 Update Rust version again
This gets us the new runtime.
2013-08-15 13:56:29 -07:00
Keegan McAllister
307f1074d3 For loops and misc changes 2013-08-15 13:56:29 -07:00
Keegan McAllister
be061a9aa0 Library changes 2013-08-15 13:55:40 -07:00
Keegan McAllister
ffe60ea027 Trait changes, and eliminate 'copy' 2013-08-15 13:55:40 -07:00
Brian Anderson
a875b12c22 Don't use 'select'
The new runtime isn't quite mature enough to deal with it, and this
is faster anyway.
2013-08-15 11:37:10 -06:00
Keegan McAllister
e661ce66b6 Fix freeze scope extension warning
Fixes #455 (for now)

Also add a comment about how what we're doing here is unsafe (for reasons that
are mostly unrelated to the warning)
2013-07-31 17:54:26 -07:00
Tim Kuehn
97a60f35e3 add next_subpage_id to Page struct 2013-07-31 13:12:33 -07:00
Tim Kuehn
2348fbf46d added subpage ids to map from iframe to all associated pipelines 2013-07-31 13:12:32 -07:00
Josh Matthews
5546f2105b Generate HTMLDocument bindings. Introduce invariant into generated bindings that associated DOM classes are named the same as their interfaces, so Event and Event_ need to be swapped. 2013-07-30 16:28:02 -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
2b94dd6664 remove unused arg from script_task::handle_navigate_msg
remove unnecessary commented-out code
2013-07-29 15:53:28 -07:00