Auto merge of #10776 - dzbarsky:getVertexAttrib, r=emilio

Implement GetVertexAttrib

<!-- 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/10776)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-05-18 14:40:32 -07:00
commit fe116b4bd7
4 changed files with 529 additions and 1 deletions

View file

@ -193,6 +193,15 @@ impl<T: JSTraceable> JSTraceable for Vec<T> {
}
}
impl<T: JSTraceable> JSTraceable for (T, T, T, T) {
fn trace(&self, trc: *mut JSTracer) {
self.0.trace(trc);
self.1.trace(trc);
self.2.trace(trc);
self.3.trace(trc);
}
}
// XXXManishearth Check if the following three are optimized to no-ops
// if e.trace() is a no-op (e.g it is an no_jsmanaged_fields type)
impl<T: JSTraceable + 'static> JSTraceable for SmallVec<[T; 1]> {