From 2063f2217e23466b3da0debc0b90b7db1a93086d Mon Sep 17 00:00:00 2001 From: KuoE0 Date: Mon, 19 Jun 2017 18:44:43 +0800 Subject: [PATCH] Bug 1373159 - [servo] Make '-moz-context-properties' support 'fill-opacity' and 'stroke-opacity'. MozReview-Commit-ID: Buzlxfwpr6h --- components/style/properties/gecko.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/properties/gecko.mako.rs b/components/style/properties/gecko.mako.rs index 83c41e407dd..ba1baa8f3d2 100644 --- a/components/style/properties/gecko.mako.rs +++ b/components/style/properties/gecko.mako.rs @@ -4171,6 +4171,10 @@ clip-path self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_FILL as u8; } else if servo.0 == atom!("stroke") { self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_STROKE as u8; + } else if servo.0 == atom!("fill-opacity") { + self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_FILL_OPACITY as u8; + } else if servo.0 == atom!("stroke-opacity") { + self.gecko.mContextPropsBits |= structs::NS_STYLE_CONTEXT_PROPERTY_STROKE_OPACITY as u8; } unsafe { gecko.set_raw_from_addrefed::(servo.0.into_addrefed()) } }