float opacity,
BridgeContext ctx) {
CSSOMReadOnlyStyleDeclaration decl = getComputedStyle(stopElement);
CSSValue colorDef
= decl.getPropertyCSSValueInternal(CSS_STOP_COLOR_PROPERTY);
float stopOpacity = PaintServer.convertOpacity
(decl.getPropertyCSSValueInternal(CSS_STOP_OPACITY_PROPERTY));
opacity *= stopOpacity;
if (colorDef.getCssValueType() == CSSValue.CSS_PRIMITIVE_VALUE) {
CSSPrimitiveValue v = (CSSPrimitiveValue)colorDef;
return PaintServer.convertColor(v.getRGBColorValue(), opacity);
} else {
return PaintServer.convertRGBICCColor
(stopElement, (SVGColor)colorDef, opacity, ctx);