Avi Weinstock
cf0657a403
Fixed some deprecation errors in components/net.
2015-03-23 18:28:44 -04:00
Nicholas Nethercote
fe3e93225b
Print trees in the memory profiler's output.
...
Memory reports are much nicer to read when grouped into trees, which requires giving each report a path instead of a name.
Sample output:
```
Begin memory reports
|
| 2.51 MiB -- pages
| 2.51 MiB -- url(file:///home/njn/moz/servo/../servo-static-suite/wikipedia/Guardians%20of%20the%20Galaxy%20(film)%20-%20Wikipedia,%20the%20free%20encyclopedia.html)
| 2.51 MiB -- display-list
|
| 238.89 MiB -- resident-according-to-smaps
| 188.31 MiB -- anonymous (rw-p)
| 27.29 MiB -- /home/njn/moz/servo/components/servo/target/debug/servo (r-xp)
| 7.82 MiB -- other
| 6.65 MiB -- [heap] (rw-p)
| 3.55 MiB -- /usr/lib/x86_64-linux-gnu/dri/i965_dri.so (r-xp)
| 1.42 MiB -- /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
| 1.13 MiB -- /home/njn/moz/servo/components/servo/target/debug/servo (r--p)
| 0.74 MiB -- /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 (r-xp)
| 0.73 MiB -- /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 (r-xp)
| 0.65 MiB -- /lib/x86_64-linux-gnu/libm-2.19.so (r-xp)
| 0.60 MiB -- /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1 (r-xp)
|
| 71.08 MiB -- jemalloc-heap-active
| 59.11 MiB -- jemalloc-heap-allocated
| 180.00 MiB -- jemalloc-heap-mapped
| 232.87 MiB -- resident
| 54.43 MiB -- system-heap-allocated
| 3130.11 MiB -- vsize
|
End memory reports
```
2015-03-23 15:17:04 -07:00
bors-servo
0c3615ced1
auto merge of #5312 : frewsxcv/servo/cleanup-view-source, r=jdm
...
Fixes #5304
2015-03-23 15:42:48 -06:00
bors-servo
f62ab247fc
auto merge of #5311 : frewsxcv/servo/handle-message-str, r=jdm
...
Fixes #5305
2015-03-23 14:42:50 -06:00
Adenilson Cavalcanti
1f6a93144f
Squashing the remaining warnings in utils module.
2015-03-23 11:38:44 -07:00
Josh Matthews
48b151948f
Fix double-panic when the script task panics.
2015-03-23 19:19:18 +01:00
bors-servo
b1a35f549b
auto merge of #5324 : Ms2ger/servo/missing_copy_implementations, r=jdm
...
This is now the default.
2015-03-23 08:45:50 -06:00
bors-servo
ca79abe458
auto merge of #5321 : frewsxcv/servo/patch-1, r=Ms2ger
2015-03-23 07:57:50 -06:00
bors-servo
f9826c3ae8
auto merge of #5323 : Ms2ger/servo/script-warnings, r=Manishearth
2015-03-23 06:57:50 -06:00
bors-servo
ccac6a944e
auto merge of #5319 : frewsxcv/servo/urlsearchparams, r=Ms2ger
2015-03-23 05:18:50 -06:00
Ms2ger
2755ed6c58
Remove allow(missing_copy_implementations) attributes.
...
This is now the default.
2015-03-23 10:49:44 +01:00
Ms2ger
6b69fec7fe
Fix warnings in script.
2015-03-23 10:37:49 +01:00
bors-servo
4c2ec083e8
auto merge of #5314 : Ms2ger/servo/warnings, r=jdm
2015-03-23 03:24:50 -06: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
5697095298
dom::urlsearchparams cleanup and documentation
2015-03-22 20:51:48 -04:00
Glenn Watson
0db6f857ad
Make text input relayout when value is changed directly
2015-03-23 09:57:51 +10:00
Glenn Watson
918d64e6fc
Fix a few warnings
2015-03-23 09:57:33 +10: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
Ms2ger
f416a6a66e
Update some feature gates.
2015-03-22 17:09:57 +01:00
bors-servo
445f1c891a
auto merge of #5307 : frewsxcv/servo/document-set-body, r=jdm
...
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-22 10:09:46 -06:00
bors-servo
aeaf1ea583
auto merge of #5308 : Ms2ger/servo/main-spawn, r=jdm
2015-03-22 09:18:47 -06:00
Manish Goregaokar
596e03e546
Basic userscript support
2015-03-22 15:13:11 +05:30
Corey Farwell
2da17b3ce5
Cleanup 'view-source:' conditional
...
Fixes #5304
2015-03-21 22:04:58 -04:00
Corey Farwell
2764ec0f7b
Make Actor::handle_message take &str instead of &String
...
Fixes #5305
2015-03-21 20:56:14 -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
Ms2ger
833e0a399b
Remove the unneccesary thread being spawned in Browser::new.
2015-03-21 23:28:33 +01:00
bors-servo
87af57cefc
auto merge of #5301 : Ms2ger/servo/reftests, r=jdm
2015-03-21 13:42:45 -06:00
Ms2ger
ba87666cdb
Update some code that's feature-gated under core.
2015-03-21 18:44:39 +01:00
Ms2ger
561f7e594e
Update rust-png.
2015-03-21 14:31:14 +01:00
bors-servo
29a36adbe7
auto merge of #5296 : servo/servo/unsafe_code, r=Ms2ger
2015-03-21 05:12:45 -06:00
Manish Goregaokar
3479d3fa7f
Replace unsafe_blocks by unsafe_code.
2015-03-21 10:27:32 +01:00
bors-servo
ec60f29203
auto merge of #5297 : Ms2ger/servo/fs, r=SimonSapin
2015-03-20 17:00:44 -06:00
Ms2ger
32d1e31c90
Replace most usage of std::old_io::File.
2015-03-20 23:47:29 +01:00
bors-servo
075f667ce7
auto merge of #5259 : frewsxcv/servo/constellation-cleanup, r=glennw
...
I messed up #5255
2015-03-20 15:57:45 -06:00
Corey Farwell
9101fa621a
Minor cleanup in compositing/constellation
...
* No need to explicitly state .iter()
* Simplify NavigationDirection match branches
* Utilize Vec.map instead of match
* Clean up a couple imports
2015-03-20 16:15:24 -04:00
Ms2ger
2cde68f13f
Cleanup resource_task's global_init().
2015-03-20 21:07:16 +01:00
bors-servo
aa6ed369b8
auto merge of #5261 : pcwalton/servo/too-many-reflows, r=pcwalton,metajack
...
These help Facebook Timeline a lot.
r? @metajack
2015-03-20 11:51:47 -06:00
Patrick Walton
2c22467d53
script: Stop rebuilding every flow in the document when an image
...
finishes loading.
2015-03-20 10:09:52 -07:00
Patrick Walton
fda3791487
util: Turn on ndebug
in release mode, and fix task-state to not crash
...
when `ndebug` is on.
2015-03-20 10:09:52 -07:00
Ms2ger
1604515fd9
Fix various build warnings.
2015-03-20 17:57:49 +01:00
bors-servo
717805a593
auto merge of #5289 : Ms2ger/servo/android-redirect, r=metajack
...
It will panic if there are any null bytes in read_buffer, but fgets
guarantees that there is a null-terminator.
2015-03-20 09:57:54 -06:00
bors-servo
6ffd459479
auto merge of #5287 : Ms2ger/servo/gates, r=jdm
...
CC #5286 .
2015-03-20 09:12:51 -06:00
Ms2ger
acafcacfdc
Stop using CString::from_slice in redirect_output.
...
It will panic if there are any null bytes in read_buffer, but fgets
guarantees that there is a null-terminator.
2015-03-20 15:49:57 +01:00
bors-servo
8998edb912
auto merge of #5282 : gfxmonk/servo/finalize_global, r=Ms2ger
...
Fixes #1871
I thought I'd take a look at this for a first contribution to servo. A couple of things I'm not 100% sure on are:
1) `get_proto_or_iface_array` returns a `*mut *mut JSObj`, which I'm assuming is really an array of pointers to `JSObj`s. So dropping its return value will drop the memory for the array of pointers. Do we also need to drop each element, or is that handled by GC?
2) Are there any tests I need to add for this? I don't know if there are existing leak tests, or if leaks are mostly discovered by profiling.
2015-03-20 07:54:48 -06:00
Ms2ger
dce11222ba
Update some feature gates.
...
CC #5286 .
2015-03-20 13:55:11 +01:00
Tim Cuthbertson
0052a27b1a
Free the interface prototype array when Window is finalized
...
Fixes #1871
2015-03-20 22:14:14 +11:00
bors-servo
2c85c1d312
auto merge of #5251 : mmatyas/servo/canvas_quadratic, r=jdm
...
Yet another small canvas patch.
2015-03-20 04:27:47 -06:00
bors-servo
dea36f9816
auto merge of #4891 : mmatyas/servo/canvas_gradient, r=jdm
...
Based on [ebalint](https://github.com/ebalint )'s original patch, this commit implements the linear and radial gradients for the canvas. The PR also includes test cases.
Depends on #4623 and servo/rust-azure#136 .
2015-03-20 03:12:47 -06:00