João Oliveira
0038580abf
Replace uses of for foo in bar.iter()
and for foo in bar.iter_mut()
...
closes #7197
2015-08-15 02:27:39 +01:00
João Oliveira
9c11781880
replace .len() == 0 with is_empty()
...
closes #7198
2015-08-14 04:00:33 +01:00
bors-servo
a03616f379
Auto merge of #7097 - boghison:memtypes, r=jdm
...
Measure heap memory usage for more types. Fixes #6951
Also adds HeapSizeOf implementations/derive for some types. I've used "Cannot calculate Heap size" as a reason everywhere, because my imagination is rather limited. If you'd like me to change this message for specific types, please write something like this: "Trusted - Cannot calculate Heap size for Trusted" so that it would be easier for me to replace them through a script :)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7097 )
<!-- Reviewable:end -->
2015-08-13 13:16:14 -06:00
Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03:00
bors-servo
f3b7c5cb4b
Auto merge of #7132 - jdm:docenum, r=ms2ger
...
Document the use and meaning of the devtools control messages. Fixes …
…#6922.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7132 )
<!-- Reviewable:end -->
2015-08-13 12:41:48 -06:00
Josh Matthews
e59de75608
Simplify devtools frame marker notification. Record each frame tick based on a single message sent from the script task that ticked.
2015-08-12 00:59:58 -04:00
bors-servo
0c5158587d
Auto merge of #6757 - mskrzypkows:document_hasFocus, r=jdm
...
Implementing document.hasFocus method, needs tests. #6475
I'm not sure if I have to implement some test for a new document method. As I remember there were tests for document methods, is it changed now? Where should I add tests?
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6757 )
<!-- Reviewable:end -->
2015-08-11 15:35:21 -06:00
Maciej Skrzypkowski
07c0cd8a18
Implementing document.hasFocus method. #6475
2015-08-10 21:23:09 +02:00
bors-servo
530d4547c9
Auto merge of #7046 - Ms2ger:base-url, r=dzbarsky
...
Implement a base_url getter and use it for style attributes.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7046 )
<!-- Reviewable:end -->
2015-08-08 06:53:32 -06:00
Ms2ger
6951119f5e
Cache the first base element with an href attribute on the Document.
2015-08-08 14:10:35 +02:00
bors-servo
a0af7a1581
Auto merge of #7075 - Ms2ger:load_url, r=dzbarsky
...
Improve code around Window::load_url.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7075 )
<!-- Reviewable:end -->
2015-08-08 06:09:13 -06:00
Ms2ger
7f2b21c06e
Implement base_url and fallback_base_url methods.
2015-08-08 11:26:33 +02:00
Harrison G
e40b141409
Fix requestAnimationFrame timestamps in queue
...
This resolves #7044 which involved callbacks
in a queue not receiving the same timestamp despite
the specification saying they should. An extra test
was added to verify the correct behavior.
2015-08-07 19:02:52 -04:00
James Graham
36da7e2270
Add DOMLoad message to constellation that is sent after the DOM Load event is dispatched.
2015-08-07 16:55:13 +01:00
Ms2ger
da88e9ad9f
Inline Document::load_anchor_href into its only caller.
2015-08-07 15:24:13 +02:00
Ms2ger
40b5c4586e
Push the url parsing out of Window::load_url.
...
This will allow the two callers to decide on the base url independently.
2015-08-07 15:19:16 +02:00
Ms2ger
d2077dd245
Update Animation Timing links and terminology to the HTML specification.
2015-08-05 09:21:08 +02:00
Josh Matthews
8620fe5995
Start reporting memory usage for Window and all nodes in all DOM trees for frame treese in script tasks.
2015-08-03 23:05:00 -04:00
Patrick Walton
2aa5174246
script: Make the resource task communication use IPC channels.
2015-07-31 11:28:09 -07:00
Patrick Walton
44d13f7fd4
net: Use a thread for each AsyncResponseTarget
to avoid having to send
...
trait objects across process boundaries.
2015-07-31 11:27:49 -07:00
Patrick Walton
9c9d7dc93b
net: Make most of the resource task messages serializable.
2015-07-31 11:27:49 -07:00
bors-servo
4837dd9a1c
Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapin
...
Upgrade to rustc 1.3.0-dev (87055a68c 2015-07-30)
This builds and passes unit tests.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6850 )
<!-- Reviewable:end -->
2015-07-30 14:46:13 -06:00
Bogdan Cuza
233a769c67
Add spec links
2015-07-28 13:28:41 +02:00
Simon Sapin
a3c0366bd6
Fix deprecation warnings
2015-07-24 22:16:35 +02:00
Anthony Ramine
389a9ff643
Introduce RootedVec<JS<T>>::r()
2015-07-23 20:56:27 +02:00
bors-servo
ff86e0094c
Auto merge of #6691 - glennw:mouse-which, r=jdm
...
Implement mouseevent.which (needed for enyojs sampler).
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6691 )
<!-- Reviewable:end -->
2015-07-22 21:53:00 -06:00
Glenn Watson
d2600e66fb
Address review comments
2015-07-23 09:13:09 +10:00
Bogdan Cuza
e10a524c81
Fix #6676
2015-07-22 16:45:42 +03:00
Glenn Watson
2a2c7e18c0
Set detail field to be 1 by default for mouse events.
...
The spec says this should be "A count of consecutive clicks that happened in a short amount of time, incremented by one."
This change matches the typical behaviour in FF.
2015-07-22 08:17:57 +10:00
Ms2ger
6d7bc2cffe
Rename browser_context identifiers to browsing_context.
2015-07-20 15:56:32 +02:00
bors-servo
64751b8eef
Auto merge of #6596 - pcwalton:layout-control-ipc, r=jdm
...
compositing: Make `ScriptListener` and `LayoutControlChan` messages go over IPC.
r? @jdm
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6596 )
<!-- Reviewable:end -->
2015-07-14 08:46:07 -06:00
Patrick Walton
e841065351
compositing: Move messages that go over the ScriptListener
to go over
...
an IPC channel instead.
Because this used a boxed trait object to invoke messages across a
process boundary, and boxed trait objects are not supported across IPC,
we spawn a helper thread inside the compositor to perform the marshaling
for us.
2015-07-14 12:12:19 -07:00
David Zbarsky
bc1eb97671
Remove some more unnecessary let bindings
2015-07-14 14:48:16 -04:00
Ms2ger
da3c654f69
Add debug logging to register_named_element and unregister_named_element.
...
I found them helpful; I imagine others might as well.
2015-07-11 22:02:44 +02:00
David Zbarsky
861ddedaef
Remove some redundant let bindings
2015-07-04 13:12:49 -04:00
David Winslow
4cf46bff2d
Refactor #[jstraceable] to #[derive(JSTraceable)]
...
fixes #6524
2015-07-01 18:27:06 -04:00
Yoav Alon
3a44e143bc
add support for mouseover and mouseout events
2015-06-30 14:42:38 +03:00
Corey Farwell
109e3219a4
Prefer HTTPS when linking to GitHub Pages
...
This commit was generated using the following commands:
```
find . -iname "*.webidl" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)github.io/https:\1github.io/g'
```
```
find . -iname "*.rs" -type f -print0 | xargs -0 sed -i '' 's/http:\(.*\)github.io/https:\1github.io/g'
```
2015-06-28 23:16:47 -07:00
Glenn Watson
4b3962e6c7
Trigger reflow after rAF callbacks.
2015-06-25 05:40:23 +10:00
Michael Wu
b7301ca06c
Fix some warnings caused by the SM upgrade
2015-06-19 22:07:08 -04:00
Michael Wu
675267b782
Upgrade to SM 39
2015-06-19 18:42:48 -04:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Philipp Hartwig
2779e0a7ed
Restrict output of getElementsByName to HTML elements
...
https://html.spec.whatwg.org/#dom-document-getelementsbyname
2015-05-31 20:26:47 +02:00
Jinwoo Song
db25be7bf6
Update NodeIterator code to apply review comments.
2015-05-28 18:37:27 +09:00
Jinwoo Song
4e8005cd5b
Implement Document.createNodeIterator and rebase patch
2015-05-27 16:37:30 +09:00
Patrick Walton
05bf2ffd02
script: Address review comments
2015-05-26 11:03:47 -07:00
Patrick Walton
9e34e82aec
script: Reflow 200 milliseconds after the <body>
is parsed, like Gecko
...
does.
2015-05-26 10:38:47 -07:00
bors-servo
7d0409b842
Auto merge of #6140 - nox:cleanup-rootedvec, r=Manishearth
...
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6140 )
<!-- Reviewable:end -->
2015-05-26 08:36:29 -05:00
Anthony Ramine
81cacdf820
Remove use of RootedVec in NodeList
2015-05-26 15:35:16 +02:00
Corey Farwell
8e3f4bba85
Reduce max line length from 150 to 120 characters
...
Part of https://github.com/servo/servo/issues/6041
2015-05-24 00:01:49 -04:00