servo/components
bors-servo f5e97ef1b5 Auto merge of #7165 - g-k:refactor-debug-options, r=ms2ger
Fail on unrecognized debug option

Refs: https://github.com/servo/servo/issues/7142

Ran some basic functional tests:

```
 $ ./mach run -d -Z bubble-widths,disable-canvas-aa,trace-layout tests/ref/blur_ref.html
 $ ./mach run -d -Z help
Usage: /Users/greg/servo/target/debug/servo debug option,[options,...]
	where options include

Options:
	bubble-widths                       Bubble intrinsic widths separately like other engines.
	disable-text-aa                     Disable antialiasing of rendered text.
	disable-canvas-aa                   Disable antialiasing on the HTML canvas element.
	dump-flow-tree                      Print the flow tree after each layout.
	dump-display-list                   Print the display list after each layout.
	dump-display-list-json              Print the display list in JSON form.
	dump-display-list-optimized         Print optimized display list (at paint time).
	relayout-event                      Print notifications when there is a relayout.
	profile-tasks                       Instrument each task, writing the output to a file.
	show-compositor-borders             Paint borders along layer and tile boundaries.
	show-fragment-borders               Paint borders along fragment boundaries.
	show-parallel-paint                 Overlay tiles with colors showing which thread painted them.
	show-parallel-layout                Mark which thread laid each flow out with colors.
	paint-flashing                      Overlay repainted areas with a random color.
	trace-layout                        Write layout trace to an external file for debugging.
	validate-display-list-geometry      Display an error when display list geometry escapes overflow region.
	disable-share-style-cache           Disable the style sharing cache.
	parallel-display-list-building      Build display lists in parallel.
	replace-surrogates                  Replace unpaires surrogates in DOM strings with U+FFFD. See https://github.com/servo/servo/issues/6564
	gc-profile                          Log GC passes and their durations.

$ ./mach run -d -Z blah
error: unrecognized debug option: blah
Servo exited with return value 1
```

Didn't check that setting debug flags actually did anything.
Haven't written much Rust so this feels more verbose than necessary.
Added `disable-canvas-aa` to debug options help.

Should DebugOptions struct derive Clone like Opts does?

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7165)
<!-- Reviewable:end -->
2015-08-13 18:11:57 -06:00
..
canvas Auto merge of #7092 - dzbarsky:putimagedata, r=jdm 2015-08-09 07:00:56 -06:00
canvas_traits Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
compositing Auto merge of #7189 - Ms2ger:unsafe-compositing, r=larsbergstrom 2015-08-13 07:14:22 -06:00
devtools Auto merge of #7192 - Ms2ger:profiler, r=jdm 2015-08-13 14:25:38 -06:00
devtools_traits Auto merge of #7097 - boghison:memtypes, r=jdm 2015-08-13 13:16:14 -06:00
gfx Enable item clipping on normal transform layers. Fixes rounded corners on layers with 2d transforms. 2015-08-13 16:03:25 +10:00
gfx_traits Layerize canvas 2015-05-20 19:10:50 +02:00
layout layout: Make inline margins on <input type=button> and friends apply 2015-08-13 09:51:17 -07:00
layout_traits Store a Sender<ConstellationControlMsg> in LayoutTask. 2015-08-12 15:55:16 +02:00
msg Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
net Remove Message suffix from NetworkEventMessage 2015-08-10 18:48:53 -05:00
net_traits Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
plugins Fix minor typo in lint docstring. 2015-08-05 20:00:39 +02:00
profile Auto merge of #6850 - servo:rustup_2015-07-30, r=SimonSapin 2015-07-30 14:46:13 -06:00
profile_traits servo: Update ipc-channel to pick up bincode support. 2015-08-08 09:43:53 -07:00
script Auto merge of #7199 - frewsxcv:codegen-if-let, r=Manishearth 2015-08-13 15:35:21 -06:00
script_traits Remove ScriptControlChan. 2015-08-12 16:24:09 +02:00
servo Update skia to get NEON fixes 2015-08-13 16:59:31 -06:00
style Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
util Auto merge of #7165 - g-k:refactor-debug-options, r=ms2ger 2015-08-13 18:11:57 -06:00
webdriver_server script: Make the resource task communication use IPC channels. 2015-07-31 11:28:09 -07:00
webdriver_traits Add support for switching frames with the webdriver API. 2015-06-01 23:18:55 +01:00