Matt Brubeck
fe123ad07c
Switch to synchronous script loading
...
This removes the old code for asyncronously loading scripts during HTML
parsing and then executing them afterward.
Fixes #3356 .
2014-10-29 14:31:47 -07:00
Matt Brubeck
65a0d1fe9a
Infrastructure for synchronous script loading
...
This implements the parts of the "prepare a script element" algorithm that are
required for synchronous scripts. It also adds some infrastructure for future
support of the `async` and `defer` attributes.
2014-10-29 14:30:42 -07:00
Keegan McAllister
49234484d6
Ignore the HTML parser's borrow flag in GC tracing
...
Adds some other dynamic checks in debug builds.
2014-10-24 16:27:37 -07:00
Keegan McAllister
6ec0939a22
Dynamically check DOMRefCell access from layout in debug builds
2014-10-24 16:27:37 -07:00
Ray Clanan
85f746f9b9
Rename untraceable!() to no_jsmanaged_fields!(). References issue #3671
2014-10-23 21:33:32 -04:00
Josh Matthews
539c21f380
Implement Document.readyState. Prevent iframes from notifying the compositor after the initial parse. Fixes #1720 . Fixes #3738 .
2014-10-23 10:55:59 -04:00
Tetsuharu OHZEKI
072bb5b965
Use DOMRefCell for ScriptTask.
2014-10-22 10:01:01 +09:00
Keegan McAllister
9da7679367
Use html5ever for HTML parsing
2014-10-16 13:06:34 -07:00
Mukilan Thiyagarajan
0d7e13f646
Issue #3236 - Implement timers (setTimeout/setInterval) for workers
2014-10-16 05:59:44 +05:30
Tim Taubert
5080c0d86e
Make Event::new take enumerated values instead of booleans ( fixes #3643 )
2014-10-11 16:57:00 +02:00
Manish Goregaokar
b28a4c8858
Implement extremely basic form submission ( fixes #3554 )
2014-10-11 16:00:16 +05:30
bors-servo
2f9808e130
auto merge of #3626 : Manishearth/servo/form-prep, r=jdm
...
Framework for form submission
2014-10-09 16:00:34 -06:00
Clark Gaebel
d12c6e7383
Incremental Style Recalc
...
This patch puts in the initial framework for incremental reflow. Nodes' styles
are no longer recalculated unless the node has changed.
I've been hacking on the general problem of incremental reflow for the past
couple weeks, and I've yet to get a full implementation that actually passes all
the reftests + wikipedia + cnn. Therefore, I'm going to try to land the different
parts of it one by one.
This patch only does incremental style recalc, without incremental flow
construction, inline-size bubbling, reflow, or display lists. Those will be coming
in that order as I finish them.
At least with this strategy, I can land a working version of incremental reflow,
even if not yet complete.
r? @pcwalton
2014-10-09 12:55:21 -04:00
Tim Taubert
35f8270c64
Remove unnecessary deref()
s ( fixes #3586 )
2014-10-09 15:01:54 +02:00
Manish Goregaokar
ad16c52a6b
Allow passing a method, request body, and headers to the pipeline in LoadUrlMsg
2014-10-09 14:09:29 +05:30
bors-servo
06489fcc42
auto merge of #3571 : Ms2ger/servo/rewrite-js-url, r=jdm
...
This should make it clearer that we always pass a URL to Document::new, and
avoids an unnecessary unwrap() call.
2014-10-06 12:21:30 -06:00
bors-servo
f60e985e6b
auto merge of #3570 : Ms2ger/servo/rc-scripttask, r=metajack
...
The ScriptTask is owned by the proc in ScriptTaskFactory::create.
We started using a managed box for what would eventually become ScriptTask in
d21d27e086
.
2014-10-06 11:00:37 -06:00
Manish Goregaokar
707a2870fa
Remove Traceable/Untraceable from page.rs
2014-10-05 22:53:50 +05:30
Ms2ger
31f8100b9d
Cleanup URL handling in ScriptTask::load a bit.
...
This should make it clearer that we always pass a URL to Document::new, and
avoids an unnecessary unwrap() call.
2014-10-04 15:19:08 +02:00
Ms2ger
208afda890
Stop reference-counting the ScriptTask.
...
The ScriptTask is owned by the proc in ScriptTaskFactory::create.
We started using a managed box for what would eventually become ScriptTask in
d21d27e086
.
2014-10-04 13:14:23 +02:00
Ms2ger
4cc24e727b
Clear the fragment_name field when resizing.
...
This reinstates the behaviour from before the change in
a1bf49c1ce
.
2014-10-02 18:07:41 +02:00
Ms2ger
7508ca94b3
Remove the fragment_node field from Page ( fixes #3543 ).
...
Since Page isn't reflected, it cannot be rooted, and pointers to JS-managed
objects inside it are not guaranteed to be traced. This may cause the pointer
to become dangling.
2014-10-02 15:31:26 +02:00
Josh Matthews
08cac68d5a
Check if the immediate node is an element before looking at ancestors when clicking, and flush pending layout changes after dispatching the event.
2014-10-01 15:03:15 -04:00
Simon Sapin
b3245fa407
Upgrade to rustc d2b30f7d3 2014-09-23
2014-09-29 17:41:45 +01:00
Ms2ger
a12f2b9f06
Simplify the Page URL handling in handle_resize_inactive_msg.
...
This also makes it more obvious what's actually happening.
2014-09-27 13:56:33 +02:00
Manish Goregaokar
cc44a3b064
Use JSTraceable everywhere
2014-09-24 05:44:49 +05:30
Keegan McAllister
dc86e83654
Eliminate warnings
2014-09-20 13:00:55 -07:00
Keegan McAllister
a640a7c5c3
Upgrade to rustc 0.12.0-pre (4d2af3861 2014-09-17 15:51:11 +0000)
2014-09-20 13:00:06 -07:00
Cameron Zwarich
4fa8725111
First steps of &JSRef -> JSRef conversion
...
Replace &JSRef with JSRef in the bulk of the generated code. This will
remove a level of indirection throughout all DOM code.
This patch doesn't change methods implemented on JSRef<T> to take `self`
rather than `&self`, and it leaves a few other uses of &JSRef, but those
changes can be made incrementally.
2014-09-19 13:39:17 -07:00
Josh Matthews
fae7ce3c1d
Retrieve some basic layout properties for nodes to make the box model somewhat useful.
2014-09-18 15:07:11 -04:00
Josh Matthews
fa57fe890b
Enable real DOM inspector support.
2014-09-18 15:06:40 -04:00
Josh Matthews
c31e2f928d
Avoid selecting on the devtools port if no devtools server exists.
2014-09-18 15:06:40 -04:00
Josh Matthews
cdb4037ca2
Enable executing JS snippets in the context of the main Servo window and viewing the responses from the Firefox remote console.
2014-09-18 15:06:40 -04:00
Josh Matthews
f0f7e98dfa
Dump initial prototype of devtools server into the build. Expect lies if you try to use it for anything real.
2014-09-18 15:06:40 -04:00
Josh Matthews
75caade828
Merge pull request #3358 from jdm/thespicemustnotreflow
...
Delay initiating layout operations for as long as possible.
2014-09-17 19:09:31 -04:00
Matt Brubeck
1ae3bda172
Move link rel=stylesheet fetching to layout task
...
Fixes #3346 .
2014-09-16 07:12:01 -07:00
Josh Matthews
2bd93ed070
Delay initiating layout operations for as long as possible.
2014-09-15 23:16:45 -04:00
Jack Moffitt
b605929134
Handle iframe.src with a javascript protocol URL.
...
This change prevents us from crashing on Amazon and other pages with
iframe.src="javascript:foo".
2014-09-15 10:02:02 -06:00
Glenn Watson
102e06f46b
Handle AttachLayout before ResizeMsg. Fixes #3333 for yahoo static suite.
2014-09-15 12:30:05 +10:00
Bryan Bell
c182308350
Store Compositor ReadyState per-pipeline
...
Instead of storing a single ReadyState, store one per pipeline and
track the earliest one.
2014-09-12 10:47:50 -07:00
Glenn Watson
7503033e57
Coalesce pending reflow messages so they don't queue up.
2014-09-12 15:49:57 +10:00
Jack Moffitt
c6ab60dbfc
Cargoify servo
2014-09-08 20:21:42 -06:00