*
* @param e the feFlood element
* @param ctx the bridge context
*/
public static Color convertFloodColor(Element e, BridgeContext ctx) {
CSSOMReadOnlyStyleDeclaration decl = getComputedStyle(e);
float opacity = PaintServer.convertOpacity
(decl.getPropertyCSSValueInternal(CSS_FLOOD_OPACITY_PROPERTY));
CSSValue colorDef
= decl.getPropertyCSSValueInternal(CSS_FLOOD_COLOR_PROPERTY);
if (colorDef.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {
CSSPrimitiveValue v = (CSSPrimitiveValue)colorDef;
return PaintServer.convertColor(v.getRGBColorValue(), opacity);
} else {
return PaintServer.convertRGBICCColor