Commit graph

33 commits

Author SHA1 Message Date
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
Tim Kuehn
fba7ec423c add pipeline.rs, modularized pipelines communicating with constellation 2013-07-01 11:03:31 -07:00
Seth Fowler
72f5e5f30d Don't send a resize event if the window size didn't change 2013-06-27 19:04:01 -07:00
Brian Anderson
56e5ba1b82 Update for language changes 2013-06-26 13:44:26 -07:00
Tim Kuehn
2253365735 libmsg crate for message interfaces to compositor and engine 2013-06-19 21:31:12 -07:00
Jack Moffitt
ece8791c26 Warning police. 2013-06-17 15:10:41 -06: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
Patrick Walton
204c5b663a Add a spinner for layout 2013-06-12 11:02:56 -07:00
Tim Kuehn
7b28462193 Send status messages to the compositor 2013-06-12 11:02:52 -07:00
Tim Kuehn
ff1178f7ca handle relative url's when clicking 2013-06-12 11:02:51 -07:00
Tim Kuehn
bf4df24521 Provide an interface to the engine for the script task 2013-06-12 11:02:51 -07:00
Tim Kuehn
a53a7f689d Add link following and refactor the profiler. 2013-06-12 11:02:49 -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
8d3b6aefa8 Stop rendering when script queries layout 2013-06-04 11:43:52 -07:00
Patrick Walton
f77eef5988 Basic hit testing functionality 2013-05-30 17:28:08 -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/scripting/script_task.rs (Browse further)