servo/components/script
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
..
dom Auto merge of #7196 - frewsxcv:double-unsafe, r=jdm 2015-08-13 15:00:37 -06:00
parse Directly append children to output node in parse_html_fragment 2015-07-15 17:09:26 -04:00
build.rs
Cargo.toml servo: Update ipc-channel to pick up bincode support. 2015-08-08 09:43:53 -07:00
clipboard_provider.rs Add set_clipboard_context function and relevant plumbing. Use Option more consistantly (less unwraps) in textinput's selection handling. 2015-07-29 12:19:37 -04:00
cors.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
devtools.rs Improve documentation for devtools messages a bit more. 2015-08-13 13:44:54 -04:00
document_loader.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
horribly_inefficient_timers.rs
layout_interface.rs Store a Sender<ConstellationControlMsg> in ScriptReflow. 2015-08-12 15:47:35 +02:00
lib.rs Auto merge of #7097 - boghison:memtypes, r=jdm 2015-08-13 13:16:14 -06:00
makefile.cargo Don't generate pyc files. 2015-06-17 18:43:08 -06:00
mem.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
network_listener.rs script: Fix test failures. 2015-07-31 15:03:39 -07:00
page.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
script_task.rs Auto merge of #7132 - jdm:docenum, r=ms2ger 2015-08-13 12:41:48 -06:00
textinput.rs Measure heap memory usage for more types. Fixes #6951 2015-08-13 21:44:41 +03:00
timers.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
webdriver_handlers.rs Added support for int32 to webdriver. 2015-07-24 20:23:15 -04:00