bors-servo
15de679f11
Auto merge of #7468 - JoshTheGoldfish:Issue7460, r=jdm
...
Making test-tidy check that = have space after them
For issue #7460 . Need to ensure compatibility with #7390 .
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7468 )
<!-- Reviewable:end -->
2015-09-01 08:33:02 -06:00
erneyja
17663315dd
make test-tidy check that = have space after them
2015-09-01 07:18:19 -04:00
Sam Gibson
979382650f
Removes nossl
2015-08-30 12:14:08 +10:00
Josh Matthews
6e26fefad1
Allow setting preferences from the reftest manifest. Add a command-line arg to enable a given preference.
2015-08-28 10:50:55 -04: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
benshu
1e6a2f08fc
Time distribution across script event categories.
2015-08-28 00:52:41 +02:00
Johann Tuffe
ec07178b6f
sort all uses
2015-08-20 20:47:12 +08:00
Glenn Watson
6d9fccbae7
Add a simple method to emulate a platform UA (e.g. pretend a desktop build is an android UA).
2015-08-18 14:42:28 +10:00
Greg Guthe
cf8e2a6f89
Fail on unrecognized debug option
...
Refs: https://github.com/servo/servo/issues/7142
2015-08-13 13:16:45 -04:00
Lars Bergstrom
6a4ce717cb
Add the Servo User Agent strings
2015-08-10 19:11:12 -05:00
Simon Sapin
9317a30b91
Add support for user stylesheets specified on the command-line.
2015-08-07 21:08:52 +02:00
Simon Sapin
4bcb1dc926
Use getopts from crates.io
2015-08-07 21:08:51 +02:00
Michael Howell
7cb4d77c74
GC profiling.
...
* Closes #6968 .
* Test case for GC profiling thanks to @jdm!
2015-08-06 09:45:11 -07: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
Glenn Watson
4f28c93f40
Restore exit after load command line flag.
...
Also updates glutin with a crash fix that was exposed by this patch.
2015-07-20 11:19:13 +10:00
Patrick Walton
6eacb0c995
gfx: Make display lists serializable using serde
.
...
This commit introduces the `serde` dependency, which we will use to
serialize messages going between processes in multiprocess Servo.
This also adds a new debugging flag, `-Z print-display-list-json`,
allowing the output of display list serialization to be visualized.
This will be useful for our experiments with alternate rasterizers.
2015-07-15 19:04:17 -07:00
Simon Sapin
90dbd86ed7
Add a -Z replace-surrogates
command-line option.
...
See #6564 .
2015-07-13 20:41:57 +02:00
bors-servo
b876a54dce
Auto merge of #6365 - pcwalton:sequential-display-list-construction, r=larsbergstrom
...
layout: Disable parallel display list building by default.
I've never see it result in a speedup. Actually, I don't think I've seen
it result in anything better than a 50% slowdown. The arithmetic
intensity is just too low, at least with the current algorithm.
Parallel DL building can still be enabled with a debug flag if the
algorithm is improved.
r? @metajack
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png " height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6365 )
<!-- Reviewable:end -->
2015-07-06 07:08:58 -06:00
Matt Brubeck
8570b22677
Remove layers dependency from util
2015-07-01 09:40:32 -07:00
Ms2ger
0d0c8f2d42
Use an atomic bool for EXPERIMENTAL_ENABLED.
...
static mut smells, especially as it can be set and read from multiple threads
(for example in unit tests).
2015-06-27 09:06:45 +02:00
Ms2ger
d7c0d65cc4
Stop using env::set_exit_code.
2015-06-26 19:46:16 +02:00
ecoal95
8cbfb3482c
Use euclid from crates.io
2015-06-19 00:04:24 +02:00
Corey Farwell
5c408d2be9
rust-geom API changes
...
https://github.com/servo/rust-geom/pull/81
2015-06-13 12:28:21 -07:00
Patrick Walton
eef9c5d9bf
layout: Disable parallel display list building by default.
...
I've never see it result in a speedup. Actually, I don't think I've seen
it result in anything better than a 50% slowdown. The arithmetic
intensity is just too low, at least with the current algorithm.
Parallel DL building can still be enabled with a debug flag if the
algorithm is improved.
2015-06-12 18:03:58 -07:00
Matt Brubeck
76cf5bb45a
Give a useful error when passed a non-existant file
2015-06-04 13:52:22 -07:00
Mátyás Mustoha
322fd5ad9d
Add disable-canvas-aa option to test runner.
2015-05-28 11:10:58 +02:00
Mike Blumenkrantz
b1ae5e7523
make Opts.url an Option<> type, only emit initial url load if url exists
...
this is a necessary change for embedded apps to prevent an initial about:blank
page load from overwriting whatever the app was actually trying to load
2015-05-27 14:45:57 -04: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
Patrick Walton
a0980091cf
gfx: Implement paint flashing, which will be useful for debugging
...
invalidation.
2015-05-14 15:45:41 -07:00
Adenilson Cavalcanti
37b6eeddff
Removing unused start up parameter.
...
Seems to be a left over from quite some time ago.
2015-05-12 14:41:08 -07:00
Brian Anderson
df9c132551
util: Set the experimental_enabled flag when options are set
2015-05-09 02:22:59 -07:00
Brian Anderson
f8bbc0a974
util: Rename ops::set_opts
to ops::set
, to match get
2015-05-09 02:12:23 -07:00
Brian Anderson
8975a3bd9b
Add an assert to opts::set_opts.
...
This function leaks if called more than once.
2015-05-09 02:11:18 -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
Ms2ger
6a55ae06d7
Remove some as_slice calls.
2015-04-24 17:44:47 +02:00
Adenilson Cavalcanti
ad62ff599a
Allow dumping the optimized display list (DL).
...
This DL is created at paint time, per tile. To dump,
pass -Z dump-display-list-optimized at startup.
2015-04-16 17:10:39 -07:00
Peter
881112d34e
Adding cmdling argument for disabling style share cache, fix #5581
2015-04-09 21:42:41 -04:00
bors-servo
df57af1fc4
Auto merge of #5527 - jagtalon:jag/multiple-urls, r=mbrubeck
...
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.
2015-04-07 22:08:33 -05:00
Jag Talon
74cd4cd56a
opts.rs: don't accept multiple URLs. Fixes #5520 .
...
Switched from opts.urls from being of type Vec to type String and changing the name to `url` as well. Changed the other files that are using opts.urls accordingly.
servo/lib.rs + gonk/src/lib.rs: no need for a block scope.
cef: fix compiler errors.
- remove the use of `mut` since it's not needed.
- use `to_owned` instead of `to_string` because it's more efficient.
2015-04-07 15:46:51 -04:00
bors-servo
c7e210f24c
Auto merge of #5005 - jdm:mime-sniffing, r=jdm
...
This rebases and integrates #4209 , removing the sniffer task (turns out it wasn't a great idea), and adds a `--sniff-mime-types` command line flag to enable sniffing for file:// and http:// resources. Tested against a random picture file on my harddrive. The actual MIME sniffing implementation can be extracted into a separate library separately.
2015-04-07 12:48:06 -05:00
Josh Matthews
a3201bc1ac
Enable optional mime sniffing, and integrate it with the file loader.
2015-04-06 20:19:30 -04:00
Josh Matthews
5728799479
Get the barest bones of webdriver integration ready for keeners.
2015-04-06 18:22:32 -04:00
bors-servo
afbc51a746
auto merge of #5430 : Manishearth/servo/userscript_path, r=kmcallister
...
r? @kmcallister
2015-04-01 13:15:46 -06:00
Ms2ger
573f721714
Move to new io in util.
2015-03-28 20:02:23 +01:00
Manish Goregaokar
4d2ca2d8e2
Allow passing a path to --userscripts
2015-03-28 14:59:11 +05:30
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
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