* @param ctx the bridge context
*/
public static ClipRable convertClipPath(Element clippedElement,
GraphicsNode clippedNode,
BridgeContext ctx) {
Value v = getComputedStyle(clippedElement,
SVGCSSEngine.CLIP_PATH_INDEX);
switch (v.getPrimitiveType()) {
case CSSPrimitiveValue.CSS_IDENT:
return null; // 'clip-path:none'
case CSSPrimitiveValue.CSS_URI:
String uri = v.getStringValue();
Element cp = ctx.getReferencedElement(clippedElement, uri);
Bridge bridge = ctx.getBridge(cp);
if (bridge == null || !(bridge instanceof ClipBridge)) {
throw new BridgeException(clippedElement,
ERR_CSS_URI_BAD_TARGET,