Ravi Shankar
889eec364b
sorted the extern crate, mod & use declarations
2015-09-24 02:12:45 +05:30
Manish Goregaokar
3c969b346a
Upgrade rust to f93ab64d4a1a7ee91759a1594ab2a426b6cc657e/rustc-1.5.0-dev.
2015-09-23 14:44:59 +02:00
Hugo Thiessard
6565e7b02f
Issue #7390 correct the order of mod declaration
2015-09-18 22:02:04 +02:00
Martin Robinson
30963d76be
Improve printing of DisplayLists
...
Use box tree characters to make DisplayLists easier to scan when
printing them out.
2015-09-16 12:31:38 -07:00
Josh Matthews
a3ee9b5dd9
Replace catch-all experimental flag with fine-grained boolean preferences initialized from a JSON document.
2015-08-28 10:30:04 -04:00
Bogdan Cuza
45145108da
Measure heap memory usage for more types. Fixes #6951
2015-08-13 21:44:41 +03:00
Simon Sapin
4bcb1dc926
Use getopts from crates.io
2015-08-07 21:08:51 +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
ef9fdc6e30
util: Add a multiprocess command-line option and implement
...
`OptionalIpcSender<T>`.
`OptionalIpcSender<T>`dynamically switches between in-process and
out-of-process communication depending on whether multiprocess mode is
enabled.
The multiprocess command-line switch doesn't actually turn on
multiprocess mode yet, but it does control the behavior of
`OptionalIpcSender<T>`.
2015-07-31 08:42:29 -07:00
Simon Sapin
a3c0366bd6
Fix deprecation warnings
2015-07-24 22:16:35 +02:00
Josh Matthews
fecb2e3960
Make the global options more resilient to unit tests running in parallel.
2015-07-21 09:14:06 -04:00
Patrick Walton
9ce65c08a5
layout: Make the LayoutControlChan
use IPC.
2015-07-14 13:45:52 -07:00
Matt Brubeck
13072c7b0c
Remove string_cache dependency from util.
...
Move `namespace::from_domstring` from util to script::dom, because it is used
only in that crate.
2015-07-01 10:04:53 -07:00
Matt Brubeck
efa60d3a24
Remove unused dependencies from util
2015-07-01 09:40:33 -07:00
Matt Brubeck
8570b22677
Remove layers dependency from util
2015-07-01 09:40:32 -07:00
Ms2ger
079049cfac
Stop using the deprecated Thunk API.
2015-06-26 22:45:32 +02:00
Ms2ger
d7c0d65cc4
Stop using env::set_exit_code.
2015-06-26 19:46:16 +02:00
Ms2ger
73a7e92bfd
Update to rustc 2d0cbf3e3e25e092bd9e4c94d08e446b680869f0.
2015-06-25 20:02:36 +02:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Corey Farwell
4f47b41fa7
Remove fnv & smallvec crate reexports from util
...
The util component specified fnv and smallvec as dependencies and publicly
reexported both of them. Several other components utilized these reexports,
presumably because fnv and smallvec used to live in the tree so reexporting
made the transition easier.
These indirect dependencies through the util component are unnecessary.
This commit removes the fnv & smallvec crate reexports in the util component.
It exchange, it adds fnv & smallvec as dependencies to non-util components
wherever needed. Finally, it removes the fnv dependency from util as it is not
utilized anywhere in the util component.
2015-06-10 07:14:55 -07:00
Matt Brubeck
76cf5bb45a
Give a useful error when passed a non-existant file
2015-06-04 13:52:22 -07:00
Brian Anderson
aa906a54d3
Remove call to env::current_dir from Browser
...
Put it in util::opts instead.
2015-05-09 00:48:25 -07:00
Simon Sapin
ef8edd4e87
Upgrade to rustc 551a74dddd84cf01440ee84148ebd18bc68bd7c8.
2015-05-05 10:07:34 -04:00
Patrick Walton
66dd8c8a6c
layout: Implement CSS transitions per CSS-TRANSITIONS § 2.
...
Transition events are not yet supported, and the only animatable
properties are `top`, `right`, `bottom`, and `left`. However, all other
features of transitions are supported. There are no automated tests at
present because I'm not sure how best to test it, but three manual tests
are included.
2015-03-31 08:46:11 -07:00
bors-servo
674e52afa1
auto merge of #5416 : Ms2ger/servo/int, r=jdm
2015-03-28 13:58:02 -06:00
Ms2ger
573f721714
Move to new io in util.
2015-03-28 20:02:23 +01:00
Ms2ger
43ed033eff
Use isize/usize in range.
2015-03-28 15:36:36 +01:00
Nicholas Nethercote
ce36e574f4
Rename lots of profiling-related things.
...
------------------------------------------------------------------------
BEFORE AFTER
------------------------------------------------------------------------
util::memory util::mem
- heap_size_of - heap_size_of (unchanged)
- SizeOf - HeapSizeOf
- size_of_excluding_self - heap_size_of_children
prof::mem prof::mem
- MemoryProfilerChan - ProfilerChan
- MemoryReport - Report
- MemoryReportsChan - ReportsChan
- MemoryReporter - Reporter
- MemoryProfilerMsg - ProfilerMsg
- {R,UnR}egisterMemoryReporter - {R,UnR}egisterReporter
- MemoryProfiler - Prof
- ReportsForest - ReportsForest (unchanged)
- ReportsTree - ReportsTree (unchanged)
- SystemMemoryReporter - SystemReporter
prof::time prof::time
- TimeProfilerChan - ProfilerChan
- TimerMetadata - TimerMetadata (unchanged)
- Formatable - Formattable [spelling!]
- TimeProfilerMsg - ProfilerMsg
- TimeProfilerCategory - ProfilerCategory
- TimeProfilerBuckets - ProfilerBuckets
- TimeProfiler - Profiler
- TimerMetadataFrameType - TimerMetadataFrameType (unchanged)
- TimerMetadataReflowType - TimerMetadataReflowType (unchanged)
- ProfilerMetadata - ProfilerMetadata (unchanged)
In a few places both prof::time and prof::mem are used, and so
module-qualification is needed to avoid overlap, e.g. time::Profiler and
mem::Profiler. Likewise with std::mem and prof::mem. This is not a big
deal.
2015-03-25 16:00:23 -07:00
Ms2ger
56af6a6568
Fix warnings related to std::fs::PathExt on Android.
2015-03-25 16:54:34 +01:00
Diego Marcos
e3f5a76baa
Implementing canvas drawImage API for HTML Canvas elements as image source
2015-03-24 12:23:15 -07:00
Nicholas Nethercote
52447ccd9b
Move profiler code from util
into a new crate profile
.
...
- Most of util::memory has been moved into profile::mem, though the
`SizeOf` trait and related things remain in util::memory. The
`SystemMemoryReporter` code is now in a submodule
profile::mem::system_reporter.
- util::time has been moved entirely into profile::time.
2015-03-24 02:09:31 -07:00
Adenilson Cavalcanti
1f6a93144f
Squashing the remaining warnings in utils module.
2015-03-23 11:38:44 -07:00
Ms2ger
f416a6a66e
Update some feature gates.
2015-03-22 17:09:57 +01:00
bors-servo
0b1c2a1798
auto merge of #5267 : Adenilson/servo/squashWarnings02, r=jdm
2015-03-18 20:54:48 -06:00
Adenilson Cavalcanti
375dbeff1e
Squashing a few warnings.
2015-03-18 16:26:16 -07:00
Matt Brubeck
1ead92b474
Rename dlist to linked_list.
2015-03-18 14:44:34 -07:00
Simon Sapin
1e858ecbc6
Fix some warnings in util.
2015-03-18 21:35:06 +01:00
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Nicholas Nethercote
34a384241a
Report detailed RSS measurements from /proc/<pid>/smaps on Linux.
...
All anonymous segments are aggregated into a single measurement, as are
all segments smaller than 512 KiB.
Example output:
142.89: resident-according-to-smaps
97.84: - anonymous (rw-p)
23.98: - /home/njn/moz/servo/components/servo/target/servo (r-xp)
6.58: - [heap] (rw-p)
5.36: - other
3.51: - /usr/lib/x86_64-linux-gnu/dri/i965_dri.so (r-xp)
1.33: - /lib/x86_64-linux-gnu/libc-2.19.so (r-xp)
0.93: - /home/njn/moz/servo/components/servo/target/servo (r--p)
0.76: - /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.20 (r-xp)
0.74: - /usr/lib/x86_64-linux-gnu/libX11.so.6.3.0 (r-xp)
0.50: - /lib/x86_64-linux-gnu/libcrypto.so.1.0.0 (r-xp)
0.50: - /lib/x86_64-linux-gnu/libglib-2.0.so.0.4200.1 (r-xp)
0.45: - /usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0 (r-xp)
0.43: - /lib/x86_64-linux-gnu/libm-2.19.so (r-xp)
2015-02-23 15:20:32 -08:00
Simon Sapin
2a50755c8a
Move selector matching to an external library, for use outside Servo.
2015-02-23 16:29:34 +01:00
Ms2ger
125df55222
Move util to libc from crates.io.
2015-02-20 08:58:23 +01:00
Ms2ger
aaed4a54c7
Use rustc-serialize rather than the built-in deprecated serialize.
2015-02-17 13:24:15 +01:00
Ms2ger
830e6741c7
Fix warnings in util.
2015-02-13 11:42:13 +01:00
Simon Sapin
d5dd1d658e
Upgrade to rustc ba2f13ef0 2015-02-04
2015-02-11 14:48:34 -08:00
Josh Matthews
446f0f447e
Allow unused variables, imports, and mutable.
2015-02-09 17:41:57 -05:00
Manish Goregaokar
40c9e7f72e
Move RangeIndex to associated types (avoids old impl check)
2015-01-31 15:55:05 +05:30
Josh Matthews
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Ms2ger
13c7cf928a
Stop calling deref() and deref_mut() explicitly.
2015-01-22 16:04:21 +01:00
Ms2ger
ee4c56bd8b
Remove rtinstrument ( fixes #4600 ).
...
The code has been disabled during the last rust upgrade, and has not found an
owner. Since the next rust upgrade will bitrot it even more, it is better to
remove it for now. If anyone wishes to restore it, the code remains in version
history.
2015-01-22 14:49:26 +01:00
Matthew Rasmus
a3fc3a1581
Allow missing_copy_implementations
2015-01-08 08:51:11 -08:00