aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/macros.rs
diff options
context:
space:
mode:
authorbors-servo <lbergstrom+bors@mozilla.com>2016-04-03 00:08:47 +0530
committerbors-servo <lbergstrom+bors@mozilla.com>2016-04-03 00:08:47 +0530
commit8b32e63db843b4ac534c33a87ed53a4acf9b6da7 (patch)
treea96e3c8742dae55815e6691369fdd1bc1d91e590 /components/script/dom/macros.rs
parent85f9f9626eaff12b66299eb6190955f2726b432c (diff)
parent3fd7634f545871603577d83a08950ab6f7026f1c (diff)
downloadservo-8b32e63db843b4ac534c33a87ed53a4acf9b6da7.tar.gz
servo-8b32e63db843b4ac534c33a87ed53a4acf9b6da7.zip
Auto merge of #10215 - ConnorGBrewster:webgl_finish, r=emilio
WebGL: Finish, Flush, DetachShader, GenerateMipmap Implements #10212 and #10213 r? @emilio <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10215) <!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/macros.rs')
-rw-r--r--components/script/dom/macros.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/components/script/dom/macros.rs b/components/script/dom/macros.rs
index 57966e37ae6..d3c157cf134 100644
--- a/components/script/dom/macros.rs
+++ b/components/script/dom/macros.rs
@@ -266,6 +266,14 @@ macro_rules! make_nonzero_dimension_setter(
/// For use on non-jsmanaged types
/// Use #[derive(JSTraceable)] on JS managed types
macro_rules! no_jsmanaged_fields(
+ ([$ty:ident; $count:expr]) => (
+ impl $crate::dom::bindings::trace::JSTraceable for [$ty; $count] {
+ #[inline]
+ fn trace(&self, _: *mut ::js::jsapi::JSTracer) {
+ // Do nothing
+ }
+ }
+ );
($($ty:ident),+) => (
$(
impl $crate::dom::bindings::trace::JSTraceable for $ty {