xpcom/xpcom-config.h.in
author Jeremy Chen <jeremychen@mozilla.com>
Wed, 13 Sep 2017 17:39:07 +0800
changeset 431697 9044841344c9af963ed30293d8c5ecea0ee23845
parent 373348 77717bd5534f6b8c6d170a697a13fd9e61627852
child 514102 699954de14e37c54a20651b01351365c30c5f932
permissions -rw-r--r--
Bug 1394284 - add fallback discrete procedure for transform animation. r=boris,hiro According to the spec, if one of the matrices for transform interpolation is non-invertible, the used animation function must fall-back to a discrete animation. However, in the current implementation, we always use an identity matrix as a fallback for the non-invertible matrix. Decompose2DMatrix and Decompose3DMatrix both return a boolean, but we just never use it. So, in this patch, we use the returned boolean from the matrix decomposition as a condition, and do the fallback discrete procedure for the non-invertible matrices case. MozReview-Commit-ID: E7i1a1MJOXN

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/* Global defines needed by xpcom clients */

#ifndef _XPCOM_CONFIG_H_
#define _XPCOM_CONFIG_H_

/* Define this to throw() if the compiler complains about 
 * constructors returning NULL
 */
#undef CPP_THROW_NEW

/* Define if a dyanmic_cast to void* gives the most derived object */
#undef HAVE_CPP_DYNAMIC_CAST_TO_VOID_PTR

/* Define to a string describing the XPCOM ABI in use */
#undef TARGET_XPCOM_ABI

#endif /* _XPCOM_CONFIG_H_ */