aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webglvertexarrayobject.rs
diff options
context:
space:
mode:
authorTobias Tschinkowitz <tobias.tschinkowitz@icloud.com>2020-04-23 18:23:01 +0200
committerTobias Tschinkowitz <tobias.tschinkowitz@icloud.com>2020-04-23 18:23:01 +0200
commit9c343fcc9600a1a2b768a4632793d0856d55ddce (patch)
tree468ae96e83fb1986e392d5b1c2bdece3bd17f67f /components/script/dom/webglvertexarrayobject.rs
parent60e75314feaf0b5009f0cabfca6930ef1a584f27 (diff)
downloadservo-9c343fcc9600a1a2b768a4632793d0856d55ddce.tar.gz
servo-9c343fcc9600a1a2b768a4632793d0856d55ddce.zip
Replaced failible boolean with an enum
Diffstat (limited to 'components/script/dom/webglvertexarrayobject.rs')
-rw-r--r--components/script/dom/webglvertexarrayobject.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/components/script/dom/webglvertexarrayobject.rs b/components/script/dom/webglvertexarrayobject.rs
index b425a7c4219..07f53af0316 100644
--- a/components/script/dom/webglvertexarrayobject.rs
+++ b/components/script/dom/webglvertexarrayobject.rs
@@ -8,7 +8,7 @@ use crate::dom::bindings::root::{DomRoot, MutNullableDom};
use crate::dom::vertexarrayobject::{VertexArrayObject, VertexAttribData};
use crate::dom::webglbuffer::WebGLBuffer;
use crate::dom::webglobject::WebGLObject;
-use crate::dom::webglrenderingcontext::WebGLRenderingContext;
+use crate::dom::webglrenderingcontext::{Operation, WebGLRenderingContext};
use canvas_traits::webgl::{ActiveAttribInfo, WebGLResult, WebGLVertexArrayId};
use dom_struct::dom_struct;
@@ -41,8 +41,8 @@ impl WebGLVertexArrayObject {
self.array_object.is_deleted()
}
- pub fn delete(&self, fallible: bool) {
- self.array_object.delete(fallible);
+ pub fn delete(&self, operation_fallibility: Operation) {
+ self.array_object.delete(operation_fallibility);
}
pub fn ever_bound(&self) -> bool {