mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Replaced failible boolean with an enum
This commit is contained in:
parent
60e75314fe
commit
9c343fcc96
15 changed files with 106 additions and 111 deletions
|
@ -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 WebGLVertexArrayObjectOES {
|
|||
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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue