Bug 859021 - Add comments explaining "0 -". r=dholbert DONTBUILD

This commit is contained in:
Masatoshi Kimura 2013-04-07 17:52:50 +09:00
parent 82d2af64ac
commit d7d001c752

View File

@ -454,6 +454,8 @@ DOMSVGPathSegList::RemoveItem(uint32_t aIndex,
InternalList().mData.RemoveElementsAt(internalIndex, 1 + argCount);
mItems.RemoveElementAt(aIndex);
// Note: The subtraction from 0 below is necessary to fix
// MSVC build warning C4146 (negating an unsigned value).
UpdateListIndicesFromIndex(aIndex, 0 - (argCount + 1));
Element()->DidChangePathSegList(emptyOrOldValue);
@ -529,6 +531,8 @@ DOMSVGPathSegList::
}
animVal->mItems.RemoveElementAt(aIndex);
// Note: The subtraction from 0 below is necessary to fix
// MSVC build warning C4146 (negating an unsigned value).
animVal->UpdateListIndicesFromIndex(aIndex, 0 - (1 + aArgCountForItem));
}