mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-07 00:08:39 +09:00
Issue #1442 - Part 5: Implement WebIDL bindings for Streams. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
This commit is contained in:
parent
9b9075eef6
commit
0701dccaca
14 changed files with 255 additions and 157 deletions
|
|
@ -2974,8 +2974,8 @@ ValidateRect(double& aX, double& aY, double& aWidth, double& aHeight, bool aIsZe
|
|||
// The values of canvas API input are in double precision, but Moz2D APIs are
|
||||
// using float precision. Bypass canvas API calls when the input is out of
|
||||
// float precision to avoid precision problem
|
||||
if (!std::isfinite((float)aX) | !std::isfinite((float)aY) |
|
||||
!std::isfinite((float)aWidth) | !std::isfinite((float)aHeight)) {
|
||||
if (!std::isfinite((float)aX) || !std::isfinite((float)aY) ||
|
||||
!std::isfinite((float)aWidth) || !std::isfinite((float)aHeight)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
@ -5961,7 +5961,7 @@ void
|
|||
CanvasRenderingContext2D::PutImageData(ImageData& aImageData, double aDx,
|
||||
double aDy, ErrorResult& aError)
|
||||
{
|
||||
RootedTypedArray<Uint8ClampedArray> arr(RootingCx());
|
||||
RootedSpiderMonkeyInterface<Uint8ClampedArray> arr(RootingCx());
|
||||
DebugOnly<bool> inited = arr.Init(aImageData.GetDataObject());
|
||||
MOZ_ASSERT(inited);
|
||||
|
||||
|
|
@ -5977,7 +5977,7 @@ CanvasRenderingContext2D::PutImageData(ImageData& aImageData, double aDx,
|
|||
double aDirtyHeight,
|
||||
ErrorResult& aError)
|
||||
{
|
||||
RootedTypedArray<Uint8ClampedArray> arr(RootingCx());
|
||||
RootedSpiderMonkeyInterface<Uint8ClampedArray> arr(RootingCx());
|
||||
DebugOnly<bool> inited = arr.Init(aImageData.GetDataObject());
|
||||
MOZ_ASSERT(inited);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue