Commit graph

351 commits

Author SHA1 Message Date
Ms2ger
879c3710f4 Cleanup Document::Title. 2015-04-02 09:47:29 +02:00
Patrick Walton
1fe55a27b1 script: Stop destroying all flows on every mouse-over event. 2015-04-01 13:18:04 -07:00
Corey Farwell
d838fcce30 Remove some unnecessary uses of as_slice
For the majority of these cases, `as_slice` can be removed due to
`Deref`. In particular, `Deref` for:

* `String` -> `str`
* `Atom` -> `str`

The latter of those two requires, a bump of the locked `string-cache`
library
2015-03-29 14:42:19 -04:00
Avi Weinstock
cb9cfe2b22 Replace (String, Option<String>) with MozBrowserEvent in uses of MozBrowserEventMsg. 2015-03-25 17:07:59 -04:00
Glenn Watson
7163a3c580 Add mozbrowser events for location + title change. 2015-03-26 05:19:03 +10:00
Corey Farwell
e770f05e0c Cleanup and modernize script::dom::document 2015-03-23 21:43:53 -04:00
bors-servo
ca79abe458 auto merge of #5321 : frewsxcv/servo/patch-1, r=Ms2ger 2015-03-23 07:57:50 -06:00
Ms2ger
6b69fec7fe Fix warnings in script. 2015-03-23 10:37:49 +01:00
bors-servo
1f682d878d auto merge of #5281 : glennw/servo/mozbrowser, r=jdm 2015-03-22 21:36:51 -06:00
Glenn Watson
bf9b8f7050 Experimental implementation of (a small subset of) mozbrowser APIs. 2015-03-23 13:26:55 +10:00
Corey Farwell
c0ea1e6330 Add TODO comments for a recently opened issue 2015-03-22 22:23:06 -04:00
Corey Farwell
5a780cb221 Stop abusing format! macro when construct a String
In these cases for `format!`, we're just constructing a String of the
single argument with no special format.
2015-03-22 18:54:56 -04:00
Corey Farwell
5e4d80fa3a Tidy up script::dom::document.SetBody
There were a few things that were bothering me with `SetBody`:

* The 'Step 3' comment is in the wrong place
* The logic of 'Step 4' comes before 'Step 3'
* 'Step 5' was not documented
2015-03-21 20:21:36 -04:00
Manish Goregaokar
3479d3fa7f Replace unsafe_blocks by unsafe_code. 2015-03-21 10:27:32 +01:00
Maciej Skrzypkowski
7da356cd05 Added document.activeElement attribute. 2015-03-19 23:00:13 +01:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
Matt McCoy
0bd717e470 #4508 Adding simple test and actually getting the event to dispatch 2015-03-17 19:54:05 -04:00
Martin Schröder
5c8b617715 Refactored optional argument "last_modified" for Document
Fixes #4981
2015-03-16 17:53:19 +01:00
Rohan Prinja
5651ea06c6 make MouseEvent::new() and UIEvent::new() take enums for the bubbles and cancelable arguments 2015-03-15 10:05:36 +05:30
Glenn Watson
33829c0254 Perform reflow if load events dirty any nodes.
This fixes some test failures that begin occurring when other events (such as resize) are fixed to only occur when needed.
2015-03-11 08:43:47 +10:00
bors-servo
4f3feed2be auto merge of #5150 : Adenilson/servo/reflowNotifications03, r=jdm 2015-03-06 21:48:50 -07:00
bors-servo
73e5bbec43 auto merge of #5054 : psdh/servo/scriptimplementation, r=jdm
Fixes #4089
2015-03-06 13:36:53 -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
Prabhjyot Singh Sodhi
64ba4a914e implement missing steps from "prepare a script" algorithm
Fixes #4089
2015-03-06 03:16:59 +05:30
bors-servo
67548a6244 auto merge of #5127 : KiChjang/servo/partial-eq-jsref, r=Ms2ger
Fixes #5112, #3960
2015-03-05 01:15:44 -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
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
Keith Yeung
a07a0cf39f Added type parameter to PartialEq on JSRef (fixes #5112, #3960) 2015-03-03 11:46:13 +08:00
bors-servo
fed878710c auto merge of #5111 : KiChjang/servo/step-1-anchor, r=Manishearth
Fixes #4871
2015-03-01 22:18:49 -07:00
Keith Yeung
83f56ed061 Implementation of step 1 activation behavior of htmlanchorelement (fixes #4871)
Fixed issues
2015-03-02 12:54:50 +08:00
bors-servo
75060f41db auto merge of #5073 : JIoJIaJIu/servo/handle_mouse_event, r=jdm 2015-02-28 12:21:51 -07:00
bors-servo
b261d27ac5 auto merge of #5059 : saneyuki/servo/event, r=jdm
Fix #4260

Pick up: This original commit is https://github.com/servo/servo/pull/4718.
2015-02-28 09:21:54 -07:00
Liam Zdenek
3e13dc7913 Click event is now a MouseEvent.
This original commit is https://github.com/servo/servo/pull/4718.
2015-03-01 01:08:52 +09: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
James Gilbertson
5f5d1246ef Implement Document.currentScript 2015-02-27 11:11:02 -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
bors-servo
e68d6d2924 auto merge of #5004 : Ms2ger/servo/handle_click_event, r=jdm 2015-02-22 09:36:46 -07:00
Ms2ger
957c89b101 Reindent handle_click_event. 2015-02-22 17:22:11 +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
e715f0958b Moved handle_click_event from script_task.rs to document.rs 2015-02-21 17:58:23 +08:00
Ms2ger
e921ce859e Fix some warnings in script. 2015-02-12 20:05:14 +01:00
bors-servo
5c02f8956d auto merge of #4845 : KiChjang/servo/location-in-doc, r=jdm
Fixes #4840
2015-02-05 11:54:48 -07:00
Keith Yeung
af4b371107 Moved Location object from Window to Document 2015-02-06 02:13:23 +08: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
Josh Matthews
03ec5a394c Add a spec link. 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
Josh Matthews
d2444dd370 Implement document.cookies. 2015-02-04 13:35:05 +00:00
Josh Matthews
ae2b74c783 Make Document::url return the page's URL to avoid stale URLs after redirects. 2015-02-04 13:34:06 +00:00