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
Manish Goregaokar
596e03e546
Basic userscript support
2015-03-22 15:13:11 +05:30
Ms2ger
5f15eb5fbf
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
2015-03-18 13:18:31 -04:00
Manish Goregaokar
9119bb2041
Add --no-ssl flag for bypassing SSL checking
2015-03-14 19:17:07 +05:30
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
Alexandru Cojocaru
aaf7a7e439
Remove uint/int inside components/util
(partial #4745 ).
...
This leaves range.rs alone.
2015-02-28 15:03:07 +01:00
Adenilson Cavalcanti
b9e9d7471d
Implements a DisplayList dumper.
...
This patch will iterate through the DisplayList after the reflow
is done and print its elements (as also any sub-lists associated
to a child node stacking context).
It adds a new CLI parameter to trigger the function to dump the display list
to console (i.e. servo --debug dump-display-list url).
Using both display list and flow tree information is helpful to debug
rendering issues.
2015-02-25 19:10:05 -08:00
Patrick Walton
40a3b41758
layout: Add an option to visualize parallel layout
2015-02-20 19:11:35 -08:00
Jack Moffitt
7acc0619e6
Correct usage of number of painting threads.
...
Previously this used the number of layout threads to allocate the
threadpool. This also makes the member name consistent with the rest of
the structure.
2015-02-19 16:17:55 -07:00
Jack Moffitt
923676d443
Added overlay for demoing parallel painting.
2015-02-19 16:17:55 -07: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
95fc29fa0d
Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev.
2015-01-28 10:16:49 +10:00
Glenn Watson
0f525d908d
Change glutin headless mode to be a build config, as it breaks some Linux distros linking to both.
...
The majority of this change is simply re-arranging the code in the glutin port
so that the windowed/headless code is configured at build time rather
than runtime. There shouldn't be any functional difference as a result of this change.
2015-01-23 06:09:25 +10:00
Ms2ger
01ed338746
Move to to_owned rather than into_string.
...
into_string has been removed from Rust.
2015-01-20 14:49:07 +01:00
Glenn Watson
cf047d6cef
Add ability to explicitly set static resources path, used by cef-linux.
2015-01-09 07:04:44 +10:00
Ms2ger
16c7060bc8
Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19.
2015-01-08 09:58:46 -05:00
Ms2ger
b6117a57aa
Replace the remaining to_string calls by into_string calls.
2014-12-31 10:34:44 +01:00
Ms2ger
466faac2a5
Update rustc to revision 3dcd2157403163789aaf21a9ab3c4d30a7c6494d.
2014-12-17 15:19:45 -05:00
Tetsuharu OHZEKI
b9db453444
Replace render to paint in util/opts.rs. Some general words are not replaced.
2014-12-08 15:12:04 +09:00
Mike Blumenkrantz
0341444ce9
util::opts::default_opts() is now pub
2014-11-21 21:52:56 -05:00
Glenn Watson
898c1ecc8f
Remove unused exit after load option.
...
This simplifies some upcoming changes to how event handling works.
2014-11-21 09:15:02 +10:00
Glenn Watson
0278920343
Add glutin port (supported on Linux only currently).
...
Default build uses glfw, but glutin can be enabled via:
./mach cargo build --no-default-features --features=glutin
2014-11-19 08:31:34 +10:00
Martin Robinson
628cf9c0df
Corral debug command-line options into a --debug/-Z flag
...
This should make help output a lot cleaner and simplify the way that
uncommon debug options are passed.
2014-11-04 10:32:06 -08:00
Glenn Watson
90d793cdc8
Add task profiler, which works by instrumenting each task runtime when enabled.
2014-10-29 07:34:47 +10:00
Glenn Watson
743ea6381a
If opts is retrieved, but not set by platform layer, return a default set.
...
This is required for unit tests like the image cache task, which can
pass through code paths that query the command line options.
2014-10-28 14:58:31 +10:00
bors-servo
213178b6b9
auto merge of #3742 : saneyuki/servo/opt, r=jdm
...
This follows up #3711 .
2014-10-22 01:27:36 -06:00