996
997
} else {
999
>
x = y.right;
1000
>
1001
>
// y's delta is no longer influenced by z's delta,
1002
>
// but we don't want to walk the entire right-hand-side subtree of x.
1003
>
// we therefore maintain z's delta in y, and adjust only x
1004
>
x.start += y.delta;
1005
>
x.end += y.delta;
1006
>
x.delta += y.delta;
1007
>
if (x.delta < Constants.MIN_SAFE_DELTA || x.delta > Constants.MAX_SAFE_DELTA) {
1008
T.requestNormalizeDelta = true;
1009
}
1011
>
y.start += z.delta;
1012
>
y.end += z.delta;
1013
>
y.delta = z.delta;
1014
>
if (y.delta < Constants.MIN_SAFE_DELTA || y.delta > Constants.MAX_SAFE_DELTA) {
1015
T.requestNormalizeDelta = true;
1016
}
1018
1019
if (y === T.root) {