Merge remote-tracking branch 'origin/master' into timezones

This commit is contained in:
Alexey Andreev 2015-05-18 20:57:19 +03:00
commit b9ed20ddb0
2 changed files with 11 additions and 1 deletions

View File

@ -691,7 +691,7 @@ public class TTreeMap<K, V> extends TAbstractMap<K, V> implements TCloneable, TS
public EntryIterator(TTreeMap<K, V> owner, TreeNode<K, V>[] path, TreeNode<K, V> to, boolean reverse) { public EntryIterator(TTreeMap<K, V> owner, TreeNode<K, V>[] path, TreeNode<K, V> to, boolean reverse) {
this.owner = owner; this.owner = owner;
modCount = owner.modCount; modCount = owner.modCount;
this.path = TArrays.copyOf(path, owner.root.height); this.path = TArrays.copyOf(path, owner.root == null ? 0 : owner.root.height);
depth = path.length; depth = path.length;
this.to = to; this.to = to;
this.reverse = reverse; this.reverse = reverse;

View File

@ -22,4 +22,14 @@ import org.teavm.jso.JSObject;
* @author Alexey Andreev * @author Alexey Andreev
*/ */
public interface CanvasGradient extends JSObject { public interface CanvasGradient extends JSObject {
/**
* The CanvasGradient.addColorStop() method adds a new stop, defined by an
* offset and a color, to the gradient. If the offset is not between 0 and 1,
* an INDEX_SIZE_ERR is raised, if the color can't be parsed as a CSS color,
* a SYNTAX_ERR is raised.
* @param offset Offset between 0 and 1
* @param color A CSS parseable color.
*/
void addColorStop(double offset, String color);
} }