mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Implement GetVertexAttrib
This commit is contained in:
parent
03465ad8c7
commit
2bf016ff14
4 changed files with 529 additions and 1 deletions
|
@ -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]> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue