servo/components/script/dom/bindings
bors-servo 289decb064 Auto merge of #7196 - frewsxcv:double-unsafe, r=jdm
Avoid marking codegen method bodies as unsafe twice

`CGAbstractMethod` takes a couple boolean parameters, among others:

* `extern`: will mark the method as `unsafe` and `extern`
* `unsafe`: will wrap the method body in an `unsafe` block

Passing both as `True` should not mark it as `unsafe` twice.

Example from a generated `HTMLCollectionBinding.rs`:

Before:

```
unsafe extern fn get_length(..) -> u8 {
    unsafe {
        // code here
    }
}
```

After

```
unsafe extern fn get_length(..) -> u8 {
    // code here
}
```

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7196)
<!-- Reviewable:end -->
2015-08-13 15:00:37 -06:00
..
codegen Avoid marking codegen method bodies as unsafe twice 2015-08-13 16:50:17 -04:00
callback.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
cell.rs 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
conversions.rs Add Clamp and EnforceRange support for webidl arguments. 2015-07-22 17:04:06 +02:00
error.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
global.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
js.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
mod.rs Generate code into OUT_DIR. 2015-06-17 16:18:22 -06:00
num.rs Refactor #[jstraceable] to #[derive(JSTraceable)] 2015-07-01 18:27:06 -04:00
proxyhandler.rs Removed unused object_to_string method 2015-08-09 11:26:15 +02:00
refcounted.rs Make stmt part of unrooted_must_root handle type parameters (fixes #6651) 2015-07-22 00:00:14 +05:30
str.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
structuredclone.rs Upgrade to SM 39 2015-06-19 18:42:48 -04:00
trace.rs Auto merge of #7132 - jdm:docenum, r=ms2ger 2015-08-13 12:41:48 -06:00
utils.rs 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