diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2018-10-03 06:00:50 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-03 06:00:50 -0400 |
commit | 74e7736720f457abc62ffe82cdda1db230320747 (patch) | |
tree | 6d4532f210773257b3db5a67e833f7d321fbfc83 /components/script/dom/bindings/trace.rs | |
parent | 7fa2b2c879923a8b1f05be59ec9511ba8d5928c8 (diff) | |
parent | 5efbeea61ca619cbded91acb4b1b468aaa5e50b0 (diff) | |
download | servo-74e7736720f457abc62ffe82cdda1db230320747.tar.gz servo-74e7736720f457abc62ffe82cdda1db230320747.zip |
Auto merge of #21850 - servo:webgl, r=jdm
Don't use an intermediate PNG buffer in HTMLCanvasElement::ToDataURL
<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/21850)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/bindings/trace.rs')
-rw-r--r-- | components/script/dom/bindings/trace.rs | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 2c395094e7f..a3c4c7814ea 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -261,7 +261,13 @@ unsafe impl<T: JSTraceable> JSTraceable for VecDeque<T> { } } -unsafe impl<T: JSTraceable> JSTraceable for (T, T, T, T) { +unsafe impl<A, B, C, D> JSTraceable for (A, B, C, D) +where + A: JSTraceable, + B: JSTraceable, + C: JSTraceable, + D: JSTraceable, +{ unsafe fn trace(&self, trc: *mut JSTracer) { self.0.trace(trc); self.1.trace(trc); @@ -616,6 +622,13 @@ unsafe impl<U> JSTraceable for TypedSize2D<f32, U> { } } +unsafe impl<U> JSTraceable for TypedSize2D<u32, U> { + #[inline] + unsafe fn trace(&self, _trc: *mut JSTracer) { + // Do nothing + } +} + unsafe impl JSTraceable for StyleLocked<FontFaceRule> { unsafe fn trace(&self, _trc: *mut JSTracer) { // Do nothing. |