diff options
author | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-20 20:10:41 +0530 |
---|---|---|
committer | Kunal Mohan <kunalmohan99@gmail.com> | 2020-07-20 23:03:53 +0530 |
commit | cdc0a75fe43a962caaeed5fdb15dbc3a4dc18c56 (patch) | |
tree | 8ccf16cae3f8cf3ba00dad408c8abc47807424ba /components/script/dom/gpuswapchain.rs | |
parent | 3216209506f36b3db7dc733c2e391fb11dc6bd67 (diff) | |
download | servo-cdc0a75fe43a962caaeed5fdb15dbc3a4dc18c56.tar.gz servo-cdc0a75fe43a962caaeed5fdb15dbc3a4dc18c56.zip |
Update GPUObjectBase webidl and cleanup valid flags
Diffstat (limited to 'components/script/dom/gpuswapchain.rs')
-rw-r--r-- | components/script/dom/gpuswapchain.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/components/script/dom/gpuswapchain.rs b/components/script/dom/gpuswapchain.rs index 05fa3c99a5b..5e50e7e57ab 100644 --- a/components/script/dom/gpuswapchain.rs +++ b/components/script/dom/gpuswapchain.rs @@ -6,7 +6,7 @@ use crate::dom::bindings::cell::DomRefCell; use crate::dom::bindings::codegen::Bindings::GPUSwapChainBinding::GPUSwapChainMethods; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::{Dom, DomRoot}; -use crate::dom::bindings::str::DOMString; +use crate::dom::bindings::str::USVString; use crate::dom::globalscope::GlobalScope; use crate::dom::gpucanvascontext::GPUCanvasContext; use crate::dom::gputexture::GPUTexture; @@ -18,7 +18,7 @@ pub struct GPUSwapChain { reflector_: Reflector, #[ignore_malloc_size_of = "channels are hard"] channel: WebGPU, - label: DomRefCell<Option<DOMString>>, + label: DomRefCell<Option<USVString>>, context: Dom<GPUCanvasContext>, texture: Dom<GPUTexture>, } @@ -67,12 +67,12 @@ impl GPUSwapChain { impl GPUSwapChainMethods for GPUSwapChain { /// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label - fn GetLabel(&self) -> Option<DOMString> { + fn GetLabel(&self) -> Option<USVString> { self.label.borrow().clone() } /// https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label - fn SetLabel(&self, value: Option<DOMString>) { + fn SetLabel(&self, value: Option<USVString>) { *self.label.borrow_mut() = value; } |