mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Format script component
This commit is contained in:
parent
2ca7a13473
commit
c37a345dc9
357 changed files with 25485 additions and 18076 deletions
|
@ -10,7 +10,10 @@ use dom::webglrenderingcontext::WebGLRenderingContext;
|
|||
use super::WebGLExtensions;
|
||||
|
||||
/// Trait implemented by WebGL extensions.
|
||||
pub trait WebGLExtension: Sized where Self::Extension: DomObject + JSTraceable {
|
||||
pub trait WebGLExtension: Sized
|
||||
where
|
||||
Self::Extension: DomObject + JSTraceable,
|
||||
{
|
||||
type Extension;
|
||||
|
||||
/// Creates the DOM object of the WebGL extension.
|
||||
|
@ -33,5 +36,5 @@ pub enum WebGLExtensionSpec {
|
|||
/// Extensions written against both WebGL and WebGL2 specs.
|
||||
All,
|
||||
/// Extensions writen against a specific WebGL version spec.
|
||||
Specific(WebGLVersion)
|
||||
Specific(WebGLVersion),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue