mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Upgrade to SM 39
This commit is contained in:
parent
a256f39796
commit
675267b782
205 changed files with 6546 additions and 5340 deletions
|
@ -6,7 +6,7 @@
|
|||
use dom::bindings::codegen::Bindings::WebGLShaderPrecisionFormatBinding;
|
||||
use dom::bindings::codegen::Bindings::WebGLShaderPrecisionFormatBinding::WebGLShaderPrecisionFormatMethods;
|
||||
use dom::bindings::global::GlobalRef;
|
||||
use dom::bindings::js::{Temporary, JSRef};
|
||||
use dom::bindings::js::Root;
|
||||
use dom::bindings::utils::{Reflector,reflect_dom_object};
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -30,7 +30,7 @@ impl WebGLShaderPrecisionFormat {
|
|||
pub fn new(global: GlobalRef,
|
||||
range_min: i32,
|
||||
range_max: i32,
|
||||
precision: i32) -> Temporary<WebGLShaderPrecisionFormat> {
|
||||
precision: i32) -> Root<WebGLShaderPrecisionFormat> {
|
||||
reflect_dom_object(
|
||||
box WebGLShaderPrecisionFormat::new_inherited(range_min, range_max, precision),
|
||||
global,
|
||||
|
@ -38,7 +38,7 @@ impl WebGLShaderPrecisionFormat {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a> WebGLShaderPrecisionFormatMethods for JSRef<'a, WebGLShaderPrecisionFormat> {
|
||||
impl<'a> WebGLShaderPrecisionFormatMethods for &'a WebGLShaderPrecisionFormat {
|
||||
fn RangeMin(self) -> i32 {
|
||||
self.range_min
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue