* @param opacity the opacity
* @param ctx the bridge context
*/
protected static List<Stop> extractLocalStop(Element gradientElement, float opacity, BridgeContext ctx) {
LinkedList<Stop> stops = null;
Stop previous = null;
for (Node n = gradientElement.getFirstChild(); n != null; n = n.getNextSibling()){
if ((n.getNodeType() != Node.ELEMENT_NODE)) {
continue;
}
Element e = (Element)n;
Bridge bridge = ctx.getBridge(e);
if (bridge == null || !(bridge instanceof SVGStopElementBridge)) {
continue;
}
Stop stop = ((SVGStopElementBridge)bridge).createStop(ctx, gradientElement, e, opacity);
if (stops == null) {
stops = new LinkedList<Stop>();
}
if (previous != null) {
if (stop.offset < previous.offset) {