bors-servo
4f3feed2be
auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdm
2015-03-06 21:48:50 -07:00
Adenilson Cavalcanti
618f56410d
Implements reflow events debugging.
...
Start servo with -Z relayout-event and you should have
reflow events printed to the terminal.
2015-03-06 12:27:18 -08:00
Guro Bokum
bf26d61d5e
ScriptTask::mouse_over_targets is not traced #4985
2015-03-06 20:22:41 +07:00
Adenilson Cavalcanti
a31d3d7f70
Due to changes on Page/Window interfaces, we no longer have use
...
for flush_layout().
2015-03-04 11:39:29 -08:00
Josh Matthews
1fb12b11f4
Remove the newly-created Page from the tree if loading fails.
2015-03-03 16:25:40 -05:00
Josh Matthews
4972b623e1
Separate disposing of layout data from the GCing of the DOM object reflectors. Change the order of operations when shutting down the script task to ensure that Window globals aren't used after they've been GCed.
2015-03-03 16:25:40 -05:00
Josh Matthews
c816975750
Documentation and cleanup.
2015-03-03 16:25:40 -05:00
Josh Matthews
e2c4f5ed67
Move everything unrelated to the frame tree out of Page and into Document or Window. Reduce the API surface of Page to a bare minimum to allow for easier future removal.
2015-03-03 16:25:40 -05:00
Josh Matthews
d9f04180a5
Split page load into separate network and parsing stages. Delay Page creation until the load is finished. Make session history traversal simply activate existing pipelines, rather than potentially loading them from the network.
2015-03-03 16:25:40 -05:00
Ms2ger
fde91b19ff
Remove unused import from script_task.
2015-02-28 22:03:40 +01:00
Guro Bokum
94e7f89524
Move body of ScriptTask::handle_mouse_move_event into a method on #5073
2015-02-28 12:26:46 +07:00
Keith Yeung
d79e422a8f
Moved dispatch_key_event method from script_task.rs to document.rs, fixes #4982
2015-02-26 19:14:17 +08:00
Glenn Watson
93088e84f0
If root html element contains "reftest-wait" class, don't mark document as ready until it's removed.
...
This allows reftests to perform tests for incremental layout and other bugs that require rendering multiple frames.
2015-02-26 13:01:12 +10:00
Dae-seon Moon
d7fab117c2
Remove ScriptMsg::Navigate ( fixes #4948 ).
2015-02-25 15:25:02 +01:00
bors-servo
a3ea3eed47
auto merge of #4960 : pkondzior/servo/add-script-timers-suspend-resume-functionality, r=jdm
...
Adds free/thaw methods to script_task that let you send suspend/resume messages to web content timers. Fixes #4907
2015-02-23 21:45:46 -07:00
Pawel Kondzior
c2961c94b4
Add thaw/freeze messages that can suspend/resume webcontent timers #4907
2015-02-24 05:33:27 +01:00
bors-servo
576158d08d
auto merge of #4959 : glennw/servo/fix-hover, r=jdm
...
Specifically:
- Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs.
- Send the mousemove event after all the hover states have been set correctly.
- Correctly handle removing hover state from elements when mouse is not over any elements.
- Correctly detect when a reflow is required (previous code failed in several edge cases).
2015-02-23 19:18:51 -07:00
Keith Yeung
7162c872de
script_task.rs now utilizes hyper's LastModified header, removed old implementation ( fixes #4986 )
2015-02-23 04:19:14 +08:00
bors-servo
f1f8265449
auto merge of #4956 : psdh/servo/interfail, r=jdm
...
Fixes #4923
2015-02-21 12:51:44 -07:00
Prabhjyot Singh Sodhi
cc48797999
Fixing Intermittent failure in pages with timers
...
Fixes #4923
2015-02-22 00:27:16 +05:30
bors-servo
939b13f436
auto merge of #5007 : Ms2ger/servo/warnings, r=saneyuki
2015-02-21 11:33:46 -07:00
Ms2ger
b5b58bba24
Remove unused imports.
2015-02-21 18:46:29 +01:00
Ms2ger
226e059370
Cleanup ScriptTask::load.
2015-02-21 18:21:26 +01:00
Tetsuharu OHZEKI
749ebbba71
Move DocumentProgressHandler to document.rs.
2015-02-22 00:29:05 +09:00
Keith Yeung
b855bc4716
Changed js_runtime to be of type *mut JSRuntime
2015-02-21 20:01:27 +08:00
Keith Yeung
c7ddab2efb
Removed unused crates
2015-02-21 18:09:30 +08:00
Keith Yeung
e715f0958b
Moved handle_click_event from script_task.rs to document.rs
2015-02-21 17:58:23 +08:00
Glenn Watson
451512aa29
Fixes a number of issues with setting hover state, and simplifies the code.
...
Specifically:
- Use inclusive_ancestors instead of ancestors, to detect hover on elements like divs.
- Send the mousemove event after all the hover states have been set correctly.
- Correctly handle removing hover state from elements when mouse is not over any elements.
- Correctly detect when a reflow is required (previous code failed in several edge cases).
2015-02-19 09:39:11 +10:00
Ruud van Asseldonk
6ff3a5a3c1
Do not glob-export DevtoolScriptControlMsg variants.
2015-02-13 14:51:10 +01:00
Ruud van Asseldonk
1452614e28
Do not glob-export DevtoolsControlMsg variants.
2015-02-13 14:51:10 +01:00
bors-servo
29d24a5049
auto merge of #4866 : KiChjang/servo/trigger-fragment-string, r=jdm
...
Fixes #4863
2015-02-12 10:18:45 -07:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
bors-servo
fcfa00f4df
auto merge of #4884 : glennw/servo/iframe-load, r=jdm
2015-02-11 03:51:47 -07:00
Glenn Watson
980b1efb72
Dispatch a load event at iframes. Fixes #4350 .
2015-02-11 09:07:05 +10:00
Ms2ger
a09a912178
Import net as net rather than servo_net.
2015-02-10 12:55:24 +01:00
Ms2ger
b2fcc2397e
Import msg as msg rather than servo_msg.
2015-02-10 11:40:36 +01:00
bors-servo
13b49ddf44
auto merge of #4859 : glennw/servo/fix-3986, r=larsbergstrom
2015-02-08 08:51:43 -07:00
Keith Yeung
3e33a0b633
Updated trigger_fragment to take a string instead of URL and updated callers
2015-02-07 20:54:11 +08:00
Glenn Watson
1e0e98b63c
Implement window.frameElement, change window.parent to make use of it.
2015-02-07 06:46:29 +10:00
Ms2ger
e46ac8c8a1
Replace an and_then call by a map call in ScriptTask::load.
2015-02-06 12:31:56 +01:00
Ms2ger
e85b3b6acb
Reindent script_task.rs.
2015-02-06 12:31:12 +01:00
Glenn Watson
5ef9eaa1e1
Fix page being removed too early. Fixes #3986 (intermittent failure).
2015-02-06 15:28:02 +10:00
bors-servo
c360b75e16
auto merge of #4854 : jdm/servo/workererr, r=jdm
...
...rker object.
Rebased from #4537 .
2015-02-05 15:27:44 -07:00
Sagar Muchhal
6699738cae
Add console message support to devtools. Does not actually cause logging to occur in the remote console.
2015-02-05 21:44:07 +00:00
Shreya Bastikar
7309f2a428
Support firing error events from a dedicated worker at the containing worker object.
2015-02-05 21:42:10 +00:00
bors-servo
0a2bde1b6e
auto merge of #4852 : jdm/servo/buffermessages, r=jdm
...
Rebased and squashed version of #4191 .
2015-02-05 12:36:45 -07:00
Sagar Muchhal
5345edf51e
Add flag to send live updates to devtools.
2015-02-05 19:26:59 +00:00
Ms2ger
d8c2c88bbd
Replace Root::deref by a custom get_unsound_ref_forever method.
...
This will hopefully make it clearer that this is not the correct function
to call.
2015-02-05 18:45:20 +01:00
Glenn Watson
0873e5c8ca
Implement window.parent for iframes.
2015-02-05 07:04:04 +10:00
Josh Matthews
a814ba4449
Use an option for the parser input.
2015-02-04 17:56:31 +00:00