servo/components/script/dom/bindings
bors-servo 7758d4ff62
Auto merge of #25432 - warren-fisher:HTMLConstructor, r=jdm
Extract some of CGClassConstructHook to utils.rs

<!-- Please describe your changes on the following line: -->

Moving some of the functionality from the massive tripled quoted string in CGClassConstructHook in `components/script/dom/bindings/codegen/CodegenRust.py` to `components/script/dom/bindings/utils.rs`. Must be made unsafe because of UnwrapObjectDynamic and other functions. Added imports as necessary as well, as well as cleaning up using test-tidy.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #25395 (GitHub issue number if applicable)

<!-- Either: -->
- [x] There are tests for these changes OR
- [ ] These changes do not require tests because the issue says so

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
2020-06-03 16:59:32 -04:00
..
codegen Auto merge of #25432 - warren-fisher:HTMLConstructor, r=jdm 2020-06-03 16:59:32 -04:00
callback.rs Always pass InRealm to GlobalScope::from_context to avoid getting null global 2020-02-16 09:55:10 +09:00
cell.rs Make DomRefCell not mutate the borrow flag non-atomically 2020-05-18 10:23:46 +02:00
constant.rs Use safe JSContext when possible in interface.rs 2019-08-09 00:43:24 +01:00
conversions.rs dom: Remove unnecessary generic from private_from_proto_check_static. 2020-06-02 15:36:54 -04:00
error.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00
guard.rs fixed #25281 2020-03-28 20:18:30 +09:00
htmlconstructor.rs Reduce code duplication. Move some of CodegenRust.py to htmlconstructor.rs 2020-06-03 15:13:34 -04:00
inheritance.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
interface.rs remove unnecessary condition 2020-03-30 02:32:17 +09:00
iterable.rs Add trait DomObjectWrap to provide WRAP function 2020-03-20 22:16:56 -04:00
mod.rs re-structure blob, structured serialization 2019-12-11 22:46:50 +08:00
namespace.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00
num.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
proxyhandler.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00
record.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00
refcounted.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
reflector.rs Add trait DomObjectWrap to provide WRAP function 2020-03-20 22:16:56 -04:00
root.rs dom: Extract non-generic code from Root::new. 2020-06-02 15:36:54 -04:00
serializable.rs Add lint check for &DomRoot<T> 2019-12-21 12:44:35 -09:00
settings_stack.rs Update MPL license to https (part 3) 2018-11-19 14:47:12 +01:00
str.rs Form constraints validation 2020-04-02 10:16:46 +02:00
structuredclone.rs Update SpiderMonkey 2020-03-06 11:13:28 +01:00
trace.rs Auto merge of #26628 - gterzian:shutdown_workers, r=asajeffrey 2020-06-03 13:44:09 -04:00
transferable.rs Add lint check for &DomRoot<T> 2019-12-21 12:44:35 -09:00
utils.rs Remove WebVR 2020-04-08 20:23:41 -05:00
weakref.rs Use #![register_tool] instead of #![register_attr] 2019-11-15 17:24:42 +01:00
xmlname.rs Changed error type on qname, per spec 2020-02-12 17:02:56 -05:00