Eric Hegnes
e398725242
Consistently name enum members in dom::bindings::error::Error
...
Fixes #5521
2015-04-05 00:09:40 -04:00
Matt Brubeck
791fa3757d
Implement the :focus pseudo-class selector
...
Fixes #5460 . This supports for simple focusable elements that are their own
DOM anchors, like text `input` fields.
2015-04-04 10:57:11 -07:00
bors-servo
036b3eaa04
auto merge of #5511 : Ms2ger/servo/int, r=jdm
2015-04-03 13:54:46 -06:00
Ms2ger
c2e81be8a5
Stop using int/uint in script.
2015-04-03 20:47:53 +02:00
Gilles Leblanc
ba36a108c1
Split out shared networking code into net_traits crate
...
Fixes #4476
2015-04-03 13:38:10 -04:00
Ms2ger
02be76bd48
Merge pull request #5492 from Ms2ger/MouseButton
...
Introduce a MouseButton enum.
2015-04-03 13:29:12 +02:00
bors-servo
c38d9ba6b9
auto merge of #5484 : frewsxcv/servo/document-cleanup, r=Ms2ger
...
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 22:45:41 -06:00
Ms2ger
6b127a8df8
Introduce a MouseButton enum.
2015-04-03 01:24:33 +02:00
Corey Farwell
c90e8c19cd
Improvements, cleanup for script::dom::document
...
* Add whatwg spec links for some Document methods
* Wrap some lines that exceed 100 characters
* Other misc cleanup/refactoring
2015-04-02 11:52:34 -07:00
bors-servo
5457ec6098
auto merge of #5426 : pcwalton/servo/mouse-over-incremental-reflow, r=jdm
...
r? @jdm
2015-04-02 09:57:40 -06:00
Ms2ger
c8106da277
Rewrite NodeChildrenIterator to return Temporary.
2015-04-02 13:07:51 +02:00
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