Commit graph

368 commits

Author SHA1 Message Date
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
Josh Matthews
fb217ab24b Make XMLHttpRequest user-set headers be preserved across redirects. 2015-02-04 13:37:01 +00:00
Josh Matthews
542e8d52d5 Reorganize document creation so it occurs after we have a final URL. 2015-02-04 13:37:01 +00:00
Gilles Leblanc
a1804effaf Initialize trusted-ness of DOM events properly
Fixes #3740
2015-02-03 21:40:07 -05:00
Alexandru Cojocaru
685fee02a0 add unwrap to send/recv calls 2015-02-03 16:05:13 +01:00
Diego Marcos
7b9c902a0a Adds borrow_for_script_deallocation and unsafe_mut_js_info method to avoid 'DOMRefCell already mutably borrowed' messages. This is just a temporary fix until the Rust standard library allows borrowing already-borrowed RefCell values during unwinding.
It also removes LiveDOMReferences destructor that it's a no-op but it contains an assert that was being violated causing an endless cycle of destructor calls ending up in a stack overflow.
2015-01-30 12:07:53 -08:00
Ms2ger
505159a464 Import the util crate as util rather than servo_util.
This used to conflict with the util crate from the standard library, which
has long since been removed.

The import in layout has not been changed because of a conflict with the
util mod there.
2015-01-29 12:16:41 +01:00
Manish Goregaokar
b68b7e87c8 self import 2015-01-28 13:46:00 +05:30
Josh Matthews
95fc29fa0d Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
Josh Matthews
d2f0aac5ce Make UntrustedNodeAddress a newtype.
This will allow us to make it Send after the Rust upgrade.
2015-01-24 11:40:21 +01:00
Ms2ger
7d1b567744 Encapsulate to-be-cleaned-up refcounted pointers.
This will allow us to make them Send in the future.
2015-01-21 20:04:51 +01:00
Ms2ger
01ed338746 Move to to_owned rather than into_string.
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
Ms2ger
b2f40b9873 Make Runnable::handler take self by value.
With my thanks to kimundi and eddyb for their help in making this approach
work.
2015-01-10 17:47:18 +01:00
Ms2ger
57aaa60fa5 Create a StructuredCloneData struct to encapsulate the result of a structured clone. 2015-01-10 16:33:25 +01:00
Tetsuharu OHZEKI
0237561511 Make DOMContentLoaded and load asynchronous with using Runnable. 2015-01-10 04:05:46 +09:00
Ms2ger
edc1d89251 Deny unsafe blocks in script.
As a first start, this allows them indiscriminately where used.
2015-01-09 10:13:25 +01:00
Matthew Rasmus
dc72119998 Fix non_upper_case_globals warnings 2015-01-08 08:51:11 -08:00
bors-servo
df6a7959df auto merge of #4069 : guillaumebort/servo/fix/3936, r=jdm 2015-01-08 08:48:54 -07:00
Ms2ger
16c7060bc8 Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19. 2015-01-08 09:58:46 -05:00
Guillaume Bort
5fe3a3e54f Fix #3936 – {Window,WorkerGlobalScope}.set{Timeout,Interval}(DOMString) 2015-01-07 11:39:15 +01:00
Ms2ger
c4e44b568a Remove the unused native argument from spawn_named_with_send_on_failure. 2015-01-05 08:58:00 +01:00
bors-servo
ba8cf6b0e6 auto merge of #4542 : servo/servo/pre-rustup_20141221, r=saneyuki
In particular, this contains changes to qualify enums where rust will require it, and to stop using some features that will be removed.
2015-01-04 12:39:47 -07:00
bors-servo
2e17cae5d0 auto merge of #4495 : MeghaGupta/servo/typeid, r=Ms2ger 2015-01-04 12:12:48 -07:00
Ms2ger
6e027cda2d Rename the ConstellationControlMsg variants. 2015-01-04 19:01:13 +01:00
Ms2ger
394508953e Qualify compositor_msg::ReadyState. 2015-01-04 16:24:03 +01:00
Ms2ger
193c39294b Qualify script_traits enums. 2015-01-04 16:19:54 +01:00
Ms2ger
323daffbf0 Qualify resource_task enums. 2015-01-04 15:47:46 +01:00
Ms2ger
de0caf8761 Rename constellation_msg::Msg variants. 2015-01-04 11:59:21 +01:00