Bug 1454623 - Update for API change in WR PR 2676. r?jrmuizel draft
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 23 Apr 2018 09:38:23 -0400
changeset 786513 f063f24c6b68983a1bbc4f502f5bf418773cdf86
parent 786512 00dd3d5450a15fb7bd77c4e1a3512533f89823b2
child 786514 01773bd34539c048657a896d8a160346140d511c
push id107497
push userkgupta@mozilla.com
push dateMon, 23 Apr 2018 13:39:32 +0000
reviewersjrmuizel
bugs1454623
milestone61.0a1
Bug 1454623 - Update for API change in WR PR 2676. r?jrmuizel MozReview-Commit-ID: Fp8kAsdMNAE
gfx/webrender_bindings/src/moz2d_renderer.rs
--- a/gfx/webrender_bindings/src/moz2d_renderer.rs
+++ b/gfx/webrender_bindings/src/moz2d_renderer.rs
@@ -488,16 +488,19 @@ impl BlobImageRenderer for Moz2dImageRen
         Err(BlobImageError::Other("Channel closed".into()))
     }
     fn delete_font(&mut self, font: FontKey) {
         unsafe { DeleteFontData(font); }
     }
 
     fn delete_font_instance(&mut self, _key: FontInstanceKey) {
     }
+
+    fn clear_namespace(&mut self, _namespace: IdNamespace) {
+    }
 }
 
 use bindings::WrFontKey;
 
 #[allow(improper_ctypes)] // this is needed so that rustc doesn't complain about passing the &Arc<Vec> to an extern function
 extern "C" {
     fn AddFontData(key: WrFontKey, data: *const u8, size: usize, index: u32, vec: &ArcVecU8);
     fn AddNativeFontHandle(key: WrFontKey, handle: *mut c_void, index: u32);