Tim Kuehn
99f125bb64
script task only exits when the root pipeline exits
2013-09-24 00:03:52 -04: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
Tim Kuehn
df5306e358
switched window.page from *mut Page to @mut Page
2013-07-29 14:14:31 -07:00
Tim Kuehn
43491d5b23
navigation bug fix
2013-07-29 13:50:41 -07:00
Tim Kuehn
e9888b299c
structural changes to support Iframes
2013-07-29 11:03:17 -07:00
Keegan McAllister
dc9f7560b0
Reflow and redisplay after script timers fire
...
We don't know what the script changed. This will be less painful with
incremental layout.
Fixes a crash from calling reflow() with self.damage = None.
2013-07-24 16:52:48 -07:00
Keegan McAllister
4fd6ad3d5c
Move script local_data_pop out of dtor
...
Fixes #570 , which was caused by a second reentrant call to the dtor.
2013-07-19 16:47:57 -07:00
Tim Kuehn
4815d8fccd
refactored url handling code in script task to be more idiomatic
2013-07-11 13:16:15 -07:00
Tim Kuehn
8b8d2f5a4b
scripts from inactive pipelines resize upon navigating to their pages
2013-07-10 15:18:56 -07:00
Jack Moffitt
870db39836
Update to latest Rust.
2013-07-09 14:37:53 -06:00
Jack Moffitt
e0e5e1a2a7
Replace glut with glfw.
...
Also fixes initial window size to get based on the windowing code instead of
being hardcoded everywhere. This code works on HiDPI displays, but does not
appropriately scale the output up yet.
2013-07-04 12:54:30 -06:00
Tim Kuehn
c9c6cb3bf5
new token-permissions model, and compositor filters paint messages based on id
2013-07-02 17:26:46 -07:00
Tim Kuehn
a6eaffcd93
forward/back navigation with shift+backspace and backspace
...
script caches last loaded url -- currently no caching policy
naive caching of render layers for near-instant forward/back
handling evicted pipelines is currently broken
2013-07-02 17:26:30 -07:00
Tim Kuehn
d17a1f2ad7
rename engine --> constellation
2013-07-01 11:03:31 -07:00